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 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 called “Whitelist and Install Code” and an option to add your domain(s).
In the "Add Website URL" field, type your website URL (excluding the “http://") and click “Add.” Your domain will appear to indicate it's whitelisted.
Add each of your domains (you can include the domains of multiple websites) and be sure you add all your subdomains as well.
5. The Site Tracking and Conversations boxes will be checked by default for each domain you whitelist. The checked Conversations box means that the Conversations chat widget will appear on those pages. If you only wish to enable site tracking, you can uncheck the "Conversations" box.
Note that in order to add the chat widget to your website, you'll need to enable the Conversations feature.
Installing Site Tracking code
To install Site Tracking code on your site, click 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.
For Site Tracking to work, you need to paste the tracking code that we provide into each page of your website. 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.
Note that if you also have Conversations checked on the Tracking page, the chat widget will appear on every page that has site tracking code installed.
If you are using a WordPress site, please see our WordPress plugin article.
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.