Knowledge Base      


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


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


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?


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='//[CODE-DOMAIN]/[CODE-FILENAME].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='//[CODE-DOMAIN]/[CODE-FILENAME].js'></script>



Page Builder Modifications

Unfortunately, some page builders will modify your tracking code and they will not output it exactly as provided. In most cases this isn’t a problem and it’ll still work fine.

You can easily test this using the Generate Test Click function within the URL Builder, and if your test click gets tracked then you know your tracking code is working properly.

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 ClickMagick Tracking Code?


The Code Is Not On The Page

If you’ve added your tracking code to your page using Google Tag Manager, that’ll still work since GTM will execute the code when pages are displayed. There’s just no way for ClickMagick to tell that you’ve set it up in GTM.

But if you’re not using Google Tag Manager, you’ll want to double-check and make sure you’ve added your tracking code in the “head” of your page as shown here:

How do I add tracking code or JavaScript to my page builder?


If you’ve checked these things and you’re still having trouble, please contact our Help Desk for additional help.

Article 758 Last updated: 10/15/2025 2:18:58 PM
https://www.clickmagick.com/kb/?article=758