How to upgrade to Google Analytics 4?

How to upgrade to Google Analytics 4?
Arun Patel

Arun Patel

April 28 2023

56
16.5k

Upgrade your Shopify store to Google Analytics 4 by setting up a new property, installing the tracking code through Google Tag Manager, configuring data streams, setting up goals and events, testing the implementation, and removing the old code.

To upgrade a Shopify store to Google Analytics 4, follow these simple steps:

  1. Set up a new Google Analytics 4 property in your Google Analytics account.
  2. To install the Google Analytics 4 tracking code on your Shopify store, you can use the Google Tag Manager app in Shopify.
To use Tag Manager in Shopify:
  1. Create a Google Tag Manager account.
  2. In Shopify admin, go to Online Store > Preferences.
  3. In the Google Analytics section, select "Add custom code".
  4. Paste the Google Tag Manager code snippet.
  5. Save your changes.
  6. In Google Tag Manager, create a new tag and choose "Custom HTML".
  7. Paste your tracking code snippet.
  8. Choose "All pages" as the trigger and save.
  9. Preview and test your tag.
  10. Publish your changes in Google Tag Manager.

3. Configure the data streams in your Google Analytics 4 property to collect data from your Shopify store and other sources.

To configure data streams in Google Analytics 4 property for your Shopify store:
  1. Create a Google Analytics 4 property- If you haven't already, create a Google Analytics 4 property by going to the Google Analytics website, signing in, and creating a new property.
  2. Set up a Shopify integration - To get data from your Shopify store, set up a Shopify integration in Google Analytics 4 by going to "Admin" > "Data Streams" > "Add Stream" and selecting "Web" as your data stream type and "Shopify" as your platform.
  3. Connect your Shopify store - To connect your Shopify store to Google Analytics, enter your store URL and grant access to your store data.
  4. Configure your data stream settings- Once your Shopify integration is complete, you can customize your data stream. Choose which events and parameters to track, and add any custom dimensions or metrics you need.

4. To track important actions on your Shopify store, such as purchases and form submissions, set up goals and events in your Google Analytics 4 property.

To set up goals and events in your Shopify store's Google Analytics 4 property, follow these steps:
  1. In the "Admin" section of your Google Analytics 4 property, click "Goals" or "Events" to track what you need.
  2. Click "+ Create" to make a new goal or event.
  3. Name your goal or event and choose the type.
  4. Configure the parameters of your goal or event, such as the destination URL or form submission fields.
  5. Click "Save".
  6. Check the "Real-time" reports in Google Analytics to verify that everything is working correctly.

5. Test your Google Analytics 4 implementation to ensure it is working correctly.

To test your Google Analytics 4 implementation:
  1. Enable Debug mode: Navigate to Admin > Data Streams > Web > Debugging tab and toggle Debug Mode to On.
  2. Use Google Analytics Debugger: Install the free Chrome extension and navigate to your website to see a log of events and parameters being sent.
  3. Test pageviews and events: Navigate to different pages on your website and verify that data is being tracked correctly in the Debugging tab and in Real-Time reporting.
  4. Test custom dimensions and metrics: Test custom parameter values and verify that data is being collected correctly.
  5. Test e-commerce tracking: Make a test purchase on your website and verify that purchase data is being collected correctly.
  6. Validate data in the Analytics interface: Use the Explore tool to create custom reports and verify that data is being collected and processed correctly.

6. After ensuring that your Google Analytics 4 implementation functions properly, you can remove the old Google Analytics tracking code from your Shopify store.

Arun Patel

Author

Arun Patel

Arun Patel previously an e-commerce merchandiser, is passionate about increasing Average Order Value and spends time researching and writing about profitable tactics to increase AOV.