Event Tracking
GA4 Integration
Google Analytics 4 Integration
Conseto works alongside GA4, respecting consent and forwarding events. When consent is granted, GA4 tags fire automatically through Consent Mode v2.
Setup
javascript
Conseto.init({
clientId: 'YOUR_CLIENT_ID',
ga4: 'G-XXXXXXX' // Your GA4 Measurement ID
});Conseto will automatically:
Load the GA4 script only after analytics consent is granted
Set Consent Mode v2 defaults before GA4 initializes
Forward all custom events to GA4 in the correct format
Map Conseto e-commerce events to GA4 e-commerce schema