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.
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 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.
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.
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.
Generate production-ready Bootstrap 5 HTML for your Google Analytics project in ~3 minutes.
Generate Now →