← All portfolio work
Custom WebsiteGA4Browser + ServerMicrosoft Clarity

Custom Website GA4 Browser & Server-Side Tracking with Microsoft Clarity

Service Website Lead Journey Tracking Case Study

GA4 browser and server-side tracking with Microsoft Clarity, supported by captured booking, form, contact-click and service-page tests.

Open original case study PDF ↗
01

The website and the challenge

I implemented tracking on my own custom-built service website. Visitors explore services, request an audit, book through Calendly, or use WhatsApp, email and phone links. The goal was to measure their journey toward an enquiry.

02

My strategy

I mapped lead actions into GA4 events, using GTM web and server containers for collection and forwarding. Microsoft Clarity ran in the browser. Stape, a custom subdomain and Custom Loader supported the collection path.

03

Connect the website

I connected GTM and the analytics destination. The evidence shows Tag Assistant connected and an Excellent container quality status at capture.

Website connected to Tag Assistant.
01Website connected to Tag Assistant.
Analytics destination configured in the GTM web container.
02Analytics destination configured in the GTM web container.
04

Track bookings and contact actions

I configured Calendly stages, audit form submissions, service page views, and WhatsApp, email and phone clicks, plus Microsoft Clarity on all pages. Booking stages covered event-type views, date/time selection and scheduling.

Lead action tags, Calendly listener and Microsoft Clarity configured in GTM.
03Lead action tags, Calendly listener and Microsoft Clarity configured in GTM.
05

Configure server-side collection

I configured the Stape server, custom tagging subdomain, Custom Loader and GA4 server tag. Browser events were forwarded through the server container to GA4; Clarity remained in the web container.

Running Stape server with a custom tagging subdomain.
04Running Stape server with a custom tagging subdomain.
Stape Custom Loader configured for collection.
05Stape Custom Loader configured for collection.
GA4 tag configured in the server container.
06GA4 tag configured in the server container.
06

Configure GA4 settings

The captured settings show 14-month event and user data retention, Google signals, location/device collection and completed data collection acknowledgements.

GA4 event and user data retention set to 14 months.
07GA4 event and user data retention set to 14 months.
GA4 data collection settings and acknowledgements captured.
08GA4 data collection settings and acknowledgements captured.
07

Test the lead journey

Web Preview shows the GA4 action tags and Clarity firing. Server Preview shows the GA4 tag firing with form and Calendly requests. DebugView shows booking stages, audit_form_submit, email_click, phone_call, services_page_view and whatsapp_click.

GA4 action tags and Microsoft Clarity fired in web Preview.
09GA4 action tags and Microsoft Clarity fired in web Preview.
GA4 server tag fired with form and booking events visible in Preview.
10GA4 server tag fired with form and booking events visible in Preview.
Lead journey events received in GA4 DebugView.
11Lead journey events received in GA4 DebugView.
08

Results

Captured tests document GA4 receipt for service interest, booking activity, forms and contact clicks through browser collection and server forwarding. Clarity installation and tag firing were verified. No increase in leads or completed calls is claimed.

09

A free tracking audit

Message me “TRACKING” for a free website tracking audit to check your tags and identify potential issues.

Claim your free tracking audit