MARKETPLACE
PLUGINS
GOOGLE ANALYTICS V4 + CUSTOM EVENTS
Google Analytics V4 + Custom Events logo

Google Analytics V4 + Custom Events

Published November 2020
   •    Updated this week

Plugin details

This Plugin allows you to add the new Google Analytics V4 Stream tag and trigger custom events and user properties from your workflow.
------

If you need GTM Google Tag Manager, Datalayer support, V2 Consent options or the ability to set a custom tag manager domain for first party data collection in your own server container check out our pro version:

https://bubble.io/plugin/consent-v2-+-server-side-ga4-gtm-1718004590823x903735664842637300

Free

For everyone

4.4 stars   •   8 ratings
4.0K installs
This plugin does not collect or track your personal data.

Other actions

Platform

Web

Contributor details

ONBRDNG logo
ONBRDNG
Joined 2020   •   2 Plugins
View contributor profile

Instructions

Just enter your measurement ID in the settings and you are good to go!
You will find GA4 Custom Event and GA4 User Properties in the Analytics section.


-------

If you need GTM, A Server Side Container and Consent Options please visit the PRO version of the plugin at:

https://bubble.io/plugin/consent-v2-+-server-side-ga4-gtm-1718004590823x903735664842637300

-------

Version 2.20 > You can now add an unlimited number of events if you use the new GA4 events. You can add Key/Value pairs through the bubble interface.

Older versions: You can add up to 10 custom parameters to your event. Please consider to upgrade your calls to the new method of key/value pairs.

--------

For E-commerce you could add:

eventname: add_to_cart
key: event_category
value: ecommerce
key: currency
value: USD
key: item
value: 5008 Black Dress
key: value
value: 39.95

Or to track your login events with method:

eventname: login
key:event_category
value: engagement
key: method
value: Google

User properties:

You can set your own user id by using the key/value pair:
user_id : current users unique userid

You can add up to 25 additional user properties as per the google GA4 manual.

For a full overview of events visit:
https://support.google.com/analytics/topic/9756175

Types

This plugin can be found under the following types:

Categories

This plugin can be found under the following categories:

Resources

Support contact
Tutorial

Rating and reviews

Average rating (4.4)

Works! Thank you!
September 14th, 2024
The best plugin to do the job
October 27th, 2023
Thank you so much for the plugin's author!
Works perfectly!
June 14th, 2023
You'll have to coordinate with Google Analytics to make sure the custom events you're firing are set up properly with the proper fields, but after doing so, this works perfectly!!
action doesn't show in backend workflow
October 7th, 2022
works perfectly but action doesn't show in backend workflow which was my intial requirement and can't send list items in ecom event
Works pretty well, but can't disable tracking
April 25th, 2022
There are a couple of things missing, I think, that would make this the go-to choice for GA4. 1) A way to prevent the tracking code and events being added, so that users' tracking preferences can be respected. (Perhaps this can be done with a switch which disables the code in the header, and instead puts it in an action which must be called in the On Page Load event?) 2) The user_id parameter for the GA Set User Properties would be easier to use if it was directly put into the Action configuration dialog box, rather than having to create a parameter with the key 'user_id'. A couple of other suggestions: 3) get rid of the "(NEW)" in the action name 4) call the action 'GA4 Send Event' rather than 'Set Custom Event'. I might be prepared to help with some of these if interested, but I can't seem to see the code on Github (I recall I had some issue with this before in my Bubble-Github connection).
Bubble