In what case does google return this format of utm_source=(not%20set)&utm_medium=(not%20set) .
Please let me know if there is any documentation to check if the code is working fine??
using the new google referal api.
try {
mReferrerClient = InstallReferrerClient.newBuilder(this).build();
mReferrerClient.startConnection(new InstallReferrerStateListener() {
@Override
public void onInstallReferrerSetupFinished(int responseCode) {
switch (responseCode) {
case InstallReferrerClient.InstallReferrerResponse.OK:
// Connection established
ReferrerDetails response = null;
try {
response = mReferrerClient.getInstallReferrer();
refer = response.getInstallReferrer();
setData(refer, intent);
Log.e("refergoogle", refer);
response.getReferrerClickTimestampSeconds();
response.getInstallBeginTimestampSeconds();
mReferrerClient.endConnection();
} catch (Exception e) {
Crashlytics.logException(e);
}
break;
case InstallReferrerClient.InstallReferrerResponse.FEATURE_NOT_SUPPORTED:
// API not available on the current Play Store app
break;
case InstallReferrerClient.InstallReferrerResponse.SERVICE_UNAVAILABLE:
// Connection could not be established
break;
}
}
@Override
public void onInstallReferrerServiceDisconnected() {
// Try to restart the connection on the next request to
// Google Play by calling the startConnection() method.
}
});
} catch (Exception e) {
Crashlytics.logException(e);
}
log printed for live app is E/original-reff: utm_source=(not%20set)&utm_medium=(not%20set)
As per my observation "Not Set" generally happens in case install was through FaceBook.