Canvas Builder + Google Analytics
Google Analytics 4 (GA4) tracks visitor behaviour on your Canvas Builder site — page views, button clicks, scroll depth, and conversions. Adding GA4 to your Canvas Builder HTML is a single script tag, and meaningful tracking requires configuring events that match your business goals.
Use Cases
How It Works
Create a GA4 property
Go to analytics.google.com, create a new GA4 property, and get your Measurement ID (G-XXXXXXXXXX). You'll add this to every page of your Canvas Builder site.
Add the GA4 script tag
Add the GA4 tracking snippet to the <head> of every HTML page in your Canvas Builder site. Place it as the first script tag to ensure all page views are captured. Use a consistent snippet across all pages.
Set up event tracking
Add onclick event handlers to your CTA buttons that call gtag() with event name and parameters (button location, page). Track form submissions, phone number clicks, and email link clicks as conversion events.
Configure conversions and audiences
In GA4, mark your key events as conversions. Create audiences based on behaviour (visited pricing page, started signup, completed purchase). Use these audiences for retargeting and campaign optimisation.
Benefits
FAQ
Should I use Google Analytics or Plausible for my Canvas Builder site?
How do I track button clicks on my Canvas Builder site?
Start with Canvas Builder
Generate production-ready Bootstrap 5 HTML for your Google Analytics project in ~3 minutes.
Generate Now →