Check correct setup of tracking codes

Last modified: 17.12.2021
Estimated reading time: 2 min

Incorrect setup of tracking codes, such as Google Analytics or Google Tag Manager, is something that many marketers have to face from time to time. In this tutorial, we’ll show you how to check if the tracking codes are set up correctly for all types of pages, and what kind of pages you shouldn’t forget to check.

From 17.12.2021 we ended the support of Tracking codes detection miner.

In practice

You might use the check of the correct setup of tracking codes:

  • When you start working on a new project, and you need to make sure that all analytics work as it should.
  • When you suspect that analytics tools do not show you the correct numbers and you want to verify that the tracking codes are correctly set.
  • When you gave an assignment to developer team to implement tracking codes, and you want to make sure whether the job has been done correctly.

Before we show you how to make this check in Marketing Miner, we should first clarify which type of pages it is necessary to check.

If you have a sitemap available and you want to check every single page on the web, you can skip right now to the instructions on how to use Miner.

But if you don’t want to get lost in output report, which will contain hundreds or thousands URLs, you can do it in a better way. You can check only a few representative URLs for the specific type of page, but you have to define these types of pages by yourself for your own project.

Why is one representative URL for each type of page enough? Because tracking code will be set (or not set) for all others pages of this type in 99% of cases as well.

Here are some specific examples of page types that you can also use:

  • Homepage ->
  • Category ->
  • Product ->
  • 1st level filtering ->
  • 2nd level filtering ->
  • 3rd level filtering ->
  • Multiple filtration ->
  • Cart ->
  • Internal search ->
  • Help section ->
  • Article ->
  • Store locator ->
  • 404 ->
  • Random parameter ->

If you have defined page types, you are ready to check the tracking codes. Let’s go.

Import data

Get started by clicking on Create report button and specifying URLs at the input. Then write or copy the dataset of representative URLs for which you want to check the correct setup of tracking codes.

Check tracking codes - insert data

If you need to analyze all pages on the web and have a sitemap available, you can insert its link into the tool. To do so, click on the Import From URL section in the left sidebar.

sitemap insert - check tracking codes

For a report to be easily identifiable, it is good to name it. Simply click into Your Report Name field.

Then click on the flag to select the country for which you want to get the data and finish by clicking on Next Step.

Selection of the Miner

In the URL Analysis section, click on Miner Markup detection. Nothing else needs to be set. Click on Get Data to start processing your inputs.

Markup detection miner

Output example

Column description

  • Input: URL that you entered at the input.

All others columns represent specific codes that you either have (“yes”) or don’t have (“no”) set on the particular type of page.

Output analysis

With this output report, you can reveal many holes in your analytics. Focus mainly on tracking codes that are not set on the pages where they should be.

Unfortunately, setting a tracking code is often just the beginning. Having tracking codes on all pages does not mean that everything is tracked correctly. It is also necessary to check the filters, filter out access of bots and much more.

Was this article helpful?

Continue reading

Previous: Screenshot of mobile and desktop version of URL
Next: Find sitemap and RSS feed automatically
Have questions? Search our knowledgebase.