Purchase
The following describes how purchase tracking is done for Firework.
How to implement the "purchase" tracking event
Note: The purchase function expects the following input shape:
Debugging issues with purchase tracking
To ensure that the purchase tracking is implemented correctly you can follow the steps below
Open browser developer tools
Goto "Sources" tab
Choose the "/thank_you" page
Find the part of the DOM which contains our tracking code snippet
Ensure there are no errors appearing anywhere in that code
You will not be able to print out the entire transaction object as Shopify prevents this. However you will be able to inspect the part that you are interested in. For example something like this
Shopify <> Firework Purchase Tracking
With the latest Firework app in Shopify, you do not need explicitly do any steps for implementing purchase tracking. The purchase tracking code is integrated automatically when the Firework app is installed in Shopify.
Verifying purchase tracking in Shopify
You could perform a test purchase and on the order confirmation page, check for the user:purchase
event in your network tab
Last updated
Was this helpful?