Jump to Table of Contents

Using Google Tag Manager to install the Infinity Tracking JavaScript

This article provides information on installing the Infinity Tracking code using Google Tag Manager (GTM)

Using Google Tag Manager with a regular setup

If you use Google Tag Manager (sometimes referred to as GTM) to manage tags on your site, you can use it to add the Infinity code to your site quickly and easily.

If you have a regular setup - in other words an Infinity installation with a Google Analytics integration only, it's quick and easy to add the Infinity Code to your setup using Google Tag Manager. If you have multiple integrations, use this guide

Simply open your tag manager, click the link to Add a new tag.

This will open the screen shown below. Click the Tag Configuration, which we've highlighted in green, to open the list of Tag Types.

GTM 01.png

You then need to choose a product. Search for Infinity in the list and then click to select. The list is alphabetical.

GTM 02.png

Next you need to enter your Installation ID.

GTM 03.png

This can be found in the Infinity portal, navigate to the portal and click Admin, Tracking Settings, JavaScript. You can find your Installation ID in the JavaScript Generator box in Step 2. It's highlighted in yellow in the example below. It will be a three or four digit number.

Igrp details.JPG

Enter your Installation ID.

Next you need to determine how the Tag is triggered. Click on the Triggering section, Select All Pages and then click Save in the top right hand corner of the page.

You will then be prompted to rename your tag. Although the prompt says that you must rename your tag, this is an optional step, you can leave it as Infinity Call Tracking Tag if you wish.

Finally, click Publish to publish the Infinity Tag to your site.

Tracking Tag Publish.png

The steps outlined above correspond with Steps 1 and 2 in the JavaScript Setup process found in Admin, Tracking Settings, JavaScript on the Infinity portal. You now need to complete steps 3, 4 and 5 to complete your initial setup.

Using Google Tag Manager with an advanced installation

If you use Google Tag Manager (sometimes referred to as GTM) to manage tags on your site, you can use it to add the Infinity code to your site quickly and easily.

The steps shown below describe how to use Google Tag Manager to configure an advanced installation - in other words an Infinity installation with additional integrations beyond Google Analytics.

It's quick and easy to add the Infinity Code to your setup using Google Tag Manager.

Simply open your tag manager, click the link to Add a new tag and select Custom HTML tag from the list, we've highlighted it in green in the image below.

GTM 04.png

Adding the Infinity JavaScript

For the next part of the process, you need to switch over to the Infinity Portal.

On the Infinity Portal, click Admin, Tracking Settings, JavaScript.

In Step One, select the integrations you wish to use with Infinity Call Tracking, the relevant script content will be generated in the box in Step 2, shown below.

Javascript Grab.PNG

Then move to Step 2, click “Copy to Clipboard” to copy the code generated in Step One and paste the script generated into the “Configure Tag” box for the Infinity Tag you created in Google Tag Manager a moment ago. Our example is shown below.

GTM 06.png

In the advanced settings you can determine the sequence on which the Infinity Tag fires. We recommend that you place the Infinity Tag next to the Google Analytics Tag in your sequence, which is typically one of the first tags to fire.

Since the Infinity code and Google Analytics are closely interlinked, having the tags sequenced together will ensure a smooth integration. In addition, you’ll want the Infinity Tag to fire as soon as possible when your page loads to ensure the dynamic phone number is displayed to your visitor as quickly as possible and avoid any possible “flicker”.

Tag Firing Priority can be a positive or negative integer, and tags with higher priorities will be fired first. For example, a priority 3 tag will fire before a priority 1 or 2 tag. Tags with higher numbers for priority will be fired first. Priority defaults to 0 if none is specified. Tags will still be fired asynchronously (tags will fire whether or not the previous tag has finished.)

Click on the Triggering element to move to the next step.

In Step 3, you need to determine how the Tag is triggered. Select All Pages. and then click Save on the next screen. An example is shown below.

GTM 07.png

At this point you will be prompted to rename your Tag to something more memorable, you can do this now if you haven't changed it already. We'd recommend Infinity Call Tracking Tag.

Finally, click Publish to publish the Infinity Tag to your site.

The steps outlined above correspond with Steps 1 and 2 in the JavaScript Setup process found in Admin, Tracking Settings, JavaScript on the Infinity portal. You now need to complete steps 3, 4 and 5 to complete your initial setup.

Please login to rate this article
  1. Getting Started
  2. Enhancing your Installation
  3. Frequently asked questions
  4. Call Management
  5. Number Management
  6. Infinity API