Rich-text Reply

[Android] Is Amplitude integration on Android supported?

william 09-02-15

[Android] Is Amplitude integration on Android supported?

Is Amplitude plugin supported? I don't see the user properties logged in Amplitude, and when I check the source code, the class `OptimizelyAmplitudeIntegration` is an empty class.

 

I'm using SDK v1.1.2

Level 2

tedroddy 09-02-15
 

Re: [Android] Is Amplitude integration on Android supported?

Hi William,

The Amplitude plugin is supported in SDK 1.1.2. I'm not sure what you're looking at to see the empty class, but it should be there. Which file are you looking in? Do you have the Gradle dependency set up and the plugin registered? Here is some information how to do that:
http://developers.optimizely.com/android/reference/index.html#amplitude

Best,
Ted
Best,
Ted
Optimizely
william 09-02-15
 

Re: [Android] Is Amplitude integration on Android supported?

My bad - I was looking at the constructor, which has an empty body.

in `build.gradle`, I have:
``
compile('com.optimizelySmiley Surprisedptimizely:+@aar') {
transitive = true
}
compile('com.optimizely:amplitudeintegration:+@aar')
``

and in `startOptimizely` method I have:
Optimizely.setNetworkTimeout(NETWORK_TIMEOUT);
Optimizely.setEditGestureEnabled(BuildConfig.DEBUG);
Optimizely.setDataFileDownloadInterval(UPDATE_FREQUENCY);
Optimizely.setVisualExperimentsEnabled(false);
Optimizely.setshouldReloadExperimentsOnForegrounding(false); // we'll do this manually
Optimizely.addOptimizelyEventListener(new OptimizelyListener());
Optimizely.registerPlugin(new OptimizelyAmplitudeIntegration());

if (BuildConfig.DEBUG) {
Log.d(TAG, "Optimizely SDK Version: " + Optimizely.sdkVersion());
Optimizely.setVerboseLogging(true);
}

Optimizely.startOptimizely("<token>", application);


Which, btw, the reference doc is incorrect: it is `new OptimizelyAmplitudeIntegration()`, not `new AmplitudeIntegration()`
Level 2
tedroddy 09-03-15
 

Re: [Android] Is Amplitude integration on Android supported?

William,

 

Thanks for pointing this out. It is OptimizelyAmplitudeIntegration()! I will see about having that updated.

 

Ted

Best,
Ted
Optimizely