How to Integrate GA4 on your WordPress/ Shopify website?

Filter by Category

Google Analytics 4, commonly known as GA4, is an updated version of the Google Analytics tool that can help you find traffic and engagement rates on your website or application. It is a property that can offer you advanced reports and data metrics. Previously, websites relied on Universal Analytics by Google. 

As of July 1, 2023 you have to migrate to GA4 because Google has stopped Universal Analytics, the older 360 Universal Analytics will cease functioning from October 1, 2023. Therefore, it is integral to switch your website or application to GA4. 

GA4 offers many features to enhance convenience, especially while analyzing your data and traffic. Here you can look into continuity, find automated insights on the customer journey, and focus on improving your Return on Investment. Apart from this, there are other benefits of integrating GA4 into your WordPress and Shopify. 

For Shopify eCommerce platforms that run on Shopify and others, GA4 will help you find out how promotions have helped your business. It can provide clarity on common conversion paths and will also be beneficial for you to improve your customer experience and journey. Here, you can also incorporate online sales events and gain reports that can assist you.

 

How to Set Up the new Google Analytics 4?

Here are the steps involved in setting up Google Analytics 4:

  1. Sign in to your Google account and open Google Analytics. If you don’t have a Google Analytics account yet, you have to create one by clicking on Start Measuring.
  2. Next, click on Admin and then select Property, where you can find a Create Property option. Here, you have to provide details like its name, time zone, and other relevant information. Now, click on Create to move to the next step.

3. Click on Data Streams and you have to select if it is an IOS app, an android app, or a website.

4. Next, enter your website’s URL and Create a Stream.

5. Next, you have to go to your existing UA property and select Tracking Information. When you click on that, you will see an option called the Tracking Code. You have to copy your tracking ID from there.

6. After that, you have to select your new GA4 Property and click on Data Streams. Here you have to opt for Manage Connected Tags and enter your tracking ID.

7. Next, you have to go to the Global Site Tag or gtag.js and copy your tracking code.

 

How to Integrate GA4 into your WordPress website?

  1. Visit your WordPress Dashboard to integrate GA4 into your account.
  2. You can use the following plugins or place the tracking code directly in the head section of your website. Some of the other most famous plugins you can include are Hubspot, WooCommerce, WP Forms, All in One SEO, Yoast SEO, Jetpack, Elementor, W3 Total Cache, Smush, and iTheme Security. Hubspot’s plugin can help you with managing contacts, building newsletters, engaging with forms, etc. You can use WooCommerce for your eCommerce-related activities. WP Forms are helpful for building forms. If you are looking for plugins to help with your SEO activities, All in One SEO and Yoast SEO can be helpful for you. If you wish to have a plugin that can help you with activities, ranging from lead generation to security, you can use Jetpack. Elementor is a tool that help you add pages to your website without any codes. Another popular plugin you can try is W3 Total Cache, which helps reduce your website’s loading time. You can use Smush for optimizing images on your website, and you can enhance the security of your platform by choosing plugins like iTheme Security.
  3. You can manually update the Google Analytics code into your WordPress by following these steps:

  1. Visit your WordPress site and click on Appearance and then, select Theme Editor.
  2. You have to paste the Analytics code and place it above the .
  3. Click update to complete.

     Top 10 Plugins for WordPress Website:

  1. All in One SEO – Increase SEO Ranking & Organic traffic.
  2. iTheme Security – Provides protection against Brute Force Attacks.
  3. Dokan – This WordPress plugin is superior to Wocommerce multivendors plugins.
  4. All in SEO WP Migration – Provide easy support & Ultra fast ejection with just one click.
  5. WP-Optimize– Cache, clean, compress
  6. MC Woocommerce Wishlist – The Woocommerce wishlist plugin has a sharing feature.
  7. Contact Form by WP Forms
  8. Elimentor Website Builder
  9. Slider, Gallery, and Meta slider
  10. Popup Maker – Pop up for lead generation and more.

How to add Google analytics code to WordPress Code.

Click update and then done.

How to Integrate GA4 into your Shopify eStore?

Step-1: Log in to your Shopify account.

Step-2: From the left-hand menu, select online store’, which is under the ‘Sales channels’

Step-3: Select ‘Themes’ from the option available uder’Online store’

Step-4: Customize themes, click on ‘Actions’

Step-5: Once you clicked on actions, a drop down will appear. Clickon the “Edit code” from the options

Step-6: Now select theme.liquid file and paste the GA4 code into thesection of the code

Learn more: How to edit theme.liquid in Shopfiy for Google Analytics 4 Property?

Related News