This article is also available in:
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.

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 -> https://www.amazon.com/
Category -> https://www.amazon.com/notebooks
Product -> https://www.amazon.com/notebooks/apple-macbook-air-13-mqd32cza
1st level filtering -> https://www.amazon.com/notebooks?b%5B%5D=lenovo
2nd level filtering -> https://www.amazon.com/notebooks?b%5B%5D=lenovo&p%5BPROCESSOR%5D%5B%5D=amd
3rd level filtering -> https://www.amazon.com/notebooks?b%5B%5D=lenovo&p%5BPROCESSOR%5D%5B%5D=amd&p%5BTYPE_OF_SAVING_MEDIA%5D%5B%5D=hdd
Multiple filtration -> https://www.amazon.com/notebooks?b%5B%5D=lenovo&b%5B%5D=acer&b%5B%5D=hp
Cart -> https://www.amazon.com/cart
Internal search -> https://www.amazon.com/search?s=test
Help section -> https://www.amazon.com/help
Article -> https://www.amazon.com/how-to-choose-watch
Store locator -> https://www.amazon.com/store-prague
404 -> https://www.amazon.com/dkfjhsdkjhsdkjhslkashlksjh/
Random parameter -> https://www.amazon.com/?parameter=dfljkhdfkjhsdkjhsdkjh

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.



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.



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.



Output example

📊 Sample report

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.

Microdata (more about microdata).
RDF (more about RDF).
Open Graph (more about metadata for social).
JSON-LD (more about JSON-LD).
Remarketing.
Google AdSense.
Google Analytics.
Google Remarketing.
Google Tag Manager.
Facebook Pixel.
Sklik.

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?
Thank you!