Why this matters
Google Analytics 4 (GA4) shows who visits your site, which pages work, and which actions (signups, calls, purchases) matter. Set it up once and you’ll make smarter marketing choices without guessing.
Before you start — what you'll need
- A Google account (Gmail) you control.
- Access to your website code or your content manager (WordPress, Squarespace, Shopify) admin.
- About 20–45 minutes for initial setup.
Quick decision rule: GTM or direct tag?
Choose Google Tag Manager (GTM) if you plan more than one tracking snippet (ads, chat widgets, remarketing) or want non-technical changes later. Choose the direct GA4 tag (gtag.js) if you prefer the fastest, simplest install and will not add more tags.
Step 1 — Create a Google Analytics account and GA4 property
- Go to analytics.google.com and sign in with your business Google account.
- Click Admin (bottom left). Under Account column click Create Account. Name it like your business name.
- Under Property column click Create Property. Choose a name (e.g., YourBusiness Website), set your time zone and currency, then click Next and fill business info.
Step 2 — Add a data stream (your website)
- In the Property column click Data Streams → Add stream → Web.
- Enter your site URL and stream name. Click Create stream.
- You’ll see a Measurement ID like G-XXXXXXX and instructions to install a tag.
Step 3 — Install the tracking tag
Pick one:
Option A — Install via Google Tag Manager (recommended if unsure)
- Create a GTM account at tagmanager.google.com and add a container for your website.
- Install GTM container code on every page (paste two snippets into your site header and body). If using WordPress, use a plugin like "Insert Headers and Footers" or a GTM plugin.
- In GTM, click Tags → New → choose GA4 Configuration. Enter your Measurement ID (G-...). Set trigger to All Pages and Save.
- Preview and publish the GTM container.
Option B — Direct tag (simpler)
- Copy the gtag.js code shown in Data Stream details.
- Paste it into the
<head>of every page on your site. For WordPress, paste into the theme header or use a header insertion plugin. Shopify has a field for additional scripts.
Step 4 — Verify tracking works
- Open your website in a new private/incognito window and navigate a few pages.
- In GA4 go to Realtime. You should see your visit within a minute. If not, re-check Measurement ID and tag placement.
Step 5 — Set up key conversions (what you actually care about)
Decide the 2–4 actions that mean success. Example decisions:
- If you sell online: purchase confirmation page view = conversion.
- If you book appointments: appointment-confirmation page or thank-you button click = conversion.
- If you want leads: contact form submit or phone click = conversion.
How to mark them:
- GA4 often auto-detects events. Check Configure → Events for page_view, file_download, click events.
- To mark an event as a conversion: go to Configure → Conversions → New conversion event and enter the exact event name (e.g., purchase, form_submit, phone_click).
- If the event isn’t tracked yet, use GTM to create a tag that fires on the specific trigger (e.g., form submission) and sends a custom event to GA4. Then mark that event as a conversion in GA4.
Step 6 — Link other useful tools
- Google Search Console: in Admin → Product Links → Search Console → link your site. This shows search queries that bring people to your site.
- Google Ads: link if you run ads to see conversions and costs in one place.
- Shopify/BigCommerce/WooCommerce: check platform guides to ensure e-commerce events (purchase, add_to_cart) are sent to GA4.
Step 7 — Set up four simple reports you'll check weekly
- Overview: Realtime + Last 7 days users and top pages.
- Traffic sources: Which channels bring visitors (Organic search, Direct, Paid, Social, Email).
- Top pages: Which pages get the most views and their average engagement time.
- Conversions: Number of conversions per type and which traffic source drove them.
In GA4, use Explore or create custom reports/dashboards under Reports → Library and pin them to the left menu.
Checklist — First week
- [ ] GA4 property created
- [ ] Data stream added
- [ ] Tag installed (GTM or gtag) and verified in Realtime
- [ ] 2–4 conversion events defined and marked
- [ ] Search Console linked
- [ ] One weekly report dashboard created
Quick troubleshooting
- No data in Realtime within 10 min: check Measurement ID, browser blocking extensions, or tag placement.
- Conversions not firing: test the event in Realtime while doing the action, then check Event name spelling in Conversions.
- Duplicate pageviews: ensure tag is not installed twice (both GTM and direct tag).
Practical next steps (first month)
- Week 1: Verify tracking and conversions, link Search Console.
- Week 2: Create the four reports and check them once a week.
- Week 3: If running ads, link Google Ads and compare cost per conversion.
- Week 4: Review top 3 pages and decide one change to try (rewrite CTA, simplify form, add clear button). Track effect for two weeks.
Short example setups
Example A — Local plumber with simple site:
- Conversions: phone click, contact form submit.
- Install: GTM (so you can add a call tracking tag later).
- Weekly report: calls by source, form submits, top page.
Example B — Online shop:
- Conversions: purchase, add_to_cart.
- Install: platform plugin for GA4 and enable ecommerce events.
- Weekly report: revenue by source, top products, conversion rate.
Final tips
- Name things clearly. Use readable event names (contact_form_submit, phone_click, purchase).
- Only track what you’ll act on. Start small — add more events later.
- Save a backup of any code you change and record who has access to your Google account.