We're making it easier to get around Constant Contact with a brand new left navigation. Not all accounts have that change yet, so if your navigation looks different from our articles, that's why–but everything from the top can now be found on the left!

Email and Digital Marketing
How can we help you?
Search our help articles, video tutorials, and quickstart guides

You've got this. You've got us. Search our Knowledge Base to quickly find answers to your questions.

Activating and installing your Constant Contact tracking code

Article: 000054014
Updated: October 8, 2025

Use the Constant Contact tracking code to turn real-time website data into automated actions that deliver the right message to the right contacts, at the right time

Email Plus IconReview your plan: This feature is not available in all Constant Contact plans. If you don’t have full access, you may need to upgrade your plan.

 

The website tracking code is an embed code that is added to your website so that you can capture real-time events, like page views, for your existing contacts. Your contacts can be segmented by their page visit behavior and you can also use our automation tools to send email and SMS messages for hyper-targeted campaigns.

 

Exclamation Point IconImportant: The website tracking code captures information from website visitors, and you must understand and comply with all applicable privacy laws, regulations, and industry guidelines concerning data collection. Learn more.

 


How the tracking code works

The website tracking code is added to each page of your website that you want to track within the head tags <head>, and identifies individuals who click a link within a Constant Contact email or SMS message and then end up browsing your website. These individuals are cookied so they can be identified during all future visits to your website.

  • The tracking code only tracks a managed contact within your Constant Contact account and only after they have clicked a tracking link in a Constant Contact email or SMS message.
  • If an existing contact opens an email or views an SMS message and clicks a link that takes them to your website, they're tracked whenever they visit your website going forward.
  • If a visitor to your website is not one of your managed contacts, we capture the event as "anonymous" and it is deleted within 30 days. This includes anyone who isn't a contact and views an email through the permanent URL, used to share the email in a social post or other places online, and then clicks a link within it.

 

The CID parameter

Constant Contact’s website tracking works by adding an additional CID parameter to all the URLs you send. The unique encrypted value is then decrypted by the website tracking code and allows Constant Contact to identify the user that clicked through the URL. The CID parameter is automatically appended when emails and SMS are sent, but should not affect the load times of your links or break any links based on its placement.

For example:

https://www.example.com/?cid=abcycpbFxd9nabcdGB9zg23QcFXzpQ6_Drg7Drmet123hvyzSOOFQNg8dxxxxxxxxxx2rE0khUN8Y3ioS3aaaaaaaaM6YXbPyUEIA9MaqX

 

How to activate and install the Constant Contact tracking code

Exclamation Point IconImportant: This article requires you to use HTML code. If you work with a webmaster, they can help you install the code into your website. If you're using a website builder, please contact their support for help with placing the code. Your website builder or hosting platform must support JavaScript for the Constant Contact tracking code to work.

 

The Constant Contact tracking code needs to be added before the closing head tag </head> on every page of your website. Here's how to generate the code:

  1. From your account settings, click the Website tracking tab.
  2. Enter the URL for the website you want to track into the field.
  3. A privacy policy is required when collecting personal information through the tracking code. Review the terms and conditions for the tracking code and check the box if you agree.
  4. Click the Continue button.

    Account settings with Website tracking tab selected, URL field, tracking permission and privacy policy disclosure option, and Continue button
     
  5. Click either the:
  • Copy code button - This lets you manually copy the code so you can add it to your website yourself.
  • Send to developer button - This lets you enter an email address for your webmaster so you can send the code directly to them. The email includes instructions for adding the code to your website. (See email example below.)
  1. After the tracking code is installed on your website, click the Continue button.

    Account settings with Website tracking tab selected, Embed code with Copy code button and Send to developer button options, and Continue button
     
  2. Check the status of your tracking code:
  • Receiving data - Your tracking code has been installed successfully and it is receiving data for website events.
  • Not receiving data - Your tracking code is either not installed, or it has been installed but has an issue. Make sure you've installed the tracking code into your website's code right before the closing head tag. After you’ve installed the tracking code, visit a webpage from your site that the code is installed on to confirm your tracking code is working.
  • Disabled - Your tracking code is no longer collecting data because it is disabled.
  1. Click the Finish button.

    Account settings with Website tracking tab selected, Now let's confirm your code is working section with Status and Finish button
     

 

Example developer email

Inbox with example developer email with tracking code and install instructions
 

 

Use Constant Contact tools with the website tracking code

Once you've successfully installed the tracking code on your website, you can use our segmentation and automation tools to reach your contacts with the right messaging at the right time.

  • Segmentation - Use the Segment Builder to filter your contacts into segments based on a visit to a page of your website with the tracking code installed. The segments filters out contacts who meet all the criteria of the segment so that you can send them targeted email and SMS message content. The web tracking criterion can be used on its own or you can use AND/OR logic to combine it with other criteria to meet your needs.

    Segment builder with Web tracking criterion and AND logic
     
  • Automation - Use the Automation Path Builder to create an automation triggered when a contact visits a page of your website with the tracking code installed. Your automation can be as simple as sending a single email, or you can add complexity with conditional splits, time delays, and other path actions. You can even drive traffic back to your website within email and SMS messages too.
    Note: If you create an automation using a different type of trigger, you can still build website visits into the trigger using a filter or auto-stop. In addition, as you build out your automation, you can add a conditional split and select a segment based on website visits as the condition for the path split.

    Automation path builder with Automation trigger settings overlay, and Trigger details section with Visits a page trigger option selected
     

 

How to edit or deactivate the Constant Contact tracking code

If you need to make URL changes or pause the website tracking on your website, it's easy!

  1. From your account settings, click the Website tracking tab.
  2. From here you can take the following actions:
  • Turn off website tracking - Click the toggle to disable tracking, and then click the Yes, turn it off button to confirm the action. The toggle can be re-enabled at any time. When you disabled the tracking code no additional web events will be sent to Constant Contact and any active automations or segments set to use event data from the Website tracking code will no longer fire for new events.
  • Change the website URL you're tracking - Next to the Website field, click the Edit button, then enter the new URL you want to track. When you change the URL, you need to add the tracking code to the new website.
  • Re-share the tracking code - Under the Embed code field, click either the Copy code or Send to developer button.

    Account settings with Website tracking tab selected, Website tracking section with toggle enabled, Status section with Receiving data status, Website section with URL field and Edit button, and Embed code section with tracking code and Copy code button and Send to developer button
     

 

Exclamation Point IconImportant: To fully remove and disable the Constant Contact tracking code, don't forget to manually remove the tracking code from your website’s code.

 


Questions?

Ask the Community

Did this article answer your question?


Constant Contact Logo

Copyright © 2025 · All Rights Reserved · Constant Contact · Privacy Center