
Analytics tracking is automatically enabled on your Storefront, Checkout pages, and Customer Portal once you add your tracking IDs in the dashboard.
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
Open Business Settings
In your Dodo Payments dashboard, navigate to Settings and scroll to the Analytics section.
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)
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
- In Google Analytics, go to Admin → Data Streams → select your web stream
- Copy the Measurement ID (starts with
G-) - In Dodo Payments dashboard, go to Settings → Analytics
- Toggle on Google Analytics and paste your Measurement ID
- Click Save
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
| Event | Description |
|---|---|
view_item_list | Fires when the storefront page loads with products |
select_item | Fires when a customer clicks on a product to start checkout |
Checkout Events
| Event | Description |
|---|---|
view_item | Fires when the checkout page loads |
view_cart | Fires 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_info | Fires when the customer submits the payment form |
purchase | Fires 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
- In Google Tag Manager, copy your Container ID (starts with
GTM-) - In Dodo Payments dashboard, go to Settings → Analytics
- Toggle on Google Tag Manager and paste your Container ID
- 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
- In Meta Events Manager, create or select your Pixel
- Copy the Pixel ID (numeric, typically 15-16 digits)
- In Dodo Payments dashboard, go to Settings → Analytics
- Toggle on Meta Pixel and paste your Pixel ID
- Click Save
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
| Event | Description |
|---|---|
PageView | Fires when the storefront page loads |
ViewContent | Fires when the storefront loads with products |
InitiateCheckout | Fires when a customer clicks on a product to start checkout |
Checkout Events
| Event | Description |
|---|---|
PageView | Fires when the checkout page loads |
AddToCart | Fires 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 |
AddPaymentInfo | Fires when the customer submits the payment form |
Purchase | Fires 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:| Trigger | GA4 Event | Meta Pixel Event | Location |
|---|---|---|---|
| Storefront page loads | view_item_list | ViewContent | Storefront |
| Customer clicks product | select_item | InitiateCheckout | Storefront |
| Checkout page loads | view_item | AddToCart | Checkout |
| Cart viewed/variant selected | view_cart | - | Checkout |
| Discount code applied | apply_discount | ApplyDiscount | Checkout |
| Discount code removed | remove_discount | RemoveDiscount | Checkout |
| Payment form submitted | add_payment_info | AddPaymentInfo | Checkout |
| Payment successful | purchase | Purchase | Checkout |
Platform Coverage
Analytics tracking is available across different Dodo Payments surfaces:| Surface | Google Analytics 4 | Google Tag Manager | Meta Pixel |
|---|---|---|---|
| Storefront | Yes | Yes | Yes |
| Checkout (Hosted) | Yes | Yes | Yes |
| Checkout (Overlay/Inline)* | Yes | Yes | Yes |
| Customer Portal | Yes | Yes | No |
*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
Test Your Integration
Test Your Integration
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.
Use UTM Parameters
Use UTM Parameters
Add UTM parameters to your marketing links to track which campaigns drive conversions. Dodo Payments preserves UTM parameters throughout the checkout flow.
Set Up Conversion Goals
Set Up Conversion Goals
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.Enable Enhanced E-commerce
Enable Enhanced E-commerce
If using Google Tag Manager, consider setting up Enhanced E-commerce reports for detailed funnel analysis and product performance metrics.
Troubleshooting
Events not appearing in Google Analytics
Events not appearing in Google Analytics
- 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
Events not appearing in Meta Events Manager
Events not appearing in Meta Events Manager
- 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
GTM tags not firing
GTM tags not firing
Overlay/Inline checkout not tracking
Overlay/Inline checkout not tracking
- 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
Purchase events showing wrong amounts
Purchase events showing wrong amounts
- 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
Related Resources
Segment Integration
Send payment events to Segment for advanced analytics and CDP integration.
Dub Integration
Track sale conversions and affiliate attribution with Dub.
Customer.io Integration
Trigger automated email campaigns based on payment events.
Webhooks
Build custom analytics integrations with webhook events.