Download a ready-made Google Tag Manager container with a Google tag, GA4 event tags, triggers and variables for every event this module sends. Import it instead of building the tags by hand.

Download
The GA4 measurement ID of this scope is written into the "Const - GA4 Measurement ID" variable. Without one, G-XXXXXXXXXX is used; change it in GTM after importing. Settings
What Is Inside
TypeNameFires On
TagGA4 - Google tagInitialization - All Pages
TagGA4 - Ecommerce eventsview_item_list, select_item, view_item, add_to_cart, remove_from_cart, view_cart, begin_checkout, add_shipping_info, add_payment_info, purchase, add_to_wishlist
TagGA4 - login and sign_uplogin, sign_up (method)
TagGA4 - searchsearch (search_term)
TriggerCE - softaware_consent_updateFor your own tags that should wait for Softaware Cookie Consent
VariablesConst - GA4 Measurement ID, DLV - method, DLV - search_term, DLV - user_data, DLV - sw_consent.analytics, DLV - sw_consent.marketing
How to Import
  1. In Google Tag Manager open Admin > Import Container and choose the downloaded file.
  2. Choose your workspace, then "Merge" and "Rename conflicting tags, triggers and variables".
  3. Check the measurement ID in "Const - GA4 Measurement ID", preview the container on your shop, then publish.
  4. Enhanced conversions: in the "GA4 - Google tag" tag, add a User-Provided Data variable that reads "DLV - user_data" (only if Enhanced Conversions is enabled in the settings).

Refunds are not part of the container: they are sent from the server with the Measurement Protocol (see Settings > Refunds).