Does anyone have any experience using Amplitude Experiment and Google Tag Manager together?
Our goal is to have Amplitude Experiment set-up like a typical client side tool since it would be difficult to integrate our servers-side code due to some vendor issues. (long-term addressable, but not in the near term)
So the basic thought is
1> Fire Amplitude Analytics in GTM with the “Amplitude Analytics Browser SDK” GTM community template.
2> Fire a script tag to initialize the Expierment.
<script src=“https://unpkg.com/@amplitude/experiment-js-client@1.9.0/dist/experiment.umd.js”></script>
3> Create a Google Tag Manager Variable which is a custom javascript variable and captures which the experiments and variations the visitor is in.
4> Use those values in the GTM variables to execute or not, the code in our experiments.
This is not pretty. But I haven’t come across much content on Amplitude Experiment, since it is a newer product and not for the lower tier plans.
any feedback would be appreciated.