On this page
What this issue is
Both tools offer site tracking: a small JavaScript snippet on your website. It links a visitor to a contact in your list (usually after they click a tracked email link or submit a form) and records the pages they view afterwards.
In ActiveCampaign, this is the site tracking code under Website > Site Tracking. In Mailchimp, it is the connected site script or Mailchimp pixel, which you get when you connect a site or use a Mailchimp popup or form on it. The issue is that the snippet is not on the page, not loading, or not allowed to run.
Why it costs you leads or sales
Without the script, you lose the page-visit data your automations rely on. Examples are a follow-up email after someone views a pricing page, lead scoring based on visits, or a cart or product reminder. Contacts look inactive when they are not.
- Email clickContact arrives from a campaign
- Page loadsTracking script missing or blocked
- Visit recordedNo page view saved to the contact
- AutomationVisit-based trigger never fires
The tracking script is the link between a visit and the contact record.
Example: share of clicked-email contacts showing page visits before and after the script was fixed. Numbers are illustrative.
How to check if your site has it
View the page source
Open a key page in a private window, right-click, choose View page source and search for your account ID or for 'trackcmp' (ActiveCampaign) or 'chimpstatic' / 'mc.us' (Mailchimp).
Check the Network tab
Open browser developer tools, go to Network, reload and filter for the same names. A request that returns status 200 means the script loaded. No request means it is missing or blocked.
Test with a real contact
Send yourself a campaign, click a tracked link, browse two pages, then open your contact record. Page views can take a few minutes to appear.
Check the account settings
In ActiveCampaign, confirm Website > Site Tracking is switched on and your domain is listed. In Mailchimp, confirm the site is connected and the script status is active.
Test with consent denied
Reject cookies in your banner and reload. If the script never loads even after you accept, your consent tool is blocking it.
How to fix it
First copy the current snippet from your account, because it includes your account ID. Then add it to every page, ideally once, in the site-wide header or footer.
Use the official plugin or a header snippet
ActiveCampaign has an official plugin; sign in with your account URL and key and enable site tracking. For Mailchimp, use the Mailchimp for WooCommerce or Mailchimp for WordPress connection, or paste the snippet into a header tool such as WPCode.
Clear caches
Purge your cache plugin and CDN so pages include the script.
Connect the app
Install the Mailchimp or ActiveCampaign app from the Shopify App Store and finish the connection so it adds its script.
Or add the code manually
Go to Online Store > Themes > Edit code, open theme.liquid and paste the snippet before the closing head tag.
Create a Custom HTML tag
Paste the snippet, set the trigger to All Pages (or after consent), then Submit and publish the container.
Test in Preview
Use Preview mode to confirm the tag fires on page load.
Add to custom code
Go to Site settings > Custom code, paste the snippet in Head code, save and publish the site.
Add a custom code snippet
Go to Settings > Custom code, add the snippet, apply it to All pages and place it in Head.
Use code injection
Go to Settings > Advanced > Code Injection and paste the snippet into Header, then save.
Add it to your base template
Place the snippet in the shared head or footer template so every page includes it, then deploy.
<script type="text/javascript">
(function(e,t,o,n,p,r,i){e.visitorGlobalObjectAlias=n;e[e.visitorGlobalObjectAlias]=e[e.visitorGlobalObjectAlias]||function(){(e[e.visitorGlobalObjectAlias].q=e[e.visitorGlobalObjectAlias].q||[]).push(arguments)};e[e.visitorGlobalObjectAlias].l=(new Date).getTime();r=t.createElement("script");r.src=o;r.async=true;i=t.getElementsByTagName("script")[0];i.parentNode.insertBefore(r,i)})(window,document,"https://diffuser-cdn.app-us1.com/diffuser/diffuser.js","vgo");
vgo('setAccount', 'YOUR_ACCOUNT_ID');
vgo('setTrackByDefault', true);
vgo('process');
</script>How to confirm it's fixed
- The script request returns status 200 in the Network tab on your key pages
- The snippet appears only once per page
- A test contact who clicked a tracked email link shows page views in their record
- The site's domain is listed and active in the tool's tracking settings
- The script loads after you accept cookies in your banner
- A visit-based automation starts for a test contact
How to prevent it happening again
Most regressions come from theme changes, new landing page tools, tag manager edits or cache and consent updates. Keep the install in one place, note who owns it, and retest after any change to templates or the cookie banner.
- Install the script in one place only (plugin, theme or tag manager)
- Add a retest to your launch checklist for new pages and domains
- Retest after theme updates, migrations and consent tool changes
- Check landing page builders that run on separate domains
- Review a sample contact's activity monthly
How FunnelGuard handles this
FunnelGuard does not check for ActiveCampaign or Mailchimp site tracking yet. It is a possible future check.
What FunnelGuard does today is run your real journeys, such as lead forms and checkouts, on a schedule. It checks each step, the tracking hits sent to ad and analytics platforms like GA4, Google Ads and Meta, and whether test leads reach your inbox and CRM. If a form breaks or a lead never arrives, you get one alert with a screenshot and likely cause.
| Method | How often | What it shows |
|---|---|---|
| Network tab check on key pages | After each site change | Whether the script loads |
| Tracked email click test | Monthly | Whether visits reach the contact |
| Tag manager Preview mode | After tag edits | Whether the tag fires |
| Contact activity review | Monthly | Sudden drops in recorded visits |
Questions people ask
Why is my ActiveCampaign site tracking not working?
The usual causes are a missing or duplicated script, a domain not listed in Site Tracking, a cache serving old pages, or a cookie banner blocking the script. Check the page source and Network tab for the script, then confirm your domain is enabled in Website > Site Tracking.
Why are page visits not showing on my ActiveCampaign contact?
Tracking only links a visit to a contact after they are identified, for example by clicking a tracked email link or submitting a tracked form. If the script loads but visits still do not appear, test with a fresh email click and allow a few minutes.
How do I check if the Mailchimp tracking script is on my website?
Open a page, view the source or the Network tab, and search for your Mailchimp script or pixel request. Also check in Mailchimp that your site is connected and shows as active.
Does a cookie banner stop ActiveCampaign tracking?
It can. If your consent tool blocks marketing scripts until visitors accept, the snippet will not load for those who decline. Configure the tag to fire after consent and do not bypass the choice.
How do I install ActiveCampaign site tracking on Shopify or WordPress?
On WordPress, use the ActiveCampaign plugin or add the snippet through a header tool. On Shopify, install the official app or paste the snippet into theme.liquid before the closing head tag. Then clear caches and retest.
Can I add the tracking script through Google Tag Manager?
Yes. Create a Custom HTML tag with your snippet, trigger it on All Pages or after consent, test in Preview mode and publish. Make sure the script is not also hard-coded in your theme.
Does FunnelGuard monitor ActiveCampaign or Mailchimp site tracking?
Not yet. It is a possible future check. FunnelGuard does run your lead journeys and check ad and analytics tracking hits and test lead delivery, but you need to check this script manually for now.
Related issues
- TRK-267HubSpot tracking code missingFix guide
- TRK-273Salesforce Pardot / Marketo Munchkin tracking missingFix guide
- TRK-275Klaviyo onsite tracking missing (Viewed Product, Started Checkout)Fix guide
- TRK-270UTMs not written to CRM contact fieldsFix guide
- TRK-278Hidden UTM fields present but emptyFix guide
- TRK-268HubSpot form submissions not linked to tracked visitor (hutk missing)Fix guide