Methods for Tracking Purchases in Funnelytics π°
Measuring revenue is the most critical part of understanding your ROI. Because every platform handles sales data differently, Funnelytics offers multiple ways to capture purchase events. Whether you are using a 1-click integration or a custom setup, this guide will show you how to get those dollar signs appearing on your canvas.
Platform-Specific Integrations
For many popular tools, weβve done the heavy lifting for you. Use these direct methods if they match your tech stack:
Shopify
Our Shopify Custom Pixel is designed to track purchases automatically. Once the pixel is installed, "Purchase" events will start flowing into your workspace immediately.
GoHighLevel (GHL)
If you are using GHL, purchases are tracked automatically once the integration is active.
WooCommerce & Thrivecart
For these platforms, we recommend using our pre-made Google Tag Manager (GTM) containers to save time and ensure accuracy.
Custom Tracking via Google Tag Manager (GTM)
If you are using a platform not listed above, or if you need to set up tracking from scratch using GTM, you must use a specific event structure. This ensures that Funnelytics recognizes the data as a "transaction" rather than just a standard page view.
The Golden Rules for Custom Purchase Events:
The event name must be
__commerce_action__.The value must be passed as
__total_in_cents__(e.g., $4.00 should be sent as400).
The Technical Structure
You will need to trigger a custom HTML script in GTM that looks like this:
JavaScript
window.funnelytics.events.trigger('__commerce_action__',{
'__label__': 'My Awesome Product', // Product Name
'__sku__': 'ABC0006', // Product ID
'__total_in_cents__': 16000, // Total in Cents ($160.00) '__currency__': 'USD', // Currency
'__order__': '12356', // Unique Order ID
})
Server-Side Tracking (Zapier & Webhooks)
Sometimes, a purchase happens "offline" or on a thank-you page where a script can't run. In these cases, you can send data directly to our servers.
Zapier
If your checkout tool connects to Zapier, you can use the Funnelytics Integration.
Create a new Zap and set your trigger (e.g., "New Sale in Stripe").
Add a Funnelytics action step.
Choose the Transaction Action event.
Map your fields (Email, Amount in Cents, Order ID) and youβre good to go!
Webhooks
For advanced users or custom-coded apps, you can send purchase data via a POST request to our API.
Need a hand deciding which method is best for your specific funnel? Feel free to reach out to our support team via the chat or email at [email protected]!