Integrations for Android
Google Analytics
Taplytics logs experiment/variation info to the Google Analytics SDK as follows:
HashMap<String, String> experimentsAndVariations = new HashMap<>();
experimentsAndVariations.put("Experiment 1", "Variation 1");
experimentsAndVariations.put("Experiment 2", "Variation 3");
for (String experiment : experimentsAndVariations.keySet()) {
googleTracker.set(experiment,experimentsAndVariations.get(experiment));
}
Flurry
Taplytics logs experiment/variation events to the Flurry Android SDK as follows:
HashMap<String, String> experimentsAndVariations = new HashMap<>();
experimentsAndVariations.put("Experiment 1", "Variation 1");
experimentsAndVariations.put("Experiment 2", "Variation 3");
FlurryAgent.logEvent("TL_Experiments", experimentsAndVariations)
MixPanel
Taplytics logs experiment/variation events to the Mixpanel Android SDK as follows:
HashMap<String, String> experimentsAndVariations = new HashMap<>();
experimentsAndVariations.put("Experiment 1", "Variation 1");
experimentsAndVariations.put("Experiment 2", "Variation 3");
mixpanel.registerSuperProperties("TL_Experiments", experimentsAndVariations)
Please note that the MixPanel integration currently does not work for versions 5+
Amplitude
Taplytics logs experiment/variation events to the Amplitude Android SDK as follows:
HashMap<String, String> experimentsAndVariations = new HashMap<>();
experimentsAndVariations.put("Experiment 1", "Variation 1");
experimentsAndVariations.put("Experiment 2", "Variation 3");
Amplitude.getInstance().logEvent("TL_Experiments", experimentsAndVariations)
Adobe
Taplytics logs experiment/variation events to the Adobe Omniture Android SDK as follows:
HashMap<String, String> experimentsAndVariations = new HashMap<>();
experimentsAndVariations.put("Experiment 1", "Variation 1");
experimentsAndVariations.put("Experiment 2", "Variation 3");
Analytics.trackAction("TL_Experiments", experimentsAndVariations)
Localytics
Taplytics logs experiment/variation events to the Amplitude Android SDK as follows:
HashMap<String, String> experimentsAndVariations = new HashMap<>();
experimentsAndVariations.put("Experiment 1", "Variation 1");
experimentsAndVariations.put("Experiment 2", "Variation 3");
Localytics.tagEvent("TL_Experiments", experimentsAndVariations)
Segment
Taplytics logs each experiment and variation to segment individually along with their experiment and variation ids.
While the following isn't exactly how Taplytics handles the data, it serves to give you an idea of how experiment/variation data is sent to Segment.
HashMap experiment1 = new HashMap
experiment1.put("experiment_name", "Experiment 1");
experiment1.put("experiment_id", "51353414351143");
experiment1.put("variation_name", "Variation 2");
experiment1.put("variation_id", "4919491294129");
Analytics.with(context).track("Experiment Viewed", new Properties().putAll(experiment1));
Updated about 6 years ago