How to Set Up Google Analytics with Divi

Sep 4, 2021

In this article, we will walk through how to set up a new Google Analytics account, add your website, install tracking code, and add other users to help manage your account.

What is Google Analytics?

Google Analytics is a tool to track your website visitors, behavior, goals, and much more by creating a property (your website), and installing code onto your website’s pages. Google Analytics tracks user behavior across all search engines, not just Google. This is a valuable tool to help you make decisions on your website design and marketing efforts.

The New Google Analytics

In October 2020, Google released a new version of analytics called Google Analytics 4 (GA4). With this release, the method of tracking has become more precise by collecting specific events on your website such as button clicks and cross-platform behavior (desktop, tablet, mobile, etc.). Although GA4 is a more advanced tool, it is still new and not as developed as the earlier version of Google Analytics: Universal Analytics. We will be setting up both properties and linking them together so you can take advantage of the features of GA4 alongside your main Universal Analytics property.

How to Set Up Google Analytics

Step #1 Sign In Google Analytics

(You will need a Google account to manage your analytics)

  • Visit google.com/analytics and click Start for free.
  • Sign in using your Google Account that you want to manage your analytics with
  • On the next screen, click Start Measuring

Step #2 Set up your Google Analytics Service

  • In the Account Setup section, enter an Account Name that you want to use for your Analytics account. Keep the default settings for Acccount Data Sharing Settings checked, click Next.
  • In the Property Setup section, use your business name for the Property Name, choose your corrrect time zone, and click Show advanced options
  • Toggle ON Create a Universal Analytics Property
  • Enter the URL of your website (https://) – Use the main domain for your website NOT the development site name.
  • Keep Create both a Google Analytics 4 and Universal Analytics property selected
  • Click Next
  • In the About Your Business section, select your business size and select all relevant options for how you intend to use Analytics
  • Click Create
  • Accept the Terms of Service in the next section

Step #3 – Connect GA4 with Universal Analytics

In order to take advantage of the new GA4 alongside your main Universal Analytics property, you need to connect them both.

  • You will now be in the Google Analytics Dashboard with web stream details opened.
  • Copy your Measurement ID in the top-right by clicking on the copy icon to the right of the ID
  • Close Web stream details
  • Click on the All accounts dropdown in the upper left (Next to the Analytics logo)
  • Select the propery with the UA- and select All Web Site Data
  • Go to Admin (in the bottom left) and click Tracking Info > Tracking Code in the Property column
  • Scroll down and click Connected Site Tags
  • Paste the Measurement ID that you copied earlier in the first field and give your connection a nickname with (UA).
  • Click Connect and Close Out of Connected Tags

Step #4 – Get the code for your website

  • Click on the All accounts dropdown in the upper left (Next to the Analytics logo)
  • Select the propery named GA4
  • Go to Admin (in the bottom left) and click Data Streams in the Property column
  • Click on your website in the Data Streams list
  • Scroll down to Tagging Instructions > Add new on-page tag and click on Global Site Tag
  • This will expand to show you your traking code. Copy the code and save it in a text editor.

Step #5 – Adding the tracking code to your website

If you are working with Never Gravity on a development site, send this code directly to us and we will add it when we launch your new website.

If you have an existing Divi website, follow the instructions below:

  • In the WordPress Admin sidebar, select Divi >Theme Options
  • Click on the Integration Tab
  • Scroll down to Add code to the <body> and paste your tracking code there
  • Click Save
  • All done!

Step #6 – Bonus! Add a User to your Analytics Account

If you need to add another user to your account for collaboration, follow these steps:

  • Go to Admin (in the bottom left) and click Account Access Management in the Account column
  • Click on the blue “+” icon in the top-right and choose Add Users
  • Enter the user’s email address and choose the permissions you want them to have (select the top 3 options of you are collaborating with another Analytics manager)
  • Click Add in the top-right
  • A notification will be sent to the user to login and access the account

Conclusion

After completing these steps, you will now be collecting information on how your website visitors are interacting with your site. Returning to your analytics Dashboard and selecting your UA- property will give you a ton of useful information about your website visitors. We will cover how to use Analytics in a future post.

Happy tracking!

Want more articles like these?

Get digital marketing goodness delivered straight to your inbox. Sign up below.

Pin It on Pinterest