Easy Digital Downloads is made for selling digital products and just like WooCommerce it has ecommerce events that we want to track in Google Analytics.
In order to start tracking you must click the activation switch and click save.
eCommerce events tracked with Google Analytics 4
When the EDD integration is enabled, GTM Kit pushes these GA4 e-commerce events:
view_item— visitor opens a download detail page.add_to_cart— visitor adds a download to the cart.begin_checkout— visitor starts the checkout.purchase— order is completed and the receipt page renders.
EDD has a smaller event surface than WooCommerce because the platform itself has fewer interaction points. There is no view_item_list for EDD downloads in the free plugin; you can build category-level tracking via your own GTM tags if needed.
Steps
1. Confirm EDD is active
GTM Kit detects the standard Easy Digital Downloads plugin as well as Easy Digital Downloads Pro. The EDD integration toggle only appears when one of them is active.
2. Open Integrations
Go to GTM Kit, Integrations. Scroll to the Easy Digital Downloads section.
3. Enable the integration
Toggle Easy Digital Downloads integration on and save.
Verify it worked
Open a download page. In DevTools console:
window.dataLayer.filter(e => e.event === 'view_item')
You should see one entry. Add the download to the cart, then check add_to_cart. Start checkout, then check begin_checkout. Complete a test purchase and on the receipt page:
window.dataLayer.filter(e => e.event === 'purchase')
The purchase event includes transaction_id, value, currency, and items.
Easy Digital Download integration options
Google Ads Remarketing
I you wish to use Google Ads Remarketing you must select your business type from one on Google’s predefined business verticals:
If your product feed generator is adding a prefix to the product IDs, you can add the prefix to be included it in the Data Layer.
Tax and shipping
Whether prices should include tax or not is a matter of opinion and it’s easy to shitch between the two. It’s alsp matter of opinion whether shipping should be excluded from the revenue.
Dequeue default JavaScript
If you have customized your Easy Digital Downloads store to an extend where it is no longer compatible with the JavaScript included in GTM Kit you may dequeue the JavaScript and include your own.
Debug mode
There is a hidden constant for repeating purchase events on every receipt-page load, useful for manual debugging:
define( 'GTMKIT_EDD_DEBUG_TRACK_PURCHASE', true );
When defined, GTM Kit fires the purchase event on every visit to the receipt page, not only on the first. Useful when you are reloading the receipt page to inspect the data layer in DevTools. Remove the constant in production.
Common issues
No EDD section in Integrations. EDD or EDD Pro is not active. Activate it and reload.
purchase fires only on first view of the receipt page. That is the default and correct behavior in production. To replay during testing, use the GTMKIT_EDD_DEBUG_TRACK_PURCHASE constant above.
Custom checkout themes do not produce begin_checkout. The integration uses standard EDD checkout markup. Heavily customized templates that rewrite the checkout form may not match the hooks. Test with the default EDD checkout to isolate.