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.

If you are trying to track button clicks, you’ll want to follow the steps outlined in the article below:

How do I track link or button clicks off my site?


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>
    window.clickmagick_cmc = {
        uid: '[USERID]',
        hid: '[HID]',
        log_action: cta,
    }
</script>
<script src='//cdn.clkmc.com/cmc.js'></script>


On the surface the code looks correct, but it’s not.

The problem is that the log_action setting is missing the ' characters around it.

The complete code is:

<script>
    window.clickmagick_cmc = {
        uid: '[USERID]',
        hid: '[HID]',
        log_action: 'cta',
    }
</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 going to the "Generate Test Click" tab in the URL Builder and clicking the button.

When the test click gets tracked, you'll know that your tracking code is working correctly.

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’ve added your Click Tracking or Conversion Codes to your page using Google Tag Manager, that will still work since because the Tag Manager will insert the code for you.

But if you’re not using Google Tag Manager, you’ll want to double check your page to make sure that you’ve added your Click Tracking or Conversion Tracking Code in the header section of your page.

If you’ve gone through this entire checklist and and you’re still getting errors, please contact our Helpdesk for additional help.

Article 758 Last updated: 05/16/2022 7:14:48 AM
https://www.clickmagick.com/kb/?article=758