Google Analytics 4

Google Analytics 4 by

Full enhanced ecommerce tracking for Google Analytics 4.


Version 2.005 Get Support


Google's Universal Analytics has been retired, but you're in luck. Google Analytics 4 is easy to install, supports full enhanced ecommerce tracking, and beats adblockers.

All version 1 users should update to version 2 for better flow and acquisition tracking.

Use the newest google analytics to track store activities. This module uses Google's tracking API for supported eceommerce events and simple page tracking.

Basic JS version of GA4 is also loaded to handle geo and related page flow tracking.

Scot has done it again. This app works seamlessly. Install it and done, and Scot is quick to answer questions. Great job! I recommend and use this for all of my projects.
James, After Dark Grafx

Beats Ad Blockers!

Ecommerce tracking is "behind the scenes" so even if a customer is using an ad-blocker ecommerce activity is still tracked.


Uses asynchronous miva processes to connect with google's tracking api. No slowdowns, no ad blocking, and no missing transaction tracking if someone moves from the page too fast.

Ajax add to cart: Tracks all standard add to cart events.

Includes all "normal" GA4 tracking (if there is no ad blocker)

Product lists include attributes.

Product tracking includes optional custom fields data.

Basket lists include product attributes and discounts.

Show debug payload info optionally with debug settings in the config or by IP address

Turn tracking off for various IP addresses (don't track yourself for example)

Tracking Metrics

  • view_item (product view)
  • view_item_list (category page)
  • add_to_cart
  • remove_from_cart
  • view_cart
  • add_to_wishlist
  • view_search_results (includes search term, only fires on SRCH page, not ajax results)
  • begin_checkout
  • add_payment_info
  • add_shipping_info
  • purchase
  • sign_up
  • login

Scot's Blogger Integration

Automatically tracks Scot's Blogger content and categories.

Not Yet Rated | Write the First Review

Customer Ratings & Reviews

Be the first to rate this item!

Write Review

Release Notes
v2.005 Nov 2023

Miva 10.08 related fixes and updates.

v2.004 Nov 2023

Updates to tracking id situation that should help landing page tracking for first time visitors.

v2.003 Nov 2023
  • major tracking updates including better client and session tracking based on google cookie data
  • better flow tracking, debugging, logging, and more
  • fixes issues related to "value" field for add_to_cart event
  • fixes gtag multiple measurement ids were being display incorrectly in gtag js
  • fixed an issue with product categories for add_to_cart event
  • fixed an issue with product categories for add_to_cart event
  • added ADPM (multi add to cart) support
  • added multi-action support (such as login to add to wishlist)
  • added optional json payload logging
  • added option to add {'allow_enhanced_conversions':true} to the gtag js (obscure, rare, probably unnecessary)
  • updated debug and validation
  • updated ADPR (single add to cart) for more speed and data accuracy
  • updated remove from cart and cart quantity adjustments
  • updated fallback client_id to match basket cookie id, and third fallback is the basket_id
  • updated custom field handling to skip fields with no values
  • Updated settings for easier debugging/validation/active
v1.016 March 2023
  • Added setting to use the ga4 cookie id string in the json payload - this ensures seamless tracking regardless of visitor browser js settings.
  • Various debug enhancements.
v1.015 Feb 2023
  • Added setting to use google validation server and display json errors (super cool)
  • Added coupon to "begin checkout" event
  • Updated "add to cart" event so it is compliant with current ga4 params
  • Updated product list events to include parent categories
  • All supported tracking events checked to verify they are up to date with current ga4 standards
  • Combined all json payload events into one request
  • Various fixes and enhancements
v1.011 July 2022
  • Added more debug and testing options.
  • UI enhancements.
v1.010 July 2022
  • Added custom script tag. This replaces the default script tag. SMT and other template coding can be used.
  • General clean up and UI updates.
Developer Info

We are Miva Merchant experts and have been doing Miva Merchant SEO, custom Miva Merchant modules, Miva Merchant troubleshooting, and eCommerce site development since the late 90's.


Support Email

This website uses cookies to identify visitors, track visitors to our website, store login session information and to remember your user preferences. By continuing to use this site you agree to our use of cookies. Learn More.

This website uses cookies. By continuing to use this site you agree to our use of cookies. Learn More.


Copyright © 1997 – 2024 Miva®, Miva Merchant®, MivaPay®, MivaCon®, Camp Miva®, Miva Connect®, Miva, Inc. All Rights Reserved.