Hi everyone! I wonder if we should follow the GA4
experiment_viewed
event structure as it’s given in docs sample when firing it in tracking callback. Can we use our own
event_category
(e.g ‘AB Tests’ instead of ‘experiment’) or call it
experiment_impression
instead and follow the format we had while using Google Optimize?
What we’ve found in docs:
window.gtag("event", "experiment_viewed", {
event_category: "experiment",
experiment_id: experiment.key,
variation_id: result.variationId,
...
})
What we’d like to send:
gtag('event', 'experiment_impression', {
event_category: 'AB Tests',
experiment_id: expId,
variant_id: `${expId}.${variantId}`,
})