How do I add tracking code or JavaScript to Square Space?
To set up tracking with Square Space, just follow the steps below …
Step 1 - Add your Click Tracking Code
Copy your click tracking code below:
<script>
window.clickmagick_cmc = {
uid: '[USERID]',
hid: '[HID]',
cmc_project: 'NameOfYourProject',
vid_info: 'on',
}
</script>
<script src='//[CODE-DOMAIN]/[CODE-FILENAME].js'></script>
Be sure to change
'NameOfYourProject
'
to have the actual name of your project between the quotation marks.
Inside Square Space click on "Settings" then "Advanced" and from the Advanced Menu click on the "Code Injection" option.
Under "Header" add your Click Tracking Code:
Step 2 - Add Your Sales Conversion Code
Copy your sales conversion code below:
<script>
window.clickmagick_cmc = {
uid: '[USERID]',
hid: '[HID]',
cmc_goal: 's',
cmc_ref: '{orderId}',
cmc_amt: '{orderGrandTotal}',
}
</script>
<script src='//[CODE-DOMAIN]/[CODE-FILENAME].js'></script>
And from the "Code Injection" section inside of Square Space, scroll down until you see the "Order Confirmation Page" section.
Once that is done, save your changes.
And that's it! With the above setup you can now track your Square Space sales using ClickMagick Campaigns.
Article 728 Last updated: 07/02/2025 12:11:41 AM
https://www.clickmagick.com/kb/?article=728