Google Analytics & Tag Manager
Last updated: May 28, 2026
Track visitor behavior and conversions on your Flint pages using Google Analytics and Google Tag Manager.
Before setting up analytics
For Google Analytics or any tracking script to work, ensure these three prerequisites are met:
Pages are marked as Ready (not Hidden) in the editor sidebar
A custom domain is configured in Settings > Domains
Pages are published to production
Note: Hidden pages are not served to visitors, so analytics scripts will not fire on them. If you see zero traffic despite visits, check page visibility first.
Overview
Flint makes it easy to add Google Analytics (GA4) and Google Tag Manager (GTM) to your pages. Once configured, you can track page views, conversions, and user behavior across all your Flint-powered pages.
Your tracking codes are managed in your site settings and automatically injected into every page you publish.
Adding Google Analytics
To add Google Analytics to your Flint site:
Open your site settings in the Flint dashboard
Navigate to the "Scripts" or "Analytics" section
Paste your GA4 Measurement ID (starts with G-)
Save your changes
Flint will automatically add the Google Analytics script to all your published pages. You don't need to edit any code.
Adding Google Tag Manager
Google Tag Manager gives you more flexibility to manage multiple tracking scripts and conversion pixels.
To add GTM:
Open your site settings in the Flint dashboard
Navigate to the "Scripts" section
Paste your GTM Container ID (starts with GTM-)
Save your changes
Flint injects both the head and body GTM snippets automatically, so all your tags will fire correctly.
Tracking Conversions
Once analytics are set up, you can track button clicks and other conversion events.
For basic conversion tracking:
Button clicks can be tracked by adding event parameters in GTM
For advanced conversion tracking, you can add custom scripts that fire on specific user interactions. Please see the Custom Code documentation for more details.
Verifying Your Setup
To confirm everything is working:
Publish a page with your analytics configured
Visit the published page
Open Google Analytics Real-Time reports to see your visit
For GTM, use the Tag Assistant browser extension to verify tags are firing
If you don't see data appearing, double-check that your Measurement ID or Container ID is entered correctly.