Articles on: Shortly App
This article is also available in:

Enabling Third-Party Checkout Tracking in Shortly

πŸ’³ Enabling Third-Party Checkout Tracking in Shortly



The Checkout Settings tab in Shortly allows merchants using custom checkouts to track affiliate attribution beyond the standard Shopify checkout flow.




🧠 Why Enable Third-Party Checkout Tracking?



This feature is helpful if you're using:
- A custom checkout experience
- Headless commerce setup
- Third-party checkout tools

It ensures affiliate sales are still tracked accurately using JavaScript-based pixel tracking.


βœ… How to Enable



Step-by-step:



Go to your Shopify Admin.

Navigate to Settings > Customer events.



Click Add Custom Pixel.



Enter name of the pixel and click on Add Pixel.



Paste the Shortly checkout tracking script into the pixel code box.
Click Connect to enable.



πŸ“œ Checkout Tracking Script



Here’s the script you need to paste:
analytics.subscribe("checkout_started", async (event) => {
var script = document.createElement("script");
script.src = "https://shortly.link/assets/js/shortly.js";
document.querySelector("body").appendChild(script);
});

Updated on: 29/03/2025

Was this article helpful?

Share your feedback

Cancel

Thank you!