Hey! What's up everybody?! My name is Anna and today we're talking about how to add Google
Analytics 4 or GA4 to WordPress. The way God intended! So you can start tracking your data
like a boss and grow your business in no time. Let's see those numbers rise! And if you want
to get more WordPress and agency related content straight to your feed, then make sure to hit that
subscribe button below, also the bell to stay tuned! This video was brought to you by 10Web,
an Automated WordPress Platform designed for agencies. Automate Hosting,
Speed Optimization, Migration, Site Building and Management and Skyrocket your agency growth. Sign
up for a 14 day free trial and experience through automation! So the real question
with Google Analytics for installation is how you should do it :with or without a plugin,
which ones is there ,and which one's best for you? And this is guys what we're going to track. So,
what is Google Analytics 4 guys? It is essentially an updated version of Google Analytics with tons
of advantages, like cross-platform, tracking, meaning both Web and App,
AI created suggestions and an improved data model. It is meant to switch the focus from
tracking the data on a page to tracking the user with their events, giving you a more helpful
vantage point. Now guys first things first: if you want to add Google Analytics 4 to your WordPress
,you need to have a Google Analytics Account. Let me walk you through this process! So, you need to
go to https analytics.google.com and log into your Google Account, if you haven't already. Then click
''Start measuring'' and add your businesses or Site's name to the '' Account name'' field.
Check all the checks below and click ''Next''! Here you need to add the Property Name,
set up the right Currency and Time Zone ,and then click ''Next'' again!
Select your Industry, write in your business size and check your intentions all that apply!
Click ''Create'', read and accept the GDPR agreement and the additional terms
by checking the marks, and then clicking ''I accept''!
Voilà! Now you have a Google
Analytics 4 Account and can set up your Webstream by writing in your URL and naming the stream.
You'll get a measurement ID, which you need to start tracking.
Now that's it guys with the creating of GA4 Account. Now let me show you how you can
connect it to WordPress! The first method of connecting GA4 to WordPress, is with a plugin.
Let me show you how you can do it! Log into your WordPress Dash, go to ''Plugins'',
''Add new'' and search for ''Insert Header and Footer''!
Install and activate the plugin! There are many alternative plugins you can also use,
like GA Google Analytics, but I prefer the one we installed. Now hover over settings and click
''Insert Header and Footer'' to connect GA4, you need to insert its code into the header of your
site. Essentially you need the code we got when we created the account. So log into your Google
Analytics 4 Account, click ''Admin'' ,in the left side ''Menu'' and then ''Data streams''!
Click on the ''Data stream'' of your Website, scroll down,
and click ''Global site'' tag. Copy the body text!
Paste the code into the header, click ''Save'' and congrats! Now your Site Data is tracked by GA4.
Now you're probably thinking: ''What about master insights?" Well, that plugging was a very popular
way to connect Google Analytics Universal to your WordPress Site. It's much easier, because the only
thing you need to copy paste is the tracking ID and it's so much better for E-commerce. So
guys it makes sense that you would like to try this method with GA4 as well. But unfortunately
monster insights hasn't updated its functionality for GA4, which is a bummer, but we will be waiting
for updates and we'll keep you posted. Meanwhile you can try installing GA Google Analytics Plugin,
which also just takes a tracking ID. Next up we're discussing another method of connecting GA4,
which is without a plugin: you can add Google Analytics code directly into your theme.
To do that you can open your Sash, go to ''Appearance'', then ''Theme editor''
and click ''Theme header'' on the right side. Place the global site tag code
from GA4 right before the Header ends, before a Closing header tag!
Click ''Update file'' and you're good to go! As a bonus I wanted to discuss also Google
Tag Manager, which is a tool, that helps marketing people to add tracking events
to the Website, uh like ''Form Submissions'' button clicks or checkouts. Usually without
involving any developers. How do we install it? Actually the process is similar to that of GA4:
you just go to tag manager.google.com, log in with your Google Account
and click ''Create Account''. You fill out your site's name, URL and Country
and click ''Create''. After accepting the terms and conditions
you'll see the code for connecting your Account to your Website. In the future you can always find
this code in Admin, install Google Tag Manager. Copy and paste that first code into your Header,
and the second code into your Site's body with a plugin or without,
depending on your preference! Don't forget to also connect GA4 to Google Tag Manager!
To do that, create a new tag called its say ''GA4 base code'',
pick google analytics GA4 configuration from the right side menu,
input the GA4 tracking ID beginning with G into the measuring ID,
and set the triggering tool pages, click ''Save'' and that's it!
How does Google Tag Manager work? In this case a tag is any event you want to keep an eye on.
For example it can be a card checkout ,or a new submission ,or a visit to the page. Every event
comes with a trigger. For example if it is a car checkout, that happens when a user presses the
checkout button. Or maybe the event is triggered when somebody is watching a video on your site
for more than 20 seconds. You need to set up events and their respective triggers on Google
Tag Manager. And guys it's finally time to answer the question ''Is it better to install GA4 with or
without a plugin ?" So, my recommendation is to go with a plug-in in this case, because insert
headers and footers is very light, and you will be able to find the GA or Tag Manager code later on,
if you want to modify or delete it. So guys that's it for today! Hope everything is clear,
if not, you're welcome to leave your questions in the comments down below,
as always likes and subscribes are appreciated! Take care and I'll see you in another video!
This video was brought to you by 10Web, an Automated WordPress Platform designed for
agencies. Automate Hosting, Speed Optimization, Migration, Site Building and Management and
Skyrocket your agency growth. Sign up for a 14 day free trial and experience through automation!