Hello Team, I am new to GrowthBook and want to ru...
# ask-questions
b
Hello Team, I am new to GrowthBook and want to run an A/B test for a feature to compare the performance of two variations. Currently, I have created a feature and can toggle it on and off. I am also tracking some events in Google Analytics. My questions are: 1. How can I use the tracked events in GrowthBook as metrics? 2. How can I add an experiment and link it to the feature? 3. Do I need to send a user ID from the frontend to GrowthBook to handle the split between variations, or does GrowthBook manage this automatically? Thank you!
f
1. you can add metrics based on your google data (bigQuery) from with in GrowthBook - GrowthBook itself does not store data or track metrics, but uses your existing data source. 2. Add an experiment rule to your feature 3. Make sure you have the trackingCallback() defined, and that track event will store the user id (or client id) and the experiment id. From this, GrowthBook can join to the other metrics
b
Thanks, @fresh-football-47124, for your help! I have a few more questions: • Do I need to manually track the 'Viewed Experiment' event inside the
trackingCallback
with the
experimentId
and
variationId
, or is it handled automatically? • If I need to track it manually, what data should I include with the event? • Lastly, do I need to add the 'Viewed Experiment' event as a metric in GrowthBook? Thank you!
Also, one more question: For example, if I am tracking a 'user interaction with a disabled button', how does GrowthBook know which user and which variation triggered this event? Do I need to include this data with the custom events?