GA4 Purchase Event for Easy Digital Downloads
Sends a Google Analytics 4 "purchase" event with the order total and downloads when a customer lands on the Easy Digital Downloads purchase confirmation page.
Snippet Library
Snippets for analytics and tracking: add Google Analytics, Tag Manager or ad pixels, exclude logged-in users and track clicks or form sends. For marketers who want the tracking code in place without editing the theme.
Sends a Google Analytics 4 "purchase" event with the order total and downloads when a customer lands on the Easy Digital Downloads purchase confirmation page.
Loads the Google Ads tag and reports a purchase conversion with the order value and transaction ID on the WooCommerce order received page.
Sets Google Consent Mode defaults before any Google tag loads, denying ad and analytics storage for visitors in the EEA, UK and Switzerland until your consent tool grants it.
Adds the LinkedIn Insight Tag for conversion tracking and retargeting with LinkedIn ads.
Adds the Meta Pixel base code to track page views for Facebook and Instagram ads.
Sends Meta (Facebook) Pixel "ViewContent" on product pages and "AddToCart" when products are added, so you can build retargeting audiences and optimize ads.
Adds the Microsoft Advertising (Bing Ads) Universal Event Tracking tag to every public page for conversion tracking and remarketing.
Pushes page information (page type, post type, categories, author, publish date and login status) to the dataLayer before Google Tag Manager loads, for use in tags and triggers.
Adds the Pinterest tag to every public page and records page visits, with an option to wait for cookie consent.
Adds the Reddit Ads pixel to every public page and tracks page visits, with an option to wait for cookie consent.
Saves utm_source, utm_medium, utm_campaign, utm_term, utm_content and gclid from the landing page in a first-party cookie, then fills matching hidden fields in your forms so leads keep their campaign source.
Adds the TikTok pixel to every public page and records page views, with an option to wait for cookie consent.
Sends an event to Google Analytics 4 (or the GTM dataLayer) whenever a visitor clicks a phone number, email address or WhatsApp link, so you can count leads from these contacts.
Pushes a GA4-style "purchase" ecommerce object to the Google Tag Manager dataLayer on the order received page, ready for GA4, Google Ads or Meta tags in GTM.
Adds the X (formerly Twitter) website tag to every public page for conversion tracking and audiences, with an option to wait for cookie consent.