Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic $exposure tracking #55

Open
joelr-cm opened this issue Jan 12, 2023 · 1 comment
Open

Automatic $exposure tracking #55

joelr-cm opened this issue Jan 12, 2023 · 1 comment

Comments

@joelr-cm
Copy link

Hello Amplitude SDK Team,

We are trying to implement Amplitude Experiments in our app but having trouble understanding how the automatic$exposure tracking works!

The docs say that the exposure tracking works automatically when using the SDK (we use version 1.5.3)

We need the $exposure to be tracked by Amplitude along with a custom event tracking provider.

Here is a snippet of how we initialize the SDK

AmplitudeExperiment.initialize(apiKey, {
  automaticExposureTracking: true,
  exposureTrackingProvider: new RudderStackExposureTrackingProvider(), // our custom provider
  debug:
    true,
  initialVariants: experiments.getAll().reduce(
    (variantsAcc, experiment) => ({
      ...variantsAcc,
      [experiment.id]: experiment.fallback,
    }),
    {}
  ),
});

We are unable to see the exposure events being tracked in Amplitude

image

We would appreciate any help with this.

Thank you
Joel

@bgiori
Copy link
Collaborator

bgiori commented Jan 13, 2023

Hi @joelr-cm,

Thanks for submitting this issue.

First, if you debug or add log statements to the custom RudderStackExposureTrackingProvider is the track() method being called? If so what are the values in the Exposure object passed to track()?

Brian.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants