This message was deleted.
# ask-questions
w
This message was deleted.
c
Copy code
trackingCallback: (experiment, result) => {
   analytics.track("Experiment Viewed", {
      experimentId: experiment.key,
      variationId: result.key,
      // Add properties to the .track call to represent that the user got the experiment properly via the remote rules, and not a timeout or something else
    })
as an example, on our current homegrown system on top of Firebase’s RemoteConfig we do something like this
Copy code
AnalyticsService.track('Experiment Shown', {
        name,
        variant,
        remote_config_available: experimentValue.getSource() === 'remote',
        remote_config_value: experimentValue.asString(),
        predicate_failed: predicateFailed,
      });
144 Views