Knowledge Base      


Why do I get an error message when using the Campaigns URL Builder?


If you are receiving errors when using the URL Builder for Campaigns, they are most likely caused by one of the following:


1 - Smart quotes in your code

The use of smart quotes in your Click Tracking or Conversion Code is done by using apps like Microsoft Word or Pages for the Mac.

It can also be caused by Text Edit or Note Pad.

So when modifying your code, you'll want to make sure you have smart quotes turned off.

You can also use websites like EditPad or Write-Box or even the entry box of your Page Builder to modify your code.


2 - Missing characters in your code

Your Click Tracking and Conversion Codes need to be complete in order for them to work properly. If a single character is missing it will not work.

Take a look at the incomplete code below:

<script>
    var clickmagick_cmc = {
        uid: '[USERID]',
        hid: '[HID]'
    }
</script>
<script src='//cdn.clkmc.com/cmc.js'></script>


On the surface the code looks correct, but it is not.

It is missing a comma after the '

The complete code is:

<script>
    var clickmagick_cmc = {
        uid: '[USERID]',
        hid: '[HID]',
    }
</script>
<script src='//cdn.clkmc.com/cmc.js'></script>



3 - Page Builder Modifications

There are some page builders that do make modifications to your Click Tracking and Conversion Codes that you will not notice.

In most cases, the modifications won't impact your code from working properly.

To easily test it, just generate a test click by visiting the "Generate Test Click" tab in the URL Builder and clicking the button.

When the test click gets tracked, you'll know that your codes are working fine.

if your test click doesn't get tracked, then you'll want to follow the steps outlined in the article below:


What if my Page Builder won’t work with the Campaigns Website Code?


4 – The Code Is Not On The Page

If you have added your Click Tracking or Conversion Codes to your page using Google Tag Manager, technically speaking the code isn’t directly on the page. It is in a container in the Tag Manager.

Your code will still work, if this is the case.

If you aren’t using Google Tag Manager, you’ll want to double check your page to make sure you have added your Click Tracking or Conversion Tracking Code in the header section of your page.

If you completed the above checklist and still receive errors, please contact our Helpdesk for additional help.

Article 758 Last updated: 10/18/2021 7:22:00 AM
https://www.clickmagick.com/kb/?article=758