Introduction
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.
Prerequisites
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.
Setup
Step-by-step guide
Step 1
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
Step 2
Click on the ‘Add a new tag’ tab.
Step 3
In the pop-up window, click into the Tag Configuration field to open a list. Find "Custom HTML Tag" and select.
Step 4
Paste the Delacon tracking code into the HTML box and click continue. It’s important to include the script tags (<script ... </script>)
To determine the tracking code for your service, please review Step 1 of this guide. You can copy it from the Delacon portal or update below code template with the details of your MID and CID.
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.
Step 5
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.
Step 6
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.
Step 7
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.
Step 8
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
You can log into the Delacon portal to review and update the business phone number field as outlined in this guide.
Step 9
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
Troubleshooting Checklist
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.
Related Articles
Appendix
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/
Comments
0 comments
Please sign in to leave a comment.