Site Tracking connects your marketing and sales process to your website activity by tracking webpage visits made by contacts in "real-time."
In this article:
How site tracking works
In order for Site Tracking to work, you need to whitelist your URL on the Settings>Tracking page in your account. We then provide you with a small snippet of tracking code. You will need to add this code to the footer of your website. This tracking code allows page view data to be sent to your ActiveCampagin account.
We use first party cookies to track visits made to every page on your site that has ActiveCampaign site tracking code installed. A first party cookie is a cookie that is created by the domain that the contact is visiting. When the contact visits your site, their web browser saves data files to their computer under the website's name. This provides transparency to your contacts about where these tracking cookies came from and where their information is being stored.
To associate page view data with a contact, that contact needs to be identified. This allows us to link site visits with their email address. Page visit data is then stored in your account. It is made available on the contact's profile record and in the floating segment builder.
There are three ways to identify visitors:
When they click on a link in a campaign.
We add a parameter to each link in your email that directs contacts to a page on your site that has site tracking installed. This parameter appears as "vgo_ee=<garbled_text>" in the URL bar when a contact clicks that link in your email. The garbled text is the encrypted email address of the contact. This allows us to identify the contact who clicked your campaign link and visited your web page. This parameter disappears from the URL bar as soon as the page loads.
When they submit a form created in ActiveCampaign.
Note that if the form has double opt-in enabled, page views will not be tracked for visitors until they complete the opt-in process. We are not able to identify visitors who submit a third-party form.
By dynamically inserting the email address of known visitors into the tracking code.
See the section titled “How contacts are identified” below for more information.
Note that Site Tracking is collecting anonymous page view data for all your site visitors, even before a contact is identified. However, only page view data collected after the identification of the contact will be shown on their contact profile page.
To learn about Site Tracking and the GDPR, click here.
How to set up site tracking
In this section, you'll learn how to enable site tracking and whitelist your domain.
1. Click "Settings" in the left menu.
2. The "Settings" menu will expand. Click the "Tracking" option.
3. Under Site Tracking, click the "Enable" toggle to set it to the "On" position.
4. In the “Whitelist and Install Code” section of the page, type your website URL (excluding the “http://") into the "Add Website URL" field. Then click the "Add" button.
- Add each of your domains (you can include the domains of multiple websites) and subdomains
- You are not required to include the "www" in the URL in order to whitelist the domain
We'll list the domain(s) you entered into the "Website URL" section of the Tracking page. In addition, the following items are selected by default:
This means that we'll track visits made to your whitelisted URL once the tracking code is installed.
This means that the Conversations chat widget will appear each page that has site tracking code installed. If you wish to only enable site tracking, untick the "Conversations" box. Note that in order to add the chat widget to your website, you will need to enable Conversations. Learn more about our Conversations feature.
Include all website pages
This means that each page on your domain will be whitelisted. If you want to whitelist a single page or subdomain, type the specific URL of that page into the "Add Website URL" field. Next untick the "Include all website pages" box then click the "Add" button.
How to install site tracking code
If you are using a WordPress site, please see our WordPress plugin article.
To install Site Tracking code on your site, click the "Tracking Code" box located on the Settings > Tracking page and copy it to your clipboard.
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.
Next, paste the site tracking code into the footer of your of each page on your website that you want to track.
We recommend placing the code in the footer because 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.