feat: Add GA4 CTA click tracking across all pages #73

Closed
opened 2026-04-05 16:18:48 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @mallersjamie on 2/20/2026

What

Adds GA4 event tracking for CTA clicks ("Get started free" and "Request demo" buttons) across all pages.

Why

GA weekly audit found zero conversion events configured. While sign_up and demo_request events fire after form submission, we had no tracking on the CTA clicks themselves. This means we couldn't measure:

  • Which pages drive the most CTA clicks
  • Click-through rate from landing pages to registration
  • Which CTA copy/placement performs best

How

New partial cta-tracking.ejs uses event delegation to track all links to /accounts/register and /enterprise/demo:

  • Fires cta_get_started event for registration CTAs
  • Fires cta_request_demo event for demo CTAs
  • Pushes to both gtag and dataLayer (GTM backup)
  • Captures link text and URL for analysis

Added to: homepage, pricing, demo, blog posts, blog list, status page, and all industry pages.

Next Step

After merge, mark cta_get_started, cta_request_demo, sign_up, and demo_request as Key Events in GA4 Admin.

*Originally created by @mallersjamie on 2/20/2026* ## What Adds GA4 event tracking for CTA clicks ("Get started free" and "Request demo" buttons) across all pages. ## Why GA weekly audit found **zero conversion events** configured. While `sign_up` and `demo_request` events fire after form submission, we had no tracking on the CTA clicks themselves. This means we couldn't measure: - Which pages drive the most CTA clicks - Click-through rate from landing pages to registration - Which CTA copy/placement performs best ## How New partial `cta-tracking.ejs` uses event delegation to track all links to `/accounts/register` and `/enterprise/demo`: - Fires `cta_get_started` event for registration CTAs - Fires `cta_request_demo` event for demo CTAs - Pushes to both gtag and dataLayer (GTM backup) - Captures link text and URL for analysis Added to: homepage, pricing, demo, blog posts, blog list, status page, and all industry pages. ## Next Step After merge, mark `cta_get_started`, `cta_request_demo`, `sign_up`, and `demo_request` as **Key Events** in GA4 Admin.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/oneuptime#73