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
Thank you!