worried-planet-2191
07/24/2024, 10:16 PMhappy-autumn-40938
07/25/2024, 5:34 AMimport { sendGAEvent } from '@next/third-parties/google'
...
const growthbook = new GrowthBook({
...
trackingCallback: (experiment, result) => {
sendGAEvent({
event: "experiment_viewed",
value: {
experiment_id: experiment.key,
variation_id: result.key,
},
});
},
...
});fierce-salesclerk-92514
07/25/2024, 9:41 PMhappy-autumn-40938
07/25/2024, 10:16 PMfierce-salesclerk-92514
07/26/2024, 3:11 AM{
event: "gtm.load",
gtm: {uniqueEventId: 9, start: 1721959940389},
value: {experiment_id: "song_play_btn", variation_id: "0"}
}
But for some reason the page_view metrics still arn’t appearing on the GrowthBook experiment. It’s still complaining with No data yet. Make sure your experiment is tracking properly. Do you know if I need to do something with that anonymous_id in the experiment_assignment_table? I’m setting the id in growthbook.setAttributes as the GA4ClientId from the cookie, but is this not correct?
Thanks again heaps in advance