salmon-policeman-87046
10/29/2024, 3:05 AManonymous_id
attribute
• I have set up some custom GA4 events already as metrics
• I watched "Migrating from Google Optimize" and "Feature flagging and A/B testing with NextJS and GrowthBook”
Questions:
1. ID Attribute: I assume I want to do growthbook.setAttributes({ id: anonymous_id })
— is there a guide or info on how to access the anonymous_id from GA4 so I can pass it through?
2. Tracking Key: in "Experiment Settings" this says, “Unique identifier for this experiment, used to track impressions and analyze results. Will match against the experiment_id column in your data source.” Is there info on how to set an "experiment_id" column in GA4 events and is it supposed to appear on both the activation metric and the goal metrics?
3. Activation Metric: I was pretty confused by the trackingCallback
in the demos examples, but I’m seeing now that it should trigger this metric. Is there an example of what a GA4 event usually looks like for that and is that where the experiment_id
column gets picked up?fresh-stone-24633
10/29/2024, 10:53 AMfresh-stone-24633
10/29/2024, 10:56 AMfresh-stone-24633
10/29/2024, 2:03 PM