Installing the AnyTrack Tag
Learn how to quickly install the AnyTrack tag on your website to start tracking conversions and optimizing ROAS.
AnyTrack is a light weight tracking tag that you add to your website's head
section. it should load across your entire website and doesn't need to be customized to track standard events.
The AnyTrack Tag
<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>
There are 4 methods to add the Tag to your website:
- Add the Tag directly in the
head
section of your website. - Use one of the AnyTrack Plugin - for Affiliate Link manager or Woocommerce.
- Using Google Tag Manager.
- Use the Tag management system provided by your website builder (ClickFunnels, GohighLevel etc.).
How to insert the AnyTrack Tag and validate the setup
- First copy AnyTrack Tag located in Property settings → Tracking script
- Open your website head section and paste the code as high as possible.
- Validate the installation by visiting your website.

How to add AnyTrack TAG via Google Tag Manager (GTM)?
The Custom HTML Tag type allows you to deploy a custom HTML tag such as AnyTrack TAG.
To create a new Custom HTML tag:
- In Google Tag Manager, click Tags in the navigation.
- Click New to create a new tag.
- Name your Tag (example: AnyTrack TAG).
- Click Tag Configuration.
- Select Custom HTML for the tag type.
- Copy the tag code on the property settings and paste it into the HTML field and Click Save.
- Click Add Trigger.
- Select All Pages.
- Click Save
- Click Submit and Publish the container.
From now on, AnyTrack will automatically capture meaningful events such as OutboundClick
, FormSubmit
, add to cart
, and initiate checkout
events.
In order to track conversions such as purchases, leads, and eCommerce journeys, you will need to add a conversion source available in the integration catalog.
How to setup your AnyTrack TAG with Google Tag Manager with screenshots






With AnyTrack AutoTrack & AutoTag features tracking outbound clicks, lead generation funnels is done for you automatically. So you don't need to trigger any other types of events or parameters.

Validation happens in near real time.
You will see the current events that have been recorded.
The Payload shows the data that has been captured by the AnyTrack Tag, and the AnyTrack Tracking API.
Updated 5 months ago