Can't find what you're looking for? Try our AI Chat Bot in the bottom right corner!

Articles in this section

Google Analytics 4

Google Analytics 4 (GA4) helps you understand how shoppers interact with your Miva store, from browsing products to completing purchases. By collecting information about storefront activity, GA4 provides insight into shopper behavior, shopping trends, and overall store performance.

Miva supports Google Analytics 4 through Google Tag Manager (GTM), which helps manage the tracking information sent from your storefront to Google Analytics.

What Can You Track with GA4?

GA4 organizes shopper activity into events, which are individual actions recorded as shoppers interact with your store. These events provide a more complete picture of the shopping experience, helping you understand how customers browse, engage with products, and move through the purchasing process.

Miva's GA4 integration supports tracking for activities such as:

  • Storefront activity: Page views, product searches, and product views.
  • Shopping activity: Products added to carts or wishlists, cart updates, and checkout activity.
  • Purchases: Completed orders, including product details, quantities, and discounts.
  • PageBuilder promotions: Views and clicks on promotional content.

Setting Up Google Analytics 4

To use GA4 with your Miva store, you'll need a Google Analytics 4 account and a Google Tag Manager (GTM) account.

The setup process includes:

  1. Set up Google Analytics 4: Create or select your GA4 account and configure a web data stream for your store.
  2. Configure Google Tag Manager: Set up your GTM container and import the configuration provided by Miva.
  3. Configure Miva: Add or update the Google Tag Manager resources in your store and enter your GTM Container ID.
  4. Test your tracking: Verify that shopper activity, such as page views, searches, and purchases, is being recorded in Google Analytics.
  5. Publish your changes: Once testing is complete, publish your Google Tag Manager and Miva changes.

The setup steps vary slightly depending on whether you're configuring a new store or upgrading an existing store.

GA4 Migration and Implementation Resources

Miva provides several resources to help merchants implement Google Analytics 4 or migrate an existing Universal Analytics configuration:

Important: Cloudflare Google Tag Gateway

If you are using Cloudflare Google Tag Gateway, do not leave Miva’s GTM-head-tag JavaScript Resource enabled at the same time. When both are enabled, the GTM head-tag script can be loaded twice.

To disable the Miva resource:
  1. In the Miva admin, go to User Interface > Resources.
  2. Select the JavaScript Resources tab.
  3. Locate the GTM-head-tag resource.
  4. Disable the resource.

This change is only necessary when Google Tag Gateway is being handled through Cloudflare. If you are not using Cloudflare Google Tag Gateway, leave your existing GTM configuration in place.

Google Analytics Reporting in Miva

Starting with Miva 26R3, Google Analytics Reporting allows you to connect your Google account and access Google Analytics 4 data directly within Miva Reports.

You can create reports to review shopper activity and store performance without having to switch between Miva and Google Analytics.

For setup instructions and available reporting options, see Google Analytics Reporting.

 

Was this article helpful?
0 out of 1 found this helpful