Settings
Integrations
Google Analytics 4 and GTM
4min
the ga4 integration works by automatically sending events to ga4 the following events are sent for widgets widget view for widget views widget click for widget clicks widget submit for widget submits with the following parameters { widget id, widget name, variation id, variation name, experiment id, control } for campaigns campaign view for campaign views with the following parameters { campaign id, campaign name, control, variation id, variation name } google tag manager if your google analytics tag is configured via gtm, you'll need to make additional adjustments to make sure the events are relayed to google analytics create a trigger go to your container go to triggers click new in the form name the trigger, for example, "personizely event" event name (widget|campaign) check the "use regex matching" checkbox set the "this trigger fires on" to "all custom events" save create an event tag go to tags click new tag configuration select tag type "google analytics ga4 event" in the form measurement id the id of your measurement, which looks like "g xxxxxxxx" event name {{event}} events parameters add the following parameter value pairs widget id {{widget id}} widget name {{widget name}} experiment id {{experiment id}} control {{control}} campaign id {{campaign id}} campaign name {{campaign name}} variation id {{variation id}} variation name {{variation name}} triggering select the trigger you have created in the first step (personizely event) save submit now you can submit your container, and personizely events will be automatically relayed to google analytics the same method can be used to send personizely events to any other tags you have in gtm