fierce-salesclerk-92514
07/24/2024, 10:16 PMNo data yet. Make sure your experiment is tracking properly.Can anyone confirm if this initial SDK setup looks correct for the tracking metrics part. The documentation on this part specifically seems to be a bit lacking, so I’m not sure if I’ve done this first step correctly. Specifically, what ga4 id should I be using, to ensure I can get metrics easily in the growthbook dashboard.
happy-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