Our Website Activity integration allows you to track your subscriber's behavior on your web pages where our tracking code has been added. Think of it like “de-anonymizing” Google Analytics: instead of just how many people visit your site, you will also be able to track specific subscribers that visit your site and know exactly what pages they visit.
How it Works
Center collects visitor data via a tracking code snippet added to the <head> tag of any page on your website. With this code installed, a cookie with a unique identifier is added to your visitors’ browsers. By associating this unique identifier with an email address, you now have the ability to create segments in Center using the tracked activity.
There are three ways Center can link a cookie to an email address:
Method 1: A contact submits an email address through a Leadpage or Leadbox (see the Step-by-Step Instructions below for details).
- Method 2: A contact clicks a URL containing an email merge tag in an email sent from your Email Service Provider (ESP). In this case, the page the URL sends a contact to must contain the Center Tracking Code so that the association can be made.
Method 3: A contact submits a non-Leadpages form, and Center accesses their email address through that submission. (You must select the Capture Form Submissions option to enable this.)
The Fine Print
Website activity data will only be available in Center once a visitor's activity has been associated with an email address through one of the options above.
Contacts who browse via private/Incognito windows are not trackable, since no cookies are added to these types of browser windows.
Some regions, such as the EU, require website owners to notify visitors when certain types of tracking code are being used. We urge you to consult the proper source regarding requirements about the use of tracking code for your region prior to using the Center Tracking Code on your site. Leadpages is not liable for any unauthorized use of our Center Tracking Code by customers.
To successfully set up page tracking for your Center Rule, you will need to do the following:
1. Install the Center Tracking Code snippet on pages you want to track.
- On the Integrations tab in Center, select Website Activity.
- On Step 1 of the connection process, copy the tracking code snippet and add it in the
<head>tag of every website page you want to track.
2. Choose a method to associate the email address with the visitor.
Method 1: Use your Leadpages forms or Leadboxes to associate the cookies with email addresses from form submissions.
- Turn on your Default Center Tracking Code toggle switch in your Leadpages Account settings. Turning the switch “on” affects:
- Standard Leadpages forms and Leadboxes: any visitor that opts in to all new and existing pages will be associated with your Default Center Tracking Code.
- Drag & Drop Leadpages: any visitor that opts in to all new pages will be associated with your Default Center Tracking Code.
Method 2: Track subscribers who click on a link in your email campaigns using your ESP’s merge field functionality.
Check with your ESP to ensure it supports dynamic URLs (most do) and to verify the required email merge tag format.
In your ESP, create an email message that contains a link to a page you can edit. (This will be the page your visitors see when they click your link.)
Add the Center Tracking Code to the
<head>section of the page you linked to in Step 2.
Add the email parameter to the URL so that Center recognizes and captures the email address. The email parameter must be either either “
?center_email=” or “
- Make the link dynamic by appending the merge tag for the recipient’s email address to the URL. For example, if your ESP’s email merge field is
[email], then the full URL could look like
- When an email recipient clicks the link, their email address will replace the email merge tag. Using the example above, if the campaign is sent to
firstname.lastname@example.org, then the link will dynamically change from
email@example.com that person’s email.
Once the email recipient clicks the link and lands on the page, the Center tracking code will recognize the email address in the URL, and will associate the cookie with that email address.
Method 3: Use a third-party form.
By default, your Center tracking code includes a snippet that can identify site visitors by the email address collected through your third-party form. If you'd like to remove third-party forms as a tracking source (due to privacy, regional, or other business concerns) simply un-check the Capture Form Submissions option. You can do this during set up or for existing tracking codes under Integrations › Website Activity › View Setup (for the specific code you’d like to edit).
3. Create a Rule in Center using the Website Activity source.
Now that your tracking code is installed, create a rule in Center to test it. The default selection will include any contact who has visited any page with the tracking code. However, you can apply the following filters:
- Date: Contacts who have visited any page that contains the tracking code on a specific date(s)
- Full Page URL: Contacts who have visited a specific page that contains the tracking code
- Page Path: Contacts who have visited a specific page path (e.g. for
www.center.io/checkoutyou would include “
- Page Referrer URL: Contacts who were referred to any page that contains tracking code—this is useful for tracking visitors who arrive at your site via referral links or affiliate links. NOTE: the page URL you enter for this filter does not need to contain the Center tracking code, however the page that the visitor lands on must contain the code.
We recommend that you test your rule by associating your own email address with the tracking code, visiting a page that contains the code, and then creating a simple rule to see if your visit is captured.
Frequently Asked Questions
Do I need to create multiple Center Tracking Code snippets for my site?
No, each individual tracking code snippet can be used on either a single website or across multiple websites. You can specify the pages you want to include in a rule by including those page URLs in the Page URL filter of the Website Activity source.
If you’re working with multiple businesses or clients you can keep the website activity tracking separate by creating different tracking code snippets for each business. You can override the default tracking code on any Drag & Drop page by using the following Advanced Setup steps:
- Go to the SEO & Analytics options for your page and select the Center tab.
- Choose the tracking code you’d like to use via the drop-down.
- Save the form and update your page for the changes to take effect.
Can Center tracking code be used in conjunction with Google Tag Manager?
Yes, Center tracking code can be injected onto a webpage using Google Tag Manager.
Does the Website Activity source provide historical visit data (like other integrations do)?
The tracking code will capture visit data for associated email addresses from the time the code is installed on a given page.
Can the tracking code be used to track users across different domains?
Yes, Center does not prevent using the tracking code on a domain that differs from the one you used when you created the code. You can track visitors on different domains that you control as long as you use add the same code snippet to those pages.
Can the code be used to track the same users across different browsers or devices?
Yes, users that visit from different browsers/devices and opt-in with the same email address will have their page visits merged into a single record.
Please let us know if you have additional questions!
We’re here to help. If you run into any issues or just have additional questions, please contact our support team. You can also create a ticket by clicking the banner in the top right corner of the Center interface.