---
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. [Getting Started](https://help.leadinfo.com/en/getting-started?hsLang=en)
3. [Quick Start Guide](https://help.leadinfo.com/en/getting-started?hsLang=en#quick-start-guide)

# 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)

- [Getting Started](https://help.leadinfo.com/en/getting-started?hsLang=en#main-content)

    - [How Leadinfo works](https://help.leadinfo.com/en/getting-started?hsLang=en#how-leadinfo-works)
    - [Quick Start Guide](https://help.leadinfo.com/en/getting-started?hsLang=en#quick-start-guide)
    - [Privacy Statement & Cookie Banner](https://help.leadinfo.com/en/getting-started?hsLang=en#privacy-statement-cookie-banner)
    - [Check your installation](https://help.leadinfo.com/en/getting-started?hsLang=en#check-your-installation)
    - [Your first steps](https://help.leadinfo.com/en/getting-started?hsLang=en#your-first-steps)
- [See Who’s Visiting](https://help.leadinfo.com/en/see-whos-visiting?hsLang=en#main-content)

    - [How company recognition works](https://help.leadinfo.com/en/see-whos-visiting?hsLang=en#how-company-recognition-works)
    - [Your Inbox & Company Profiles](https://help.leadinfo.com/en/see-whos-visiting?hsLang=en#your-inbox-company-profiles)
    - [Tags & Segments](https://help.leadinfo.com/en/see-whos-visiting?hsLang=en#tags-segments)
    - [Dashboard, Reports & Exports](https://help.leadinfo.com/en/see-whos-visiting?hsLang=en#dashboard-reports-exports)
- [Sales & Follow Up](https://help.leadinfo.com/en/sales-follow-up?hsLang=en#main-content)

    - [Follow-up Best Practices](https://help.leadinfo.com/en/sales-follow-up?hsLang=en#follow-up-best-practices)
    - [Find the Right Contacts](https://help.leadinfo.com/en/sales-follow-up?hsLang=en#find-the-right-contacts)
    - [Get Started with Autopilot](https://help.leadinfo.com/en/sales-follow-up?hsLang=en#get-started-with-autopilot)
    - [Autopilot Campaigns](https://help.leadinfo.com/en/sales-follow-up?hsLang=en#autopilot-campaigns)
    - [Manage your Autopilot Leads](https://help.leadinfo.com/en/sales-follow-up?hsLang=en#manage-your-autopilot-leads)
    - [Email Tracking](https://help.leadinfo.com/en/sales-follow-up?hsLang=en#email-tracking)
- [Grow with Marketing](https://help.leadinfo.com/en/grow-with-marketing?hsLang=en#main-content)

    - [Measure your Campaigns](https://help.leadinfo.com/en/grow-with-marketing?hsLang=en#measure-your-campaigns)
    - [Analytics & Google Ads](https://help.leadinfo.com/en/grow-with-marketing?hsLang=en#analytics-google-ads)
    - [Persona Insights](https://help.leadinfo.com/en/grow-with-marketing?hsLang=en#persona-insights)
    - [Target the Right Companies](https://help.leadinfo.com/en/grow-with-marketing?hsLang=en#target-the-right-companies)
- [CRM Integrations](https://help.leadinfo.com/en/crm-integrations?hsLang=en#main-content)

    - [Connect your CRM](https://help.leadinfo.com/en/crm-integrations?hsLang=en#connect-your-crm)
    - [Most Used CRM Integrations](https://help.leadinfo.com/en/crm-integrations?hsLang=en#most-used-crm-integrations)
    - [All Other CRMs](https://help.leadinfo.com/en/crm-integrations?hsLang=en#all-other-crms)
    - [Use Your CRM Data in Leadinfo](https://help.leadinfo.com/en/crm-integrations?hsLang=en#use-your-crm-data-in-leadinfo)
    - [Troubleshooting CRM Integrations](https://help.leadinfo.com/en/crm-integrations?hsLang=en#troubleshooting-crm-integrations)
- [Automate Your Workflow](https://help.leadinfo.com/en/automate-your-workflow?hsLang=en#main-content)

    - [Triggers](https://help.leadinfo.com/en/automate-your-workflow?hsLang=en#triggers)
    - [Notifications in Your Team Tools](https://help.leadinfo.com/en/automate-your-workflow?hsLang=en#notifications-in-your-team-tools)
    - [Zapier, Make & n8n](https://help.leadinfo.com/en/automate-your-workflow?hsLang=en#zapier-make-n8n)
    - [Website Personalisation](https://help.leadinfo.com/en/automate-your-workflow?hsLang=en#website-personalisation)
    - [API & Data Access](https://help.leadinfo.com/en/automate-your-workflow?hsLang=en#api-data-access)
- [Capture Leads with Leadbot](https://help.leadinfo.com/en/capture-leads-with-leadbot?hsLang=en#main-content)

    - [Getting Started with the Leadbot](https://help.leadinfo.com/en/capture-leads-with-leadbot?hsLang=en#getting-started-with-the-leadbot)
    - [Building a Leadbot](https://help.leadinfo.com/en/capture-leads-with-leadbot?hsLang=en#building-a-leadbot)
    - [Customise Your Leadbot](https://help.leadinfo.com/en/capture-leads-with-leadbot?hsLang=en#customise-your-leadbot)
    - [Forms & LeadGen Form](https://help.leadinfo.com/en/capture-leads-with-leadbot?hsLang=en#forms-leadgen-form)
    - [WhatsApp Business](https://help.leadinfo.com/en/capture-leads-with-leadbot?hsLang=en#whatsapp-business)
    - [Submissions & Notifications](https://help.leadinfo.com/en/capture-leads-with-leadbot?hsLang=en#submissions-notifications)
    - [Leadbot integrations](https://help.leadinfo.com/en/capture-leads-with-leadbot?hsLang=en#leadbot-integrations)
    - [Leadbot Analytics](https://help.leadinfo.com/en/capture-leads-with-leadbot?hsLang=en#leadbot-analytics)
- [Manage Your Leadinfo Account](https://help.leadinfo.com/en/manage-your-leadinfo-account?hsLang=en#main-content)

    - [Users & Access](https://help.leadinfo.com/en/manage-your-leadinfo-account?hsLang=en#users-access)
    - [Subscription & Billing](https://help.leadinfo.com/en/manage-your-leadinfo-account?hsLang=en#subscription-billing)
    - [Websites & Tracking Settings](https://help.leadinfo.com/en/manage-your-leadinfo-account?hsLang=en#websites-tracking-settings)
    - [Emails & Notifications](https://help.leadinfo.com/en/manage-your-leadinfo-account?hsLang=en#emails-notifications)
- [GDPR & Compliance](https://help.leadinfo.com/en/gdpr-compliance?hsLang=en#main-content)

    - [Leadinfo & GDPR](https://help.leadinfo.com/en/gdpr-compliance?hsLang=en#leadinfo-gdpr)
    - [Cookies & Consent](https://help.leadinfo.com/en/gdpr-compliance?hsLang=en#cookies-consent)
    - [Opt Out & Exclusions](https://help.leadinfo.com/en/gdpr-compliance?hsLang=en#opt-out-exclusions)
    - [Email Tracking & Outreach](https://help.leadinfo.com/en/gdpr-compliance?hsLang=en#email-tracking-outreach)
- [Tips & Support](https://help.leadinfo.com/en/tips-support?hsLang=en#main-content)

    - [Webinars & Academy](https://help.leadinfo.com/en/tips-support?hsLang=en#webinars-academy)
    - [General Questions & Feedback](https://help.leadinfo.com/en/tips-support?hsLang=en#general-questions-feedback)
- [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/)