Install CTM Tracking Code


Last Updated: 07/14/2017 Back to Topic All Articles

Tracking Code and Dynamic Number Insertion

In order to track calls back to your online advertising campaigns, you will want to use CTM’s tracking code to dynamically display tracking numbers on your website.

The tracking code is a script that determines the advertising channel that led a visitor to your website and shows the tracking number that corresponds to that channel. Once the visitor calls your tracking numbers, the tracking code allows you to see the details of the visit as soon as the phone starts ringing.

This provides powerful in-the-moment information for your agents and is the data that populates your online advertising reports. The tracking code is unique to each account or account.

Install your Tracking Code

1. Go to NumbersTracking Code.

Numbers > Tracking Code

2. Copy the javascript code and paste it into the top of your website, after the tag of each page.

Copy & paste javascript code

Note: You only have to add this code once to your website. The code will not need to be updated or re-installed if you modify your account (allocate new tracking numbers, modify account settings, etc.).

If your site is built on WordPress, you can use our WordPress plugin to install the tracking code.

For Advanced Tracking Script Options, please refer to our API Integration guide.

Test the Tracking Code on your Site

1. Open a New Private Window in your browser.

2. Visit your website from the channel you want to test. For example, to test a Google Adwords visitor, navigate to your websiteurl.com?gclid=test.  For Google Organic, search for your website on Google and click the appropriate search result.
Test the Tracking Code on your Site

3. Once the website and script load, you should see the tracking number that you have set up to track that channel.

To test, we recommend using Google Chrome’s incognito browsing feature.

Set Your Cookie Duration

Another critical function of the CTM tracking is that it remembers your visitors in order to continue to show them the tracking number that they saw when they first came to the site. This allows the software to attribute the call back to the original visit so you know which ad was the one that first got their attention.

1. From the Tracking Code page, select “Cookie Settings” from the left hand menu.
2. Set the duration of days that visitors will be associated with the original Tracking Source. (By default, the system is set to 30 days. Setting the value to 0 will disable cookies).
3. Click ‘Update Settings’ to save your changes.

Set Your Cookie Duration

Using third-party cookies will be helpful if people go to a separate landing page before coming to your domain. If you prefer to not use cookies for your visitors, you can enable “Last Touch” for the tracking source. With this feature enabled, visitors will always be shown the tracking number that matches the most recent channel they used to get to your site.

​Congratulations on successful completion of this Quick Win!

I’m Done Move On


Was this article helpful?
0 0