0% found this document useful (0 votes)
7 views3 pages

Install GA4: Step-by-Step Guide

Uploaded by

rushda
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views3 pages

Install GA4: Step-by-Step Guide

Uploaded by

rushda
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Gotcha!

Here’s a clean, step-by-step way to get Google website analytics (GA4) running on
your site. I’ll show two common install methods: (A) add the Google tag directly, or (B) use
Google Tag Manager. Pick one.

Quick prep
 You’ll need a Google account and either:
o access to edit your site’s HTML (for Method A), or
o access to your site’s Tag Manager container (for Method B).

1) Create your GA4 property (one-time setup)


1. Go to [Link] → sign in.
2. Bottom left: Admin → Create account (if needed) → Create property (name it; set
time zone/currency).
3. Under your new property, go to Data collection & modification → Data streams →
Web.
4. Enter your website URL, name the stream, and keep Enhanced measurement ON
(page views, scrolls, outbound clicks, file downloads, etc.). You’ll see a
Measurement ID like G-ABC123XYZ. (Google Help)

2A) Install the Google tag directly ([Link])


Add this snippet to every page of your site, just before </head>. Replace G-XXXXXXXXXX
with your Measurement ID.

<!-- Google tag ([Link]) -->


<script async src="[Link]
XXXXXXXXXX"></script>
<script>
[Link] = [Link] || [];
function gtag(){[Link](arguments);}
gtag('js', new Date());
gtag('config', 'G-XXXXXXXXXX');
</script>

This is Google’s recommended snippet for GA4 “Google tag”. (Google for Developers)

On a CMS (WordPress, Wix, Squarespace, Shopify, etc.)? Many platforms have a


GA4/Google tag setting where you just paste the Measurement ID—no code needed. Check
your platform’s GA4 instructions. (Google Help)

2B) (Alternative) Install via Google Tag Manager (GTM)


1. In Google Tag Manager, create/open your site’s Web container and ensure the GTM
container code is installed on your site (once per page).
2. In GTM, add a Google tag (configured with your GA4 Measurement ID) and set
trigger = All Pages.
3. Submit → Publish the container. (GTM lets you manage tags without editing site
code again.) (Google Help, Google for Developers)

3) Verify data is coming in


 In GA: Reports → Realtime. Visit your site in another tab; you should see at least 1
active user within seconds/minutes. (Standard reports can take longer.) (Google Help)
 Optional helpers:
o Tag Assistant (Chrome extension) to confirm tags are present and firing.
(Chrome Web Store)
o GTM Preview/Debug (if using Tag Manager) to watch events fire before
publishing. (Google Help)

Note: Fresh installs can take up to ~30 minutes to start showing standard, non-realtime data;
full reports often process within 24–48 hours. (Google Help)

4) (Optional but recommended) Tune your setup


 Enhanced measurement: confirm it’s ON (captures scrolls, outbound clicks, site
search, file downloads, video engagement, etc.). (Google Help)
 Mark key events as conversions (e.g., generate_lead, purchase) in Admin →
Data display → Conversions or send them via GTM. (Google Help)
 Ecommerce: if you run a store, implement GA4 ecommerce events (view_item,
add_to_cart, purchase, etc.). (Google for Developers)
 Privacy/consent (recommended): if you use a consent banner, wire it to Google’s
Consent Mode so tags respect user choices. (Works with [Link] or GTM.) (Google
for Developers, Google Help)

Troubleshooting checklist
 Realtime shows 0? Re-check the Measurement ID, tag placement, and make sure your
page actually loads the tag (use Tag Assistant). (Chrome Web Store, Google Help)
 Using GTM? Confirm the container is published and the tag’s trigger is All Pages.
(Google Help)
If you tell me your site platform (WordPress, Wix, custom, etc.), I’ll tailor the exact clicks
and where to paste things for that setup.

You might also like