Skip to main content
Analytics Integration
Track customer journeys from your storefront through checkout to purchase completion. Dodo Payments integrates with Google Analytics 4, Google Tag Manager, and Meta Pixel to provide comprehensive analytics across all your hosted pages.
Analytics tracking is automatically enabled on your Storefront, Checkout pages, and Customer Portal once you add your tracking IDs in the dashboard.
Ad blockers in customer browsers can prevent analytics tracking from working for some visitors to your store.

Supported Platforms

Google Analytics 4

Page views and e-commerce tracking with GA4.

Google Tag Manager

Add and manage marketing tags.

Meta Pixel

Track Facebook and Instagram ad conversions.

Getting Started

1

Open Business Settings

In your Dodo Payments dashboard, navigate to Settings and scroll to the Analytics section.
2

Enable Your Tracking Platform

Toggle on the analytics platform you want to use and enter your tracking ID:
  • Google Analytics: Enter your Measurement ID (format: G-XXXXXXXXXX)
  • Google Tag Manager: Enter your Container ID (format: GTM-XXXXXXX)
  • Meta Pixel: Enter your Pixel ID (numeric, 10-20 digits)
3

Save Your Settings

Click Save to apply your tracking configuration.
4

Verify Tracking

Visit your storefront or create a test checkout to verify events are being tracked in your analytics dashboard.

Google Analytics 4

Google Analytics 4 provides comprehensive web analytics with e-commerce tracking capabilities. With Dodo Payments integration, you can track the complete customer journey from browsing your store to completing a purchase.

Add Your Google Analytics Measurement ID

  1. In Google Analytics, go to AdminData Streams → select your web stream
  2. Copy the Measurement ID (starts with G-)
  3. In Dodo Payments dashboard, go to SettingsAnalytics
  4. Toggle on Google Analytics and paste your Measurement ID
  5. Click Save
If you don’t have a Google Analytics property yet, follow Google’s setup guide to create one.

Events Tracked in Google Analytics

We track the following events on your hosted storefront and checkout pages. Event data including product information, transaction totals, and currency are sent with each event.

Storefront Events

EventDescription
view_item_listFires when the storefront page loads with products
select_itemFires when a customer clicks on a product to start checkout

Checkout Events

EventDescription
view_itemFires when the checkout page loads
view_cartFires when the checkout loads and when a variant is selected
apply_discount*Fires when a valid discount code is successfully applied
remove_discount*Fires when a discount code is removed
add_payment_infoFires when the customer submits the payment form
purchaseFires when payment is successful
apply_discount and remove_discount are custom events not included in the standard Google Analytics e-commerce events.

Using GA4 with Overlay/Inline Checkout

To track Google Analytics events in overlay or inline checkout embedded on your own website, you need to install the Google Analytics tracking code on your website where the checkout is embedded. Once installed, all tracking events listed above will be sent to your Google Analytics account automatically - no additional configuration needed.

Google Tag Manager

Google Tag Manager lets you manage marketing and analytics tags without modifying code. Tags deployed through GTM will fire on all Dodo Payments-hosted pages.

Add Your GTM Container ID

  1. In Google Tag Manager, copy your Container ID (starts with GTM-)
  2. In Dodo Payments dashboard, go to SettingsAnalytics
  3. Toggle on Google Tag Manager and paste your Container ID
  4. Click Save
When using GTM, you can configure additional tracking (like Google Ads conversions) directly in your GTM container. The Dodo Payments integration injects both the GTM script and the noscript fallback for maximum compatibility.

Using GTM with Overlay/Inline Checkout

For overlay or inline checkout embedded on your website, install GTM on your own site. The checkout will inherit your GTM configuration and fire events within the embedded frame.

Meta Pixel

Meta Pixel tracks customer actions on your store to measure the effectiveness of your Facebook and Instagram ad campaigns. Track conversions from ad click to purchase completion.

Add Your Meta Pixel ID

  1. In Meta Events Manager, create or select your Pixel
  2. Copy the Pixel ID (numeric, typically 15-16 digits)
  3. In Dodo Payments dashboard, go to SettingsAnalytics
  4. Toggle on Meta Pixel and paste your Pixel ID
  5. Click Save
Follow Meta’s Pixel setup guide if you haven’t created a Pixel yet.

Events Tracked with Meta Pixel

We track the following events which appear in your Meta Events Manager. Event data including content IDs, values, and currency are sent with each event.
Events may not appear immediately in Meta Events Manager - there can be a delay of several minutes.

Storefront Events

EventDescription
PageViewFires when the storefront page loads
ViewContentFires when the storefront loads with products
InitiateCheckoutFires when a customer clicks on a product to start checkout

Checkout Events

EventDescription
PageViewFires when the checkout page loads
AddToCartFires when the checkout loads and when a variant is selected
ApplyDiscount*Fires when a valid discount code is successfully applied
RemoveDiscount*Fires when a discount code is removed
AddPaymentInfoFires when the customer submits the payment form
PurchaseFires when payment is successful
ApplyDiscount and RemoveDiscount are custom events not included in Meta’s standard events.

Complete Events Reference

This table shows all events tracked across both Google Analytics 4 and Meta Pixel:
TriggerGA4 EventMeta Pixel EventLocation
Storefront page loadsview_item_listViewContentStorefront
Customer clicks productselect_itemInitiateCheckoutStorefront
Checkout page loadsview_itemAddToCartCheckout
Cart viewed/variant selectedview_cart-Checkout
Discount code appliedapply_discountApplyDiscountCheckout
Discount code removedremove_discountRemoveDiscountCheckout
Payment form submittedadd_payment_infoAddPaymentInfoCheckout
Payment successfulpurchasePurchaseCheckout

Platform Coverage

Analytics tracking is available across different Dodo Payments surfaces:
SurfaceGoogle Analytics 4Google Tag ManagerMeta Pixel
StorefrontYesYesYes
Checkout (Hosted)YesYesYes
Checkout (Overlay/Inline)*YesYesYes
Customer PortalYesYesNo
*For overlay and inline checkout, install the tracking code on your own website for full attribution. Events from the embedded checkout will be tracked automatically.

Event Data Included

Each tracking event includes relevant e-commerce data to help you analyze customer behavior:

Product Data

  • Product ID
  • Product name
  • Price
  • Currency
  • Quantity

Transaction Data (Purchase Events)

  • Transaction/Payment ID
  • Total amount
  • Tax amount
  • Currency
  • Discount applied

Customer Data

  • Customer ID (for returning customers)
  • Email (hashed for privacy where applicable)

Best Practices

After adding your tracking IDs, visit your storefront and complete a test checkout to verify events appear in your analytics dashboards. Use Google Analytics Realtime reports or Meta Events Manager’s Test Events feature.
Add UTM parameters to your marketing links to track which campaigns drive conversions. Dodo Payments preserves UTM parameters throughout the checkout flow.
In Google Analytics, create conversion events for purchase to track your conversion rate. In Meta Ads Manager, use the Purchase event as your optimization goal for campaigns.
If using Google Tag Manager, consider setting up Enhanced E-commerce reports for detailed funnel analysis and product performance metrics.

Troubleshooting

  • Verify your Measurement ID is correct (format: G-XXXXXXXXXX)
  • Check Google Analytics Realtime reports - events appear there first
  • Ensure the toggle is enabled in your Dodo Payments settings
  • Wait a few minutes as there can be processing delays
  • Test in an incognito window to rule out ad blockers
  • Verify your Pixel ID is correct (numeric, 10-20 digits)
  • Use the Meta Pixel Helper browser extension to debug
  • Check the Test Events tab in Events Manager
  • Events can take several minutes to appear
  • Ensure ad blockers are disabled during testing
  • Confirm your Container ID is correct (format: GTM-XXXXXXX)
  • Use GTM Preview mode to debug tag firing
  • Check that triggers are configured correctly in your GTM container
  • Verify the container is published (not just in draft)
  • Install the tracking code on your own website first
  • Ensure the tracking loads before the checkout overlay opens
  • Check browser console for any JavaScript errors
  • Verify cross-domain tracking is configured if using GA4
  • Amounts are sent in the smallest currency unit (cents)
  • Verify your analytics tool is configured to display the correct currency
  • Check if tax is included/excluded as expected