Skip to content

Install AnyTrack Tag

Install the AnyTrack Tracking Tag on any website. Covers the platform integrations to check first, Google Tag Manager, website builders, direct code installation, verification, and troubleshooting.

This guide shows how to install the AnyTrack Tracking Tag on your website with Google Tag Manager, a website builder, or custom code.

The AnyTrack Tracking Tag is a JavaScript snippet that you add to every page of your website. It opens sessions, collects traffic source data such as UTM parameters and ad click IDs, and tracks browser events such as PageView, FormSubmit, and OutboundClick.

AnyTrack uses this data to attribute the conversions your conversion sources send. On Starter and above, AnyTrack also sends those conversions to your connected ad platforms through the Conversion API.

Before installing AnyTrack on your website, ensure you have:

  • Active AnyTrack account with a created Property (Create a Property)
  • Website administrator access to add code or install plugins
  • Your AnyTrack Property ID (found in Property Settings > Tracking Script tab)
  • List of existing tracking tools currently installed on your site

Before you use the universal installation methods below, check if your platform has a dedicated integration, such as Shopify, WooCommerce, or HighLevel. Some platforms require their integration.

eCommerce Platforms (Required Integrations)

Section titled “eCommerce Platforms (Required Integrations)”
PlatformRequired IntegrationWhy It’s Required
ShopifyShopify IntegrationAutomatic conversion tracking, product data, customer information
WooCommerceWooCommerce PluginBackend conversion tracking, order data, customer profiles
WordPressWordPress affiliate pluginIf you are an affiliate marketer, you should use the plugin.
PlatformDedicated GuideBenefits
WordPressWordPress Integration OptionsPlugin-based installation, automatic event tracking
ClickFunnelsClickFunnels IntegrationFunnel-specific tracking, conversion optimization
GoHighLevelHighLevel IntegrationForm tracking, workflow integration

Continue with the universal installation methods below if your platform is:

  • Custom-built websites
  • Website builders without native integrations (Wix, Webflow, Squarespace, etc.)
  • Content management systems other than WordPress
  • Static websites or landing pages

Choose the installation method that best fits your technical comfort level and website setup:

Section titled “Method 1: Google Tag Manager (Recommended for Most Users)”

Best for: Professional setups, multiple tracking tools, team collaboration, non-eCommerce sites

Not suitable for: WooCommerce stores (must use WooCommerce plugin instead)

  • Centralized tag management
  • No direct code editing required
  • Version control and testing capabilities
  • Team collaboration features
  • Easy to add additional tracking tools later

Option A: Automatic Install from the AnyTrack Wizard (Easiest)

Section titled “Option A: Automatic Install from the AnyTrack Wizard (Easiest)”

The AnyTrack onboarding wizard can install the Tracking Tag in your GTM container for you. This method requires a GTM container that is already installed on your website. If you do not have one yet, set up GTM first or use one of the other installation methods.

Select Install via Google Tag Manager in the wizard, sign in with the Google account that has access to your GTM container, and choose the GTM account, container, and workspace. AnyTrack adds the Tracking Tag, preconfigured with your Property ID, and publishes the container through the GTM API. No manual GTM configuration is needed.

See the step-by-step guide: Install Automatically from the AnyTrack Wizard.

Option B: Manual Step-by-Step GTM Installation

Section titled “Option B: Manual Step-by-Step GTM Installation”

Use this method if you prefer to configure GTM yourself, or if your Google account does not have permission to publish the container.

  1. Access Google Tag Manager

  2. Add AnyTrack Template

    • Click “Tags” → “New”
    • Click “Tag Configuration”
    • Select “Discover more tag types in the Community Template Gallery”
    • Search for “AnyTrack” and select the official template
    • Click “Add to workspace”
  3. Configure AnyTrack Tag

    • In Tag Configuration, select “AnyTrack”
    • Enter your Property ID from AnyTrack dashboard
    • Name your tag (e.g., “AnyTrack - All Pages”)
  4. Set Trigger

    • Click “Triggering”
    • Select “All Pages” trigger
    • Save the tag
  5. Publish Container

    • Click “Submit” → “Publish”
    • Add version notes and publish
  6. Install GTM Container on Website

    • Copy your GTM container code
    • Add it to your website’s <head> section (or use your platform’s GTM integration)
  • Use AnyTrack Pixel Helper to verify tag loading
  • Check GTM Preview mode to confirm that the AnyTrack tag triggers on every page
  • Open the Conversions Report and confirm that PageView events arrive

Complete GTM Guide: Google Tag Manager Integration


Method 2: Website Builder Manual Installation

Section titled “Method 2: Website Builder Manual Installation”

Best for: Website builders, simple sites, users comfortable with basic code placement

Supported platforms: Wix, Webflow, Squarespace, Carrd, Leadpages, and most website builders

  1. Get Your Tracking Script
    • Log into AnyTrack dashboard
    • Navigate to Property Settings → Tracking Script tab
    • Copy your unique tracking script
Tracking Script tab in AnyTrack Property Settings
  1. Find Code Injection Area

    Platform-Specific Locations:

    PlatformLocationInstructions
    WixSettings → Marketing Tools → Custom CodePaste in “Head” section, apply to “All Pages”
    WebflowProject Settings → Custom CodePaste in “Head Code” field
    SquarespaceSettings → Advanced → Code InjectionPaste in “Header” field
    CarrdSite Settings → Code → HeadAvailable in Pro plans only
    LeadpagesPage Settings → Tracking CodesAdd to each page individually
  2. Paste Tracking Script

    • Place the script in the <head> section
    • Apply to all pages (site-wide setting when available)
    • Save and publish changes
<script>
! function(e, t, n, s, a) {
(a = t.createElement(n)).async = !0,
a.src = "https://assets.anytrack.io/XXXXXXXXX.js",
(t = t.getElementsByTagName(n)[0]).parentNode.insertBefore(a, t),
e[s] = e[s] || function() {
(e[s].q = e[s].q || []).push(arguments)
}
}(window, document, "script", "AnyTrack");
</script>

Complete Website Builder Guide: Website Builders Integration


Best for: Custom websites, full control environments, developers

Technical requirement: Direct access to website’s HTML files or theme files

  1. Access Website Files

    • Via FTP, hosting control panel, or CMS theme editor
    • Locate the main template file (usually header.php, index.html, or main template)
  2. Locate the <head> Section

    • Find the opening <head> tag
    • Place cursor just after <head> or before </head>
  3. Insert Tracking Script

    • Paste your complete AnyTrack tracking script
    • Ensure it loads on all pages of your website
  4. Save and Test

    • Save file changes
    • Clear any caching
    • Test using verification steps below
  • Single Page Applications (SPA): May require additional configuration for route changes. See Single Page App Tracking.
  • Server-Side Rendering: Ensure script loads in browser environment
  • Content Security Policy: Add AnyTrack domains to CSP if applicable

Regardless of installation method, always verify your setup:

  • Open the Conversions Report in the AnyTrack Dashboard
  • Browse your website in another tab
  • Confirm that PageView events arrive in near real time
  • Visit multiple pages on your website
  • Confirm tracking works across your entire site
  • Test on mobile devices if applicable
IssueCauseSolution
Extension doesn’t turn blueScript not loadingCheck code placement, clear cache
Intermittent trackingCaching issuesClear website and browser cache
Mobile not trackingResponsive template issuesTest on actual mobile devices
No data in dashboardIncorrect Property IDVerify Property ID matches dashboard

1. Remove Duplicate Pixels After You Verify Delivery

Section titled “1. Remove Duplicate Pixels After You Verify Delivery”

AnyTrack loads the pixels of your connected ad platforms. On Starter and above, after you verify delivery to a platform, remove the direct installations that send the same conversions to it. Direct installations of the same pixel cause duplicate events, poor match rates, and inaccurate attribution. Step 7 of the Setup Guide gives the full procedure.

Direct installations to remove after verification:

  • Facebook Pixel (Meta Pixel) code installed directly on the site
  • Google Analytics tags installed directly on the site, if you use the AnyTrack GA4 integration
  • Other conversion tags of ad platforms that you connected in AnyTrack
  • Plugins that install their own pixel, such as Facebook for WooCommerce

The Tracking Tag collects clicks and browser events. To track and attribute conversions, finish Steps 3 to 5 of the Setup Guide:

  • Add the UTM tracking template to your ads.
  • Connect your ad platforms. On Starter and above, AnyTrack sends them conversions through the Conversion API.
  • Connect your conversion sources from the Integration Catalog.

If your website spans multiple domains (e.g., separate checkout domain):

For tracking specific actions beyond standard events:

Understanding automatic tracking capabilities:

  • AutoTrack: Automatically tracks form submissions and outbound clicks
  • AutoTag: Automatically adds tracking parameters to affiliate and external links
  • Learn more about the AnyTrack Tag

Symptoms: AnyTrack Pixel Helper doesn’t detect tag, no data in dashboard

Solutions:

  1. Check script placement: Must be in <head> section, not <body>
  2. Clear all caches: Website cache, CDN cache, browser cache
  3. Verify Property ID: Ensure ID in script matches your AnyTrack Property
  4. Check for JavaScript errors: Use browser developer tools console
  5. Test in incognito mode: Rules out browser extension conflicts

Symptoms: Inconsistent data, duplicate events in ad platforms

Solutions:

  1. Remove duplicate pixel installations: On Starter and above, after you verify AnyTrack delivery, remove direct installations of the same ad platform pixel. On Free, keep them.
  2. Disable conflicting plugins: Temporarily disable to identify conflicts
  3. Check GTM container: Ensure no duplicate AnyTrack tags
  4. Review Meta Events Manager: Confirm that each conversion event comes from one source

Symptoms: Reduced tracking in certain browsers (Safari, Brave, Firefox)

Understanding:

  • Privacy-focused browsers can block client-side tracking
  • This affects all tracking platforms, not just AnyTrack
  • Server-side conversion tracking (via integrations) remains unaffected

Contact AnyTrack Support if:

  • Tag appears to load but no data in dashboard after 24 hours
  • Receiving error messages in browser console
  • Platform-specific installation issues
  • Integration conflicts you can’t resolve
  • Custom implementation requirements

Before contacting support:

  • Complete all verification steps in this guide
  • Test in multiple browsers and devices
  • Check browser developer console for errors
  • Note your website platform and any error messages

Once the Tracking Tag loads on every page, connect your ad platforms and conversion sources. The Setup Guide walks you through both.