https://www.growthbook.io/ logo
#announcements
Title
# announcements
l

late-spring-83291

04/05/2022, 7:31 AM
<!channel> what is the tracking function for amplitude. I see the example only sites segment.io like this but i want rto do it for amplitude
Copy code
analytics.track("Experiment Viewed", {
      experimentId: experiment.key,
      variationId: result.variationId,
    });
f

flat-electrician-29917

04/05/2022, 7:32 AM
Please refrain from using the
@channel
command.
f

fresh-football-47124

04/05/2022, 7:33 AM
Hi Angella, what language are you using? JS?
for amplitude it would be something like:
Copy code
amplitude.getInstance().logEvent("Experiment Viewed",
    { experimentId: experiment.key,
      variationId: result.variationId });
👍 1
l

late-spring-83291

04/05/2022, 7:35 AM
I am using react
14 Views