How to set up Site Tracking

Site Tracking connects your marketing and sales process to your website activity by tracking webpage visits made by contacts in "real-time."  

In order for Site Tracking to work, you'll need to whitelist your domain(s) and place a small snippet of tracking code that we provide into each page of your website. Once a contact is identified, we'll place a tracking cookie on them which will record their page views. This page view data will then get sent back into your ActiveCampaign account.

Site Tracking is quick and easy to set up. We recommend that everyone sets up Site Tracking because it's a core feature that enables more powerful marketing and sales processes.

To read more about Site tracking and how it works, see this help article.

In this article, we'll discuss:

How to turn on Site Tracking and whitelist domains

1. Click "Settings" located in the left-side menu.

2. Click "Tracking" on the left side of the Settings page.

3. Under Site Tracking, click the red toggle to turn site tracking on.

4. You'll see a section titled “Domain Whitelist” and an option to “Add Domain.”

In the text field, type your domain name (excluding the “http://") and click “Add.” Your domain will appear above to indicate it is whitelisted:

Add each of your domains (you can include the domains of multiple websites) and be sure you add all your subdomains as well. 

Our site tracking does not assume that a “www” exists for a URL. It is best practice to whitelist two versions of your domain: one version that uses a “www” and one that does not.

Installing Site Tracking code

For Site Tracking to work, you need to paste the tracking code that we provide into each page of your website. If you are using a WordPress site, please see our WordPress plugin article

To install Site Tracking code on your site, click into the "Tracking Code" box located on the Settings > Tracking page:

Press Control + c (Command + C on a Mac) to copy the code to your clipboard.

Press Control + v (Command + v on a Mac) to paste the code into your website.

This code should be placed on each page of your site. In general, we recommend placing the code in the footer as this is the easiest way of having site tracking work on all pages. However, you will need to review the documentation provided by your Content Management System (CMS) to make sure the placement of the code is correct. In addition, they may provide a solution that allows you to only paste the code once, and have it display on all pages.

How contacts are identified

Contacts need to be identified so that their site visits can be linked to their email address. They can be identified in any one of the following ways:

  • By submitting a form you created in ActiveCampaign
  • By clicking a link in a campaign or automation email

There is a third option for identifying your contacts. You can insert their email address into the code if you've already identified them by their email. For instance, if you have a membership site, you might be able to identify them after they log in.

You can dynamically populate the “trackcmp_email” variable with code. If this is too technical for you, note that you do not need to use this option—you can still identify contacts with form submits and link clicks. However, if you are technical enough, this is an additional option available to you.

Once the code is in your site, and you've whitelisted your domains, ActiveCampaign will begin collecting data and adding it onto your contact records as contacts are identified.

To read about Site Tracking and the GDPR, click here

Have more questions? Submit a request