Tracking
Firework provides a way to attribute tracking events, such as "purchase", with additional properties like value and products
Embed Analytics Script Tag
Make sure the Firework script is injected into <header>
at all your pages where you want to call the tracking function. Usually, it's the header of the checkout page.
<script async type="text/javascript" src="//asset.fwcdn3.com/js/analytics.js"></script>
Call the relevant push event whenever it is needed.
Tracking events
Below are the list of tracking events Firework support
Type
Method
Description
Purchase
window._fwn.analytics.purchase()
Add to cart
window._fwn.analytics.addToCart()
Remove from cart
window._fwn.analytics.removeFromCart()
Page viewed
window._fwn.analytics.pageViewed()
Last updated
Was this helpful?