Be sure to change NameOfYourProject between the 's to your project’s name.
Inside BigCommerce, head to the Script Manager by going to Storefront > Script Manager. And create a new script:
Give your script a name like "ClickMagick Tracking Code"
Location: Head
Select pages where the script will be added: Store pages
Note: Adding your code to the store pages will add the code to all pages that aren't checkout or order confirmation.
Category: Essential
Script Type: Script
And add your Click Tracking Code:
Note: If you plan on getting traffic organically, you’ll want to use the Organic Click Tracking code instead of the code shown above. For more info, please checkout the article below:
And that's it! With the above set up, you can now track your BigCommerce sales.
Optional Dynamic Tracking Tokens
In almost all cases, the sales tracking code we provided in step 3 is recommended. However, if you’d like to track other values such as the order number or order subtotal, you can use these tokens in your sales tracking code:
%%ORDER_AMOUNT%%
Order total in dollars/cents
%%ORDER_AMOUNT_IN_CENTS%%
Order total in cents
%%ORDER_SUBTOTAL%%
Order subtotal in dollars/cents
%%ORDER_SUBTOTAL_IN_CENTS%%
Order subtotal in cents
%%ORDER_SUBTOTAL_DISCOUNTED%%
Order subtotal in dollars/cents, minus coupons and other discounts
%%ORDER_SUBTOTAL_DISCOUNTED_IN_CENTS%%
Order subtotal in cents, minus coupons and other discounts
%%ORDER_ID%%
Order ID
%%ORDER_EMAIL%%
Customer’s email address
In the example below, we’re tracking the order number as the “ref” value and order subtotal as the amount: