Welcome! How can we help?

Popular Searches: Slack, Voicemail, Testing Number Swapping, Moving Numbers

Installing the Tracking Code on Wix Sites


HomeSupport HubNumbersDynamic NumbersTracking Code › Installing the Tracking Code on Wix Sites
Last Updated: 11/05/2018

If your website is built in Wix, you will need to use an alternate code to enable dynamic number insertion.  With any kind of dynamic number insertion, you will need to have a target number configured in your account.  Follow the directions here to configure a target number before beginning with the Wix setup.

Running the CTM script on a Wix site requires a connected domain (not available on free plans).


Script Installation

1) Navigate to Numbers → Tracking Code.

2) Copy the script found on this page.  This script is unique to each individual CTM account or subaccount.

3) In your Wix account, add a custom code to your website.  Click here for more information on adding custom code to your Wix site.

  • Paste the script from your CTM account into the field provided.
  • Make sure to choose to add code to all pages and select Load code on each new page.
  • Select to place the code in the Head section.

4) Click Apply to save.

5) Create a second custom code in Wix.  Follow Wix’s directions for adding custom code.

  • Paste the following script into the field provided:
        <script>       
        setTimeout(function() {
        __ctm.main.runNow();
        },3000);
        </script>
  • The 3000 value means that there is a delay of 3 seconds before the code will run.  You may be able to shorten this value.  It is recommended to run some tests to ensure the delay you have entered is working correctly.
  • Make sure to choose to add code to all pages and select Load code on each new page.
  • Select to place the code in the Body – end section.

6) Click Apply to save.


Was this resource helpful?
0 0


X