Hi everyone! I've been using GrowthBook for a coup...
# experimentation
g
Hi everyone! I've been using GrowthBook for a couple weeks for AB testing (both server and client side) I need to trigger a client-side test on a specific user action (right after adding an item to cart) and I need to do that via Google Tag Manager. I am not sure I fully understood how Inline experiments work. Should I create an experiment in my GB panel as well? What URLs should I declare in order to prevent the experiment to be triggered as soon as the page loads? Thank you so much!
f
the question you're asking is about how to make sure the experiment assigns correctly or that the experiment is tracked correctly?
if its the latter, you can use activation metrics to make sure you only analyze results from users who saw the experiment
❤️ 1
g
Thanks Graham! I need an experiment with some additional CSS in its variant (I did that with the visual editor), but I need the experiment callback event to be launched after a user clicks a button, not right after the page loads. If I rely fully on the activation metrics I can get an unbalanced traffic allocation because maybe 4k users visited the URL (2k per variant) but only clicked 500 users in Control group and 300 in Variant group.
f
its possible
is the experiment on the button click?
g
Its on the modal window that is shown after the button is clicked
f
okay, cool - I imagine the button click and modal open would be similar for both groups.
g
Right, just want to apply minor CSS changes to some elements in the modal
@fresh-football-47124 I guess there is no way to do this, right?
f
to do activation metrics or to only load the ab test on modal open?
g
second one 🙂
f
That's really what activation metrics are for