Mary Rose Obsuna

Sample workSEO and analytics

Website Tracking Setup

A tracking plan for a small business website: which visitor actions are measured, how Google Tag Manager sends them to Google Analytics 4, how Search Console is set up, and the tests that confirm everything works.

Prepared for
Company website (fictional)
Tools
Google Tag Manager, Google Analytics 4, Google Search Console
What it shows
SEO basics, analytics setup, testing

The company and website on this page are fictional. The event names follow Google Analytics 4 conventions.

The real file

Made in the actual tool. Download, open and use it.

Alder & Finch Co. · Measurement plan

Website tracking: setup and QA

Version 1.2 · Published September 28, 2026

WebsitePushes events to the data layer
Google Tag ManagerTags, triggers, variables
Google Analytics 4Reports and key events
Search ConsoleLinked for search queries

1Event map

EventWhen it firesParametersKey event
page_viewEvery page load, through the Google tagpage_location page_titleNo
generate_leadContact form sent successfullyform_id lead_topicYes
contact_clickClick on an email or phone linkmethodYes
file_downloadClick on a PDF linkfile_nameNo
social_clickClick on a social profile linkplatformNo
scrollVisitor reaches 90% of a page (enhanced measurement)percent_scrolledNo

2Data layer push for the contact form

// Runs only after the form service confirms the message was sent
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
  event: 'generate_lead',
  form_id: 'contact-form',
  lead_topic: 'Virtual assistant support'
});

3Tag Manager container

Tags 5

  • Google tag | GA4
  • GA4 Event | generate_lead
  • GA4 Event | contact_click
  • GA4 Event | file_download
  • GA4 Event | social_click

Triggers 4

  • CE - generate_lead
  • CE - contact_click
  • CE - file_download
  • CE - social_click

Variables 6

  • Const - GA4 Measurement ID
  • DLV - form_id
  • DLV - lead_topic
  • DLV - method
  • DLV - file_name
  • DLV - platform

Naming rule: every item starts with its type (GA4 Event, CE for custom event, DLV for data layer variable), then the event or value it handles. Each event is pushed to the data layer by the website, and one custom event trigger sends it on to GA4 with its parameters. The Google tag covers page views.

4Search Console setup

  • Domain property verified with a DNS record
  • sitemap.xml submitted and read successfully
  • robots.txt checked, no important pages blocked
  • Page indexing report reviewed for errors
  • Search Console linked to the GA4 property
  • Monthly check of Core Web Vitals

5QA log

TestChecked inResult
Lead event fires once per sent formGTM PreviewPass
Parameters arrive in GA4DebugViewPass
No duplicate page viewsTag AssistantPass
Phone click tracked on mobileGTM PreviewPass
Key events marked in GA4GA4 AdminPass