Google tools
Configure Google Tag Manager, Google Analytics, and reCAPTCHA for your Basker site
The Google app brings three separate Google services into Basker:
- Google Tag Manager (GTM) for loading and managing tags from a GTM container.
- Google Analytics 4 (GA4) for standard analytics collection.
- Google reCAPTCHA v3 for scoring public form submissions and rejecting likely automated submissions.
Use only the services your site needs. Leaving a setting blank or switched off leaves that part of the app inactive.
Google Tag Manager
Enter the GTM Container ID supplied by Google, such as GTM-XXXXXXX. Basker loads that container on public pages, including the <noscript> fallback.
Manage tags, triggers, consent behaviour, and custom events in Google Tag Manager. Changes published in GTM do not require a content publish in Basker.
Google Analytics 4
Enter the Google Analytics Measurement ID, such as G-XXXXXXXXXX. Basker loads the GA4 script and sends the standard page configuration to that property. Reports and conversion settings remain in Google Analytics.
If you also load GA4 through Google Tag Manager, take care not to configure the same pageview twice. In most setups, choose one route for loading GA4.
Stable reporting hooks for blocks
Blocks have optional Analytics Key and Analytics Label fields under Analytics:
- Analytics Key: a stable reporting identifier, e.g.
homepage-featured-events. The block exposes this on the page as adata-analytics-keyattribute, which you target with GTM triggers and variables or with GA4 event configuration. - Analytics Label: an optional human-readable name, e.g.
Homepage featured events, exposed asdata-analytics-labelfor use in reports and tag setup.
Use these attributes in GTM triggers or custom analytics code. Do not use a block's automatically generated ID as a long-lived reporting key because that ID can change.
reCAPTCHA for forms
To enable reCAPTCHA v3, supply both a Site Key and Secret Key, then switch on Enable reCAPTCHA. The site key is sent to the browser; the secret stays on the server.
The Score Threshold ranges from 0 to 1 and defaults to 0.5. A form submission is rejected when Google returns a lower score, an invalid response, or no token. Test every public form after enabling it.
Consent and the cookie banner
The Google scripts load whenever their ID is configured. The cookie banner setting does not by itself delay or disable those scripts.
If your consent policy requires analytics to wait for permission, configure consent behaviour in Google Tag Manager or in your theme, and test both accepting and declining. Treat the banner text, tag behaviour, and privacy policy as one implementation rather than assuming the setting enforces compliance automatically.