Google Tag Manager (GTM) is a tag management system that allows you to quickly and easily update measurement codes and related code fragments collectively known as tags on your website or mobile app. Using Google Tag Manager is the easiest way to deploy the Delacon tracking code to your website.
Tag managers, furthermore, improve the overall load time of your website compared to adding all the different tags directly onto the website.
This guide will take you through the steps to load Delacon’s call tracking code into Google Tag Manager.
Please ensure that the GTM container has been deployed to your website. For guidance on how to add the GTM container, please review the Google Support Pages.
Login to your Google Tag Manager account and ensure to add the code to the same GTM container that is in use on your website
Click on the ‘Add a new tag’ tab.
In the pop-up window, click into the Tag Configuration field to open a list. Find "Custom HTML Tag" and select.
Paste the Delacon tracking code into the HTML box and click continue. It’s important to include the script tags (<script ... </script>)
Delacon call tracking code template:
<script src="//vxml4.plavxml.com/sited/ref/ctrk/MID-CID" async></script>
For other variations of the tracking code, that are used for certain scenarios, please refer to this guide.
Click into the "Triggering" field, which will open another list of options and choose what pages of your website you want the tag to fire on by selecting one of the five options below.
Most commonly, you will want to deploy the code to All Pages. However, if you require a more selective setup, you will need to set up the relevant triggers in advance. More info can be found in the Google Support Pages.
Once the code has been added and the trigger selected, click on the Save button at the top of the screen and name the tag.
Click the Submit button in the top right corner of the page, then the Publish button. The Delacon call tracking code is now loaded to Google Tag Manager.
Ensure that all service details are correct, especially the business phone number and termination number. For a check list, please review "2. Confirm that all details are correct" of this guide.
The business phone number in the Delacon Portal needs to match the exact formatting of the phone number displayed on your website. For e.g. if your number is displayed on your website as:
(02) 12 34 56 78
then the number in the Business Phone Number field must be displayed as:
(02) 12 34 56 78
Finally, verify that the Delacon tracking code is running on the page and that the tracking number is swapping in. Please review this guide under "4. Final Step - Test" for more guidance on the testing steps.
Alternative Deployment Methods
For alternative ways of implementing the Delacon tracking code, please review step "3. Deploy the tracking code to your website" of this guide.
Options are to:
1. Insert the code directly into the source page of the website
2. Deploy via Tealium
If after testing, you can not see the Delacon tracking code running or the tracking number is not swapping out, please review each of the troubleshooting steps to ensure the setup is correct:
- Check that the GTM container where the Delacon code has been added is the same that is deployed to the website.
- Check the Delacon tracking code has been correctly added to the GTM container.
- Review the trigger to ensure the Delacon tracking code is deployed to the webpage you are reviewing.
In order to avoid any potential mismatch with organic searches (paid is not affected), we need to ensure on pages with multiple codes that the CID version of the code loads before the MID only version of the code. The simplest way to do this is to have a short delay on the MID only code across the site so that the CID code always loads first where it is present. This will not affect the number dynamically updating as the configuration is not applied to any code that has a CID.
This can be done in GTM by using a trigger timer for the MID only code instead of using all pages trigger. This should be configured with a 2 second (2000 millisecond) delay and enabled through regex on all pages, as below:
More information on configuring this trigger can be found here: https://www.analyticsmania.com/post/timer-trigger-google-tag-manager/