---
title: How do I install the tracking code on specific pages?
description: If you do not want to track every page on your website, you can install the tracking code on specific pages. For example, on the pages that you are only using for online lead generation campaigns. The
---

[Skip to content](https://help.leadinfo.com/en/how-do-i-install-the-tracking-code-on-specific-pages#main-content)

- [English](https://help.leadinfo.com/en/how-do-i-install-the-tracking-code-on-specific-pages)
- [Dutch](https://help.leadinfo.com/nl/hoe-installeer-ik-de-trackingcode-op-specifieke-paginas)
- [German](https://help.leadinfo.com/de/wie-installiere-ich-den-tracking-code-auf-bestimmten-seiten)

English

Show submenu for translations

[![Leadinfo\_logo\_RGB\_Witte\_tekst-3.png\]](https://help.leadinfo.com/hs-fs/hubfs/Leadinfo_logo_RGB_Witte_tekst-3.png?width=135&height=28&name=Leadinfo_logo_RGB_Witte_tekst-3.png)](https://help.leadinfo.com/?hsLang=en)

Open main navigation

Close main navigation

- - [English](https://help.leadinfo.com/en/how-do-i-install-the-tracking-code-on-specific-pages)
    - [Dutch](https://help.leadinfo.com/nl/hoe-installeer-ik-de-trackingcode-op-specifieke-paginas)
    - [German](https://help.leadinfo.com/de/wie-installiere-ich-den-tracking-code-auf-bestimmten-seiten)

  English
  
  Show submenu for translations

 Hi 👋 How can we help?

- There are no suggestions because the search field is empty.

1. [Help Centre](https://help.leadinfo.com/en?hsLang=en)
2. [Installing Leadinfo](https://help.leadinfo.com/en/installing-leadinfo?hsLang=en)
3. [Leadinfo Tracking Code](https://help.leadinfo.com/en/installing-leadinfo?hsLang=en#leadinfo-tracking-code)

# How do I install the tracking code on specific pages?

If you do not want to track every page on your website, you can install the tracking code on specific pages. For example, on the pages that you are only using for online lead generation campaigns.

**There are two ways to do this:**

1. [Adding the code manually](https://help.leadinfo.com/en/how-do-i-install-the-tracking-code-on-specific-pages#manual)
2. [Via Google Tag Manager](https://help.leadinfo.com/en/how-do-i-install-the-tracking-code-on-specific-pages#GTM)

#### Installing the code on specific pages manually 

If you have access to the source code of your website, you can manually add the tracking code to specific pages. Make sure that you place the tracker behind the \<head\> tag. However, we recommend using Google Tag Manager. If Google Tag Manager is already installed on your website, you do not need access to the source code.

#### Installing the tracking code on specific pages via Google Tag Manager

**Step 1: Copy the tracking code**

Copy the tracking from the portal. You can find your code in the portal under "**Settings**".

![](https://help.leadinfo.com/hs-fs/hubfs/Group%2091%20(1)-png.png?width=576&name=Group%2091%20(1)-png.png)

**Step 2: Create a new trigger in Google Tag Manager**

Go to your Google Tag Manager account and select "**Triggers**" on the left side. Give your trigger a name and click on the circles. Here you need to select "**Page View**".

In the settings of the trigger, select "**Some Page Views**" and click on "**Page URL**" in the dropdown menu. Provide a unique part of the URL where the tracking code needs to be active. For example, if you only want to track the pages that have the term "**business**" in the URL, you need to set the settings as "**Page URL contains business**". Click on "**Save**" in the top right corner.

![](https://help.leadinfo.com/hs-fs/hubfs/Schermafbeelding%202021-12-30%20om%2009-09%201-png.png?width=576&name=Schermafbeelding%202021-12-30%20om%2009-09%201-png.png)

Note 📝: If you wish to track on multiple different pages, you have create multiple triggers as explained above. Every page exception will need its own trigger!

 

**Step 3: Create a tag in Google Tag Manager**

Now, you can add the tracking code to Google Tag Manager. Click in the left menu on "**Tags**" and create a new tag by clicking on "**New**" in the top right corner. Give your tag a unique name, for example, Leadinfo Tag and click on the two circles.

From the list, you need to pick the tag: "**Custom HTML**". Here, you need to paste the code you've copied from step 1.

![](https://help.leadinfo.com/hs-fs/hubfs/Schermafbeelding%202021-12-29%20om%2016-22%201%20(1)-png.png?width=576&name=Schermafbeelding%202021-12-29%20om%2016-22%201%20(1)-png.png)

**Step 4: Add the trigger you have created in step 2**

Your tag will only be fired when it's connected to a trigger. Click on "**Triggering**" and select the trigger that you created in step 2. Make sure to save the tag by clicking "**Save**" in the top right corner.

![](https://help.leadinfo.com/hs-fs/hubfs/Group%2092-png.png?width=576&name=Group%2092-png.png)

**Step 5: Publish the latest version**

You're almost ready to start recognizing companies on your website. The final step is to publish the newest version of the container. Click on "**Submit**" in the top right corner, give your version a name and click on "**Publish**".

 

![](https://help.leadinfo.com/hs-fs/hubfs/Group%2094-png.png?width=576&name=Group%2094-png.png)

- [Installing Leadinfo](https://help.leadinfo.com/en/installing-leadinfo?hsLang=en#main-content)

    - [Starting your trial period at Leadinfo](https://help.leadinfo.com/en/installing-leadinfo?hsLang=en#starting-your-trial-period-at-leadinfo)
    - [Add Leadinfo to your privacy statement](https://help.leadinfo.com/en/installing-leadinfo?hsLang=en#add-leadinfo-to-your-privacy-statement)
    - [Leadinfo Tracking Code](https://help.leadinfo.com/en/installing-leadinfo?hsLang=en#leadinfo-tracking-code)
    - [Ways to install Leadinfo](https://help.leadinfo.com/en/installing-leadinfo?hsLang=en#ways-to-install-leadinfo)
- [Starting with Leadinfo](https://help.leadinfo.com/en/starting-with-leadinfo?hsLang=en#main-content)

    - [Step 1: Give your colleagues access](https://help.leadinfo.com/en/starting-with-leadinfo?hsLang=en#step-1-give-your-colleagues-access)
    - [Step 2: Organize your inbox](https://help.leadinfo.com/en/starting-with-leadinfo?hsLang=en#step-2-organize-your-inbox)
    - [Step 3: Keep your inbox tidy by hiding certain companies](https://help.leadinfo.com/en/starting-with-leadinfo?hsLang=en#step-3-keep-your-inbox-tidy-by-hiding-certain-companies)
    - [Step 4: Set up your email reports](https://help.leadinfo.com/en/starting-with-leadinfo?hsLang=en#step-4-set-up-your-email-reports)
    - [Step 5: Set up your functions and integrations](https://help.leadinfo.com/en/starting-with-leadinfo?hsLang=en#step-5-set-up-your-functions-and-integrations)
    - [Step 6: Secure Leadinfo with Two-Factor Authentication](https://help.leadinfo.com/en/starting-with-leadinfo?hsLang=en#step-6-secure-leadinfo-with-two-factor-authentication)
- [Leadinfo Inbox](https://help.leadinfo.com/en/leadinfo-inbox?hsLang=en#main-content)

    - [Tags](https://help.leadinfo.com/en/leadinfo-inbox?hsLang=en#tags)
    - [Segments](https://help.leadinfo.com/en/leadinfo-inbox?hsLang=en#segments)
    - [Company information](https://help.leadinfo.com/en/leadinfo-inbox?hsLang=en#company-information)
- [Leadinfo Automation](https://help.leadinfo.com/en/leadinfo-automation?hsLang=en#main-content)

    - [Triggers](https://help.leadinfo.com/en/leadinfo-automation?hsLang=en#triggers)
    - [Reports](https://help.leadinfo.com/en/leadinfo-automation?hsLang=en#reports)
    - [Liquid content](https://help.leadinfo.com/en/leadinfo-automation?hsLang=en#liquid-content)
    - [Persona](https://help.leadinfo.com/en/leadinfo-automation?hsLang=en#persona)
    - [SFTP](https://help.leadinfo.com/en/leadinfo-automation?hsLang=en#sftp)
- [Optimise your Google Ads Strategy with Leadinfo](https://help.leadinfo.com/en/optimise-your-google-ads-strategy-with-leadinfo?hsLang=en#main-content)

    - [General](https://help.leadinfo.com/en/optimise-your-google-ads-strategy-with-leadinfo?hsLang=en#general)
    - [Most used CRM integrations](https://help.leadinfo.com/en/optimise-your-google-ads-strategy-with-leadinfo?hsLang=en#most-used-crm-integrations)
    - [CRM integrations](https://help.leadinfo.com/en/optimise-your-google-ads-strategy-with-leadinfo?hsLang=en#crm-integrations)
    - [Communication](https://help.leadinfo.com/en/optimise-your-google-ads-strategy-with-leadinfo?hsLang=en#communication)
    - [Google](https://help.leadinfo.com/en/optimise-your-google-ads-strategy-with-leadinfo?hsLang=en#google)
    - [Ads](https://help.leadinfo.com/en/optimise-your-google-ads-strategy-with-leadinfo?hsLang=en#ads)
    - [Automation](https://help.leadinfo.com/en/optimise-your-google-ads-strategy-with-leadinfo?hsLang=en#automation)
    - [Analytics](https://help.leadinfo.com/en/optimise-your-google-ads-strategy-with-leadinfo?hsLang=en#analytics)
- [Leadinfo Autopilot](https://help.leadinfo.com/en/leadinfo-autopilot?hsLang=en#main-content)

    - [General](https://help.leadinfo.com/en/leadinfo-autopilot?hsLang=en#general)
    - [Campaigns](https://help.leadinfo.com/en/leadinfo-autopilot?hsLang=en#campaigns)
    - [Contacts](https://help.leadinfo.com/en/leadinfo-autopilot?hsLang=en#contacts)
    - [LinkedIn & Email Account information](https://help.leadinfo.com/en/leadinfo-autopilot?hsLang=en#linkedin-email-account-information)
- [Leadinfo Leadbot](https://help.leadinfo.com/en/leadinfo-leadbot?hsLang=en#main-content)

    - [Building a Leadbot](https://help.leadinfo.com/en/leadinfo-leadbot?hsLang=en#building-a-leadbot)
    - [Editing a Leadbot](https://help.leadinfo.com/en/leadinfo-leadbot?hsLang=en#editing-a-leadbot)
    - [Leadbot integrations](https://help.leadinfo.com/en/leadinfo-leadbot?hsLang=en#leadbot-integrations)
    - [Leadbot Analytics](https://help.leadinfo.com/en/leadinfo-leadbot?hsLang=en#leadbot-analytics)
    - [Leadbot Forms](https://help.leadinfo.com/en/leadinfo-leadbot?hsLang=en#leadbot-forms)
    - [WhatsApp Business](https://help.leadinfo.com/en/leadinfo-leadbot?hsLang=en#whatsapp-business)
    - [Leadbot submissions](https://help.leadinfo.com/en/leadinfo-leadbot?hsLang=en#leadbot-submissions)
    - [Lead Gen Form](https://help.leadinfo.com/en/leadinfo-leadbot?hsLang=en#lead-gen-form)
- [Leadinfo Analyses](https://help.leadinfo.com/en/leadinfo-analyses?hsLang=en#main-content)

    - [Dashboard](https://help.leadinfo.com/en/leadinfo-analyses?hsLang=en#dashboard)
    - [Export](https://help.leadinfo.com/en/leadinfo-analyses?hsLang=en#export)
- [Tutorials and webinars](https://help.leadinfo.com/en/tutorials-and-webinars?hsLang=en#main-content)

    - [Webinars](https://help.leadinfo.com/en/tutorials-and-webinars?hsLang=en#webinars)
- [GDPR](https://help.leadinfo.com/en/gdpr?hsLang=en)
- [Account](https://help.leadinfo.com/en/account?hsLang=en)
- [Best practices](https://help.leadinfo.com/en/best-practices?hsLang=en#main-content)

    - [Triggers](https://help.leadinfo.com/en/best-practices?hsLang=en#triggers)
    - [Follow-up](https://help.leadinfo.com/en/best-practices?hsLang=en#follow-up)
    - [Integrations](https://help.leadinfo.com/en/best-practices?hsLang=en#integrations)
    - [Segments](https://help.leadinfo.com/en/best-practices?hsLang=en#segments)
- [Persona Insights](https://help.leadinfo.com/en/persona-insights?hsLang=en#main-content)

    - [Persona Insights](https://help.leadinfo.com/en/persona-insights?hsLang=en#persona-insights)
    - [Form Tracking](https://help.leadinfo.com/en/persona-insights?hsLang=en#form-tracking)
    - [Email Campaign Tracking](https://help.leadinfo.com/en/persona-insights?hsLang=en#email-campaign-tracking)
- [FAQ](https://help.leadinfo.com/en/faq?hsLang=en#main-content)

    - [General](https://help.leadinfo.com/en/faq?hsLang=en#general)
    - [Portal](https://help.leadinfo.com/en/faq?hsLang=en#portal)
    - [Recognition](https://help.leadinfo.com/en/faq?hsLang=en#recognition)
    - [Integrations](https://help.leadinfo.com/en/faq?hsLang=en#integrations)
    - [Invoices](https://help.leadinfo.com/en/faq?hsLang=en#invoices)
    - [Cookie consent solutions](https://help.leadinfo.com/en/faq?hsLang=en#cookie-consent-solutions)
    - [Leadbot](https://help.leadinfo.com/en/faq?hsLang=en#leadbot)
    - [Autopilot](https://help.leadinfo.com/en/faq?hsLang=en#autopilot)
    - [Persona Insights](https://help.leadinfo.com/en/faq?hsLang=en#persona-insights)
- [Troubleshooting](https://help.leadinfo.com/en/troubleshooting?hsLang=en#main-content)

    - [General](https://help.leadinfo.com/en/troubleshooting?hsLang=en#general)
    - [Integrations](https://help.leadinfo.com/en/troubleshooting?hsLang=en#integrations)
    - [Installation](https://help.leadinfo.com/en/troubleshooting?hsLang=en#installation)
- [How does Leadinfo work?](https://help.leadinfo.com/en/how-does-leadinfo-work?hsLang=en)

[![Leadinfo\_logo\_RGB\_Witte\_tekst-May-13-2023-10-03-08-9010-AM](https://help.leadinfo.com/hs-fs/hubfs/Leadinfo_logo_RGB_Witte_tekst-May-13-2023-10-03-08-9010-AM.png?width=200&height=41&name=Leadinfo_logo_RGB_Witte_tekst-May-13-2023-10-03-08-9010-AM.png "Leadinfo_logo_RGB_Witte_tekst-May-13-2023-10-03-08-9010-AM")](http://leadinfo.com)

Resources for Winners

[Terms & Conditions](https://www.leadinfo.com/en/eula/)  
                                                                                                                  [Privacy Policy](https://www.leadinfo.com/en/legal/privacy/)

 

 