Google Tag Manager Integration

Get the most out of your marketing stack with Google Tag Manager integration for AnyTrack.io. Streamline and automate conversion data attribution to get better ROAS.

Google Tag Manager is a tag management system that lets you deploy and manage tracking tags on your website from an easy-to-use web-based user interface.

You can now install AnyTrack via the official Google Tag Manager Template available in the Google Tag Manager Template Gallery

AnyTrack Google Tag Manager Template

πŸ“˜

Prerequisites:

How AnyTrack compares to Google Tag Manager

If you're currently using Google Tag Manager, you know that you need to configure various triggers that will fire your tags according to the events you want to track.

Depending on the complexity of your setup, these triggers can be hard to configure.

With AnyTrack, Event Tracking functions such as outbound clicks and form submissions are automatically triggered and the variables associated with these events are automatically captured and sent to the AnyTrack servers.

How to Install the AnyTrack Google Tag Manager Template

00:00: This guide will walk you through the steps to install the AnyTrack Google Tag Manager Template. 00:06: Click on the "New" button to add a new Tag 00:09: Click on the TAG icon to load predefined Tags. 00:13: Click on the "Discover more tag types in the Community Template Gallery" button. 00:18: Click on the Search Icon 00:21: Search for AnyTrack to load the AnyTrack Template 00:25: Click on the "AnyTrack Tracking Tag" option. 00:28: Click on the "Add to workspace" button. 00:31: Click on the "Add" button. 00:34: Switch to the Anytrack property settings and copy the property ID. 00:39: Switch to the AnyTrack Tag Configuration 00:43: Now Paste the Property ID in the field 00:46: Now Click on Add Trigger to complete the configuration. 00:50: Select on the "All Pages" option. 00:53: Now Save the AnyTrack Tag 00:56: You can Rename the Tag if you wish to, and finally you can save. 01:00: Click on the "Submit" button to update your container. 01:04: Click on the "Publish" button. 01:07: Update the Container version notes and descriptions and Save 01:11: This guide covered the process of installing the AnyTrack Google Tag Manager Template.

This guide will walk you through the steps to install the AnyTrack Google Tag Manager Template.

  1. Click on the "New" button to add tag

Click
  1. Click on the TAG icon to select a Tag

Click on the TAG icon to select a Tag
  1. Click on the Community Template Gallery option

Click
  1. Search for the AnyTrack Template

Click on the Search Icon
  1. Select the"AnyTrack Tracking Tag"

Click on

  1. Click on the "Add to workspace" button.

Click
  1. Click on the "Add" Button

    By clicking on the Add button you confirm your selection.
Click on the
  1. Switch to AnyTrack Property Settings

    Locate the property ID and copy it to your clipboard (ctrl+c)
Switch to AnyTrack Property Settings
  1. Switch to Google Tag Manager

    Switch to the AnyTrack Tag Configuration
Switch to Google Tag Manager
  1. Now Paste the Property ID

    Now paste the Property ID in the selected field.
Now Paste the Property ID
  1. Click on Add Trigger

    Now Click on Add Trigger configure the rule that will load the AnyTrack tag.

Click on Add Trigger

  1. Select All Page Views

    Select the "All Pages" option so that the Anytrack tag will load on every page where your container loads.

Select All Page Views

  1. Save the Tag

    Now Save the AnyTrack Tag.
Save the Tag
  1. Rename the Tag and Save

    You can Rename the Tag if you wish to, and finally you can save it
Rename the Tag and Save
  1. Now Submit your container

    Click on the "Submit" button to update your container.
Now Submit your container
  1. Click on the "Publish" button

    Click on the "Publish" button.
Click
  1. Save the new Container Version

    Update the Container version name and description if you wish to and Click on Continue.
Save the new Container Version

FAQ & Troubleshooting

  • Do I need to disable my current Facebook, Google Ads and other Tracking Tags?

    We recommend disabling the tags that you've connected in your anytrack account since Anytrack will load them on your behalf.

  • Do I need to create triggers for standard events such as AddToCart, OutboundClick or FormSubmit?

    It depends on the platform you are trying to connect. For example, if it's Shopify, then you don't need to do anything beside adding the AnyTrack tag. If it's a custom integration, then you'll probably need to use your current triggers to fire the AnyTrack Custom Event Tracking.

  • How do I test my GTM implementation?

    You can use the tag manager preview mode.

  • Can I use the dataLayer values in the AnyTrack event snippets?

    Absolutely! You an add any of the standard Event Attributes.

  • Do I need to trigger specific events when using GTM?

    No, AnyTrack will automatically trigger standard events, so you don't need to trigger them via GTM.

  • What if I want to trigger custom events?

    That's the beauty of GTM and we highly recommend to use it at will.If you already have your custom events, you simply need to trigger the AnyTrack Event Snippet as if you were triggering any other tags.
    For example if you want to trigger a custom event named "MyCustomLead" event when a visitor hits a specific page you can fire the following snippet and use the current triggers used in your GTM container.

<script>  
var click_id = AnyTrack('trigger', 'MyCustomLead');  
</script>
  • Can I pass event data or dataLayer or any other variables from my GTM container to AnyTrack event snippet?

    Of course, and it's highly recommended! By default, AnyTrack will capture first party data and contextual event data such as page title, path, utm parameters etc... Yet, if you'd like to pass specific variables that are nested in the dataLayer or that you are generating through your GTM container, you can do so by adding additional parameters to the event snippet.Β 
    For example here is a complete purchase event that includes the order details, as well as the customer data.
   var click_id = AnyTrack('trigger', 'Purchase', {  
    value: 29.9, // the total purchase value  
    shippingPrice: 5.9, // optional shipping price  
    taxPrice: 2.9, // optional taxes  
    currency: 'EUR',  
    transactionId: 'XJW0047',  
    email: '[email protected]',  
    firstName: 'John',  
    lastName: 'Smith',  
    items: [{  
      id: '20291', // the item catalog id (required)  
      name: 'Sony MDRZX110/BLK ZX Series Stereo Headphones',  
      quantity: 1,  
      price: 19.9 // the item price (required)  
    }, {  
      id: '49292', // the item catalog id (required)  
      name: '6.35mm Male 3.5mm Female Headphone Stereo Audio Connector',  
      quantity: 1,  
      price: 4.1 // the item price (required)  
    }]  
  });