MARKETPLACE
PLUGINS
CONSENT V2 + SERVER SIDE GA4 GTM
Consent V2 + Server Side GA4 GTM logo

Consent V2 + Server Side GA4 GTM

Published June 2024
   •    Updated October 2025

Plugin details

This plugin empowers you to seamlessly integrate Google Tag Manager (GTM) into your Bubble.io app and define custom events directly from your workflow. This plugin can set the default and custom GA4 consent options.
Key Benefits:

• Load GTM Function: Comply with user consent requirements effortlessly. The Tag Manager is only loaded after you call the GTM Load function, giving you precise control over when and how GTM is activated.

• Customizable GTM Domain: Easily modify the GTM domain, making it convenient to run your Google Analytics instance in a server-side container on your own server or domain. This flexibility ensures your analytics setup meets your needs.

• GA4 V2 Consent Options: Leverage the latest GA4 V2 consent options for more precise and compliant data tracking, ensuring your analytics respect user preferences and privacy regulations.

Optimize your analytics setup with this Plugin and enjoy greater control, flexibility, and compliance.

Read more about Google Consent V2 at:
https://www.simoahava.com/analytics/consent-mode-v2-google-tags/

See this bubble app editor for an example implementation:
https://bubble.io/page?name=index&id=ga4serverside

$9

Per month

5.0 stars   •   1 ratings
1 installs  
This plugin does not collect or track your personal data.

Platform

Web

Contributor details

ONBRDNG logo
ONBRDNG
Joined 2020   •   2 Plugins
View contributor profile

Instructions

Make sure to load GTM on every page you want to measure. When page is loaded > "Load GTM" > "Load Default Consent" (optional)

Load Default consent can set the following Google V2 Consent options:

- ad_storage
- ad_user_date
- ad_personalization
- analytics_storage
- functionality_storage
- personalization_storage
- security storage

You can change use the Action "Update Consent" to update any of these options based on user input/consent.

Use "Datalayer Push" to send data/events to your datalayer/Tag Manager.

If you create custom events make sure you add a trigger and a GA4 forward tag for the event in your Google Tag Manager.
For more info see: https://support.google.com/tagmanager/answer/13034206?hl=en

For E-commerce you could add:

eventname: add_to_cart

parameter1: currency
value1: EUR
parameter2: item
value2: 5008 Black Dress
parameter3: value
value3: 39.95

Or to track your logins:

eventname: login
parameter1: method
value1: Google

For a full overview of events visit:
https://developers.google.com/analytics/devguides/collection/ga4/events?client_type=gtm

Types

This plugin can be found under the following types:

Categories

This plugin can be found under the following categories:

Resources

Support contact
Documentation
Tutorial

Rating and reviews

Average rating (5.0)

Works!
June 12th, 2024
Great to be able to send default and custom consent options and that you are able to load nothing of GTM/GA until you get user consent!
Bubble