Menu
Feedback
Start here
Tutorials


Tutorials
Integration with monitoring tools
Configuring Google Analytics 4 in VTEX stores
2 min read

Google Analytics 4 (GA4) is the current version of Google's data analytics tool. To get your VTEX store browsing data from Google Analytics 4, you need to:

  1. Configure Google Analytics 4
  2. Configure Google Tag Manager

As of July 1, 2023, Google Analytics 4 will replace Universal Analytics, the previous version of the tool. Therefore, you need to follow this tutorial to make the necessary adjustments to your store. See details about the change in this Google announcement.

Configuring Google Analytics 4

If you were using the previous version of Google Analytics (Universal Analytics) in your store, you need to add a GA4 property. To do so, follow this Google documentation: Add a Google Analytics 4 property (to a site that already has Analytics).

If your store does not have the previous version of Google Analytics configured, follow the instructions in this Google documentation: GA4 - Set up Analytics for a website and/or app.

In both cases, save the Google Analytics property ID code in the G-xxxxxxx format obtained from Google Analytics. It will be used in the next step during Google Tag Manager configuration.

Configuring Google Tag Manager

Once you have configured the necessary settings in your Google Analytics account, you will need to change Google Tag Manager settings in the VTEX Admin to track your store events. To do so, follow the steps described in Configuring Google Tag Manager.

If your store uses VTEX IO - Store Framework, in addition to the setup, you will need to configure a new version of the Google Tag Manager app. For more information, see Installing Google Tag Manager.

Contributors
1
Photo of the contributor
+ 1 contributors
Was this helpful?
Yes
No
Suggest Edits (GitHub)
Checking the ownership of a VTEX store on Google Search Console
« Previous
Confirming the ownership of your store on Google Search Console (Webmaster Tools)
Next »
Contributors
1
Photo of the contributor
+ 1 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX Community
Join our community
Request VTEX support
For personalized assistance, contact our experts
Open a support ticket
GitHubDeveloper PortalCommunityFeedback