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

  1. First copy AnyTrack Tag located in Property settings β†’ Tracking script
  2. Open your website head section and paste the code as high as possible.
  3. 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:

  1. In Google Tag Manager, click Tags in the navigation.
  2. Click New to create a new tag.
  3. Name your Tag (example: AnyTrack TAG).
  4. Click Tag Configuration.
  5. Select Custom HTML for the tag type.
  6. Copy the tag code on the property settings and paste it into the HTML field and Click Save.
  7. Click Add Trigger.
  8. Select All Pages.
  9. Click Save
  10. 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

  1. Create a new Property

Step 1 screenshot
  1. Click on the code to copy it in your Clipboard

Step 2 screenshot
  1. Open your Google Tag Manager Container

Step 3 screenshot
  1. Add a New Tag

Step 4 screenshot
  1. Click on Tag Configurations

Step 5 screenshot
  1. Select Custom HTML

Step 6 screenshot
  1. Paste the AnyTrack Tag

Step 7 screenshot

  1. Click on Triggering Options

Step 8 screenshot

  1. Select All Pages

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.
Step 9 screenshot

  1. Save the Tag and Name it

Step 10 screenshot

  1. Submit the new GTM Container

Step 11 screenshot
  1. Publish the Container

Step 12 screenshot

  1. Return to the property settings

Step 13 screenshot

  1. Refresh your website, and check the tracking status

Validation happens in near real time.
Step 14 screenshot

  1. Navigate to the Conversion Event Tab

You will see the current events that have been recorded.
Step 15 screenshot

  1. Click on one of the Events to see the payload

The Payload shows the data that has been captured by the AnyTrack Tag, and the AnyTrack Tracking API.
Step 16 screenshot