Hi everyone. I’ve been implementing GrowthBook in a Nuxt project (basically following the Vue instructions), using G4A as a data source. I am still working locally but so far so good - I have features set up on GB and these are coming through fine, and also metrics set up that reporting data from G4A via Big Query. I’ve set up an experiment based on a feature, but have not got any data back yet. As far as I can see (in Big Query), no data has come through from G4A yet - specifically the ‘experiment_viewed’ event.
I wanted to check if I had understood the tracking callback correctly, am I missing anything here that would stop my experiment tracking correctly? This is the instantiation of GB I have:
growthBook = new GrowthBook({
enableDevMode,
trackingCallback: (experiment, result) => {
// track using GA4
Vue.$gtag.event('experiment_viewed', {
event_category: 'experiment',
experiment_id: experiment.key,
variation_id: result.variationId,
})
},
})
I am still figuring all this out so may well have missed something important. Any help appreciated.