GA4 Ebook
GA4 Ebook
GA4 Ebook
No part of this publication can be reproduced or transmitted in any form or by any means, mechanical or
electronic including photocopying and recording or by any information storage and retrieval system, without
permission in writing from the author (except by a reviewer, who may quote brief passages and/or show brief
video clips in a review).
Disclaimer: Great efforts have been made to ensure the accuracy, timeliness, and completeness of the
contents (written text, graphics) provided in this book. However neither the author nor Optimize Smart make
any guarantee /warranty of accuracy, timeliness, and completeness of the information provided in this book or
any website this book link out to. No warranty/guarantee may be created or extended by a sales
representative or written sales materials. Similarly neither the author nor Optimize Smart make any
guarantee/warranty that the websites linked to this book are free from viruses, adware or other malicious
programs. Websites listed in this book may have changed or disappeared between when this book was written
and when it is read. Neither the author nor Optimize Smart will be liable for any losses or damages (including
but not limited to: commercial, special, incidental, consequential damages) arising from the use of the
contents in this book. This book is for information purposes only. The advice and strategies contained herein
may not be suitable for every situation. If professional assistance is required, the services of a competent
consultant/agency should be sought. The fact that an organization or website is referred to in this book, as a
citation and/or potential source of further information does not mean that the author or Optimize Smart
endorses the information the organization or website may provide and/or recommendations it may make.
● Founder, OptimizeSmart.com
● Runs one of the most popular blogs in the world on digital analytics.
Website: www.optimizesmart.com
Linkedin: https://www.linkedin.com/in/analyticsnerd
Facebook: https://www.facebook.com/optimizesmart
WHAT'S INSIDE: Learn to set up your Google Analytics account correctly and fast
using this 62 point checklist. This is no ordinary checklist - it is a result of more than a
decade of experience in the analytics industry.
WHAT'S INSIDE: My Step-by-step blueprint for getting started with data layers. Get
the only ebook on GTM data layers ever published. Learn the JavaScript behind it.
Table of Contents
The first version of Google Analytics (GA1) is the Classic Google Analytics
(ga.js JavaScript library).
Note: GA4 also uses the gtag.js library but uses a new measurement model
called 'Event+Parameter' model.
In the past, if you want to measure your website usage data then you would
need to use the GA property meant for tracking website data.
If you want to measure your mobile app usage data then you would need to
use Google Analytics for Firebase or Google Analytics APP view (created via
separate GA property).
There was no easy way to combine mobile app and website usage data for
unified reporting and analysis.
However, this has all changed with the advent of GA4 property (formerly
known as ‘Apps and Web’ property).
At first glance, the GA4 reporting view may look intimidating as many of the
reports and metrics that you have been familiar with are not there. They have
either been removed or replaced.
The reporting interface of the GA4 view looks similar to that of Google
Analytics for firebase (because GA4 is built on firebase analytics). But it is quite
different from any GA3 reporting view.
#2 Measurement Model
GA3 (aka Universal Analytics') uses the measurement model which is based on
sessions and pageviews.
Whereas, GA4 uses the measurement model which is based on events and
parameters. In GA4 even a ‘pageview’ is considered as an event.
#3 Tracking IDs
In order to set up any type of tracking in GA4 via GTM, we use the
measurement ID.
If you have set up a GA4 property with a web data stream, then your
measurement ID begins with the characters ‘G-’. For example G-SV0HS12BXZ
When you are using GA3, all the tracked events must follow the
category-action-label-value schema:
This is not the case with GA4 which provides much more flexible event tracking
setup. In the case of GA4, additional information is supplied to an event via
parameters:
A GA4 property has got the 'enhanced measurement' feature built-in which
allows automatic tracking for certain types of events (like scroll tracking, video
tracking, exit tracking, site search tracking, etc) without any additional
coding/tagging.
Through the ‘User and event data retention’ feature, you can set the amount of
time for which Google Analytics retains user-specific data (i.e. data that is
associated with cookies, user identifiers, or advertising identifiers) for an
inactive website user, before automatically deleting it.
In the case of GA3, you can set the amount of time setting to 14 months, 26
months, 38 months, 50 months or ‘Do not automatically expire’ :
But in the case of GA4, you can set the amount of time setting to either 2
months or 14 months. There are no other options available:
In the case of GA4, both the web and app data use the same schema. Whereas
in the case of GA3, this is not the case.
#9 Attribution Modelling
If you are using GA3 then you can set/change the scope of your custom
dimension to ‘Hit’, ‘Session’, ‘User’ or ‘Product’.
In the case of GA4, it is not possible to set/change the scope of your custom
dimension. A GA4 custom dimension has only one scope and that is ‘hit’ scope.
You can not create a custom dimension with the ‘session’ scope in GA4.
However, there are workarounds for creating custom dimensions with ‘user’ or
‘product’ scope.
If you want to create a custom dimension with ‘user’ scope in GA4 then create
‘User properties’.
You create a new custom metric in GA4 by creating a new custom event
parameter and by specifying the unit of measurement.
If you are using GA3 then you can set/change the scope of your custom metric
to ‘Hit’ or ‘Product’.
#12 Debugging
The GA4 reporting view provides the debugView report through which you can
validate your analytics configuration from within the reporting interface.
#14 IP Anonymization
Google Analytics tracks and stores the IP addresses of your website users in
order to report on geolocation data. However, GA does not report on IP
addresses in its reports.
If your privacy policy or local privacy laws prevent the storage of full IP
addresses then you can use the IP anonymization feature to anonymize/mask
website visitors’ IPs.
In other words, the IP anonymization feature sets the last octet of IPv4 user IP
addresses and the last 80 bits of IPv6 addresses to zeros.
If you are using the GA3 property then you have the option to enable or
disable IP anonymization.
However,
If you are using GA3, you can create up to 25 reporting views per property. But
in the case of GA4, you can use only one reporting view.
However, there are workarounds available. You can create new ‘Audiences’ or
‘Data Streams’ and use them in place of filtered views.
The reporting view of the GA4 property comes with a new set of reports called
‘Analysis’ which let you do advanced analysis.
1. Exploration report
2. Funnel Analysis report
3. Path Analysis report
4. Segment Overlap report
5. User Explorer report
6. Cohort Analysis report
7. User Lifetime report
In the case of GA3, only GA 360 customers can use this feature.
Step-2: Click on the 'Upgrade to GA4' link under the 'Property' column:
Step-3: Click on the 'Get Started' button under the section 'I need to create a
new Google Analytics 4 property':
Google Analytics will now automatically create the new GA4 property. This
new property will open up in a different browser tab and you will be
automatically redirected to it. Your existing GA property will remain intact.
So now you have access to at least two GA properties. One is your existing GA
property and the other one is your new GA4 property.
However, this new GA4 property will not automatically start collecting data.
You would need to configure your GTM so that the data start following in your
new property.
Step-7: Click on 'Use existing on-page tag' under the section 'Tagging
Instructions':
You will now see the instructions for setting up a tag for tracking your website
data in the new GA4 property via GTM:
Step-10: Navigate to your GTM account and then click on the 'New Tag' link:
Step-11: Name your new tag something like G4 tracking - All pages a nd set the
tag type to 'Google Analytics: GA4 Configuration':
The tag manager preview mode window would open in a new browser tab. If
it doesn't then it means your browser is blocking the window.
Step-16: Enter your website URL and then click on the 'Start' button:
Step-17: Switch back to the browser tab which shows your tag manager
preview mode window and then click on the 'Continue' button:
Step-18: If you see the tag G4 tracking - All pages under the Tags Fired section
then it means your tag is firing correctly:
Step-20: Give your version a name and then click on the 'Publish' button:
Step-22: Navigate back to your GA4 property and then click on the cross
button next to 'Web stream details':
Note: When you create a new property from within an existing GA property,
the GA4 property is now the default option.
Even after you have created your new GA4 property, you would continue to
see the 'upgrade to GA4' option in your GA3 property:
When you activate Google Signals for your GA4 property, you can:
If your company can not agree with the Google Advertising features policy
then you should not activate Google Signals.
Step-5: If you agree with the Google Advertising policy then click on the 'Get
Started' button:
Step-1: Make sure that you have the 'edit' permission on the GA4 property you
want to link to your Google Ads account(s).
Step-2: Make sure that you have the 'admin' access to the Google Ads
account(s) you want to link to your GA4 property.
Note: You can add up to 20 Google Ads accounts to your GA4 property.
Step-11: Review all of your configuration settings and then click on the
‘Submit’ button:
Note: It may take up to 24 hours for your Google Ads link to begin displaying
data.
I have seen a lot of issues from incorrect tracking code, selecting the wrong
KPIs to analyzing data without using custom reports or advanced segments.
And they seem to be making this mistake over and over again.
They give the credit for conversions to the last touchpoint (campaign, ad,
search term...).
They can’t help themselves because they believe that Google Analytics reports
are ‘what you see is what you get.’
But they are actually ‘what you interpret is what you get.’
This has resulted in marketers making wrong business decisions and losing
money.
The majority of marketers looking at this standard ‘All Traffic’ report in Google
Analytics for the last three months will draw the following conclusions:
● The majority of traffic and revenue are coming through direct traffic.
>> Whenever a referrer is not passed, the traffic is reported as direct traffic
by Google.
>> During an https to http redirect (or vice versa) the referrer is not passed
because of security reasons.
So on the surface it may look like that most people are visiting your website
directly but this is not usually the case.
They are generally exposed to multiple marketing channels ( display ads, social
media, paid search, organic search, referral websites, email etc) before they
access your website directly.
So if you are unaware of the role played by prior marketing channels, you will
credit conversions to the wrong marketing channels.
People do not always search for your brand name and then
make a purchase straight away.
They generally start their search with a non branded and generic search term
then they refine their search queries as they get a better understanding of
what exactly they are looking for.
Sometimes they make a purchase right after making a search but often they
come back later to your site via a branded search term.
You get that direction from ‘web analytics’ and not from ‘Google Analytics.’
What is the number one skill to have? The skill of all skills?
But here is the thing. None of these skills really matter if you don’t have that
one skill, the number one skill, the skill of all skills.
1. Your marketing won’t work because you won’t know what is working
and not working in your marketing and where to spend time and money.
So if you are not ready to learn and master analytics, why you are even doing
all these other things. What is the point?
The moment you try to scale your marketing, you are going to fail.
So what I have done is, I have put together a completely free training for you.
This training will teach you what digital analytics really is and how I have been
able to leverage it to generate floods of news sales and customers. And how
you can literally copy what I have done to get similar results.