Shopify Web Pixel
Monitor transactional data volumes and target events across your store setup deploying sandbox Web Pixels natively.
Shopify Implementation Steps
Navigate to your dashboard layer under Settings → Customer Events, declare a new Custom Pixel element, and append the payload script displayed below.
analytics.subscribe("checkout_completed", (event) => {
fetch("https://dashfast.cz/api/track", {
method: "POST",
keepalive: true,
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
apiKey: "VASE_API_KEY",
events: [{
type: "sale",
name: "Shopify Order",
properties: {
orderId: event.data.checkout.order.id,
revenue: event.data.checkout.totalPrice.amount,
currency: event.data.checkout.totalPrice.currencyCode
}
}],
utm_source: event.context.document.location.searchParams.get("utm_source"),
referrer: event.context.document.referrer
})
});
});Crucial: Remember to substitute the placeholder VASE_API_KEY parameter with your actual tracking workspace identifier token.