Log File Analysis

Note: ContentKing Log File Analysis is currently in beta.

With ContentKing Log File Analysis feature, you can easily understand how search engines traverse the content on your website: discover when Google or Bing last visited each individual page, and compare visit frequencies between pages.

Log Sources

Currently you can feed your logs to ContentKing using a Cloudflare Worker (opens in a new tab). In the future we will be supporting also other log sources.

Traffic ContentKing detects and tracks

ContentKing detects and tracks visits of the following search engines to your websites:

  • Google Desktop
  • Google Mobile
  • Bing Desktop
  • Bing Mobile

ContentKing never tracks visits of actual visitors to your websites, and this data never gets to our systems.

Setting up the Cloudflare integration

To connect ContentKing to Cloudflare, you will need to create an API token in your Cloudflare account.

Using this token, ContentKing will automatically install its Cloudflare Worker for this website without any additional configuration required from your side. Using the Cloudflare Worker ContentKing will be able to detect and track visits of search engines to this website.

Creating a Cloudflare token

Follow these steps to create a Cloudflare token:

1. Go to your API tokens in your Cloudflare account

Log in to your Cloudflare Dashboard (opens in a new tab) and go to "User Profile" -> API Tokens (opens in a new tab).

Screenshot of the API Tokens button on the Cloudflare dashboard
2. Click "Create token"

On the "API tokens" screen, click "Create token".

Screenshot of the box for creating a new API token
3. Choose a custom token

Click "Get started" in the "Custom token" section at the bottom of the screen.

Screenshot of the API Tokens section for creating a custom token
4. Set the permissions

To let ContentKing automatically install the Cloudflare Worker, set the following permissions for the API token:

  • On Account-level: Workers Scripts: Edit
  • On Zone-level: Workers Routes: Edit
  • On Zone-level: Zone: Read
Screenshot of the box for setting the permissions for the API token
5. Include relevant "Account" and "Zone"

Make sure to include the appropriate "Account" and "Zone" for the websites you want to enable the Log File Analysis feature for.

Screenshot of the box for including the appropriate account and zone
6. Optional - Define the validity of the token

Immediately after the Cloudflare Worker is installed, ContentKing will discard the API token.

However, you can optionally also limit the validity of the token on the Cloudflare side, e.g. by setting the "Start Date" to today and "End Date" to tomorrow.

Screenshot of setting up the TTL option for the validity of the token

Enter the generated token to ContentKing

Once you create the API token following the steps above, enter it to the modal for connecting Cloudflare (opens in a new tab) in ContentKing:

Screenshot of connecting Cloudflare through the ContentKing modal

Afterwards, ContentKing will automatically install the Cloudflare Worker and start tracking the search engine traffic on this website.

Need help?

In case you have any questions regarding Log File Analysis that are not covered by our documentation, don’t hesitate to contact us!