ClickMagick purchase events

Vendors using ClickMagick to track purchase events can use the following code to add to their checkouts so that products and order amounts are added to their tracking. To learn how to add codes to your checkout, please view this article.

(function() {
var img = new Image();
img.width = 1;
img.height = 1;
img.src = '//' + (_thrive_order.order.product.total_readable) + '&ref='; document.body.appendChild(img);

*You need to replace the ‘XXX’ with your ClickMagick ID.


These codes go in your “if the customer purchases…” tracking fields. They will be automatically loaded and triggered on the ThriveCart hosted success page. If you use a custom success page they will not be loaded and it will be your responsibility to load tracking codes on your own website.

If you have any questions please don’t hesitate to get in touch with us directly here.

Related Articles