Skip to main content

How to track Purchases in Funnelytics

Umberto Guardascione avatar
Written by Umberto Guardascione
Updated over a week ago

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:

  1. The event name must be __commerce_action__.

  2. The value must be passed as __total_in_cents__ (e.g., $4.00 should be sent as 400).

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.

  1. Create a new Zap and set your trigger (e.g., "New Sale in Stripe").

  2. Add a Funnelytics action step.

  3. Choose the Transaction Action event.

  4. 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]!

Did this answer your question?