Java Code Examples for com.facebook.appevents.AppEventsLogger#updateUserProperties()
The following examples show how to use
com.facebook.appevents.AppEventsLogger#updateUserProperties() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AptoideApplicationAnalytics.java From aptoide-client-v8 with GNU General Public License v3.0 | 5 votes |
public void updateDimension(boolean isLoggedIn) { Bundle bundle = new Bundle(); bundle.putString("Logged In", isLoggedIn ? "Logged In" : "Not Logged In"); AppEventsLogger.updateUserProperties(bundle, response -> Logger.getInstance() .d("Facebook Analytics: ", response.toString())); FlurryAgent.addSessionProperty("Logged In", isLoggedIn ? "Logged In" : "Not Logged In"); }
Example 2
Source File: AptoideApplicationAnalytics.java From aptoide-client-v8 with GNU General Public License v3.0 | 5 votes |
public void setPackageDimension(String packageName) { Bundle bundle = new Bundle(); bundle.putString(APTOIDE_PACKAGE, packageName); AppEventsLogger.updateUserProperties(bundle, response -> Logger.getInstance() .d("Facebook Analytics: ", response.toString())); FlurryAgent.addSessionProperty(APTOIDE_PACKAGE, packageName); }
Example 3
Source File: AptoideApplicationAnalytics.java From aptoide-client-v8 with GNU General Public License v3.0 | 5 votes |
public void setVersionCodeDimension(String versionCode) { Bundle bundle = new Bundle(); bundle.putString("version code", versionCode); AppEventsLogger.updateUserProperties(bundle, response -> Logger.getInstance() .d("Facebook Analytics: ", response.toString())); FlurryAgent.addSessionProperty("version code", versionCode); }
Example 4
Source File: MoPubAnalytics.java From aptoide-client-v8 with GNU General Public License v3.0 | 5 votes |
public void setMoPubAbTestGroup(boolean isControlGroup) { Bundle bundle = new Bundle(); bundle.putString("ASV-1377-MoPub-Ads", isControlGroup ? "a_without_mopub" : "b_with_mopub"); AppEventsLogger.updateUserProperties(bundle, response -> Logger.getInstance() .d("Facebook Analytics: ", response.toString())); FlurryAgent.addSessionProperty("ASV-1377-MoPub-Ads", isControlGroup ? "a_without_mopub" : "b_with_mopub"); }
Example 5
Source File: MoPubAnalytics.java From aptoide-client-v8 with GNU General Public License v3.0 | 5 votes |
public void setAdsVisibilityUserProperty( WalletAdsOfferManager.OfferResponseStatus offerResponseStatus) { Bundle bundle = new Bundle(); String ads = mapToAdsVisibility(offerResponseStatus).getType(); bundle.putString(ADS_STATUS_USER_PROPERTY, ads); AppEventsLogger.updateUserProperties(bundle, response -> Logger.getInstance() .d("Facebook Analytics: ", response.toString())); FlurryAgent.addSessionProperty(ADS_STATUS_USER_PROPERTY, ads); String adsStatusByRakamValue = mapAdsVisibilityToRakamValues(offerResponseStatus); Rakam.getInstance() .setSuperProperties(createRakamAdsSuperProperties(adsStatusByRakamValue)); }
Example 6
Source File: FirstLaunchAnalytics.java From aptoide-client-v8 with GNU General Public License v3.0 | 5 votes |
/** * Responsible for setting facebook analytics user properties */ private void setUserProperties(String key, String value) { Bundle parameters = new Bundle(); parameters.putString(key, value); AppEventsLogger.updateUserProperties(parameters, response -> logger.logDebug("Facebook Analytics: ", response.toString())); FlurryAgent.addSessionProperty(key, value); }
Example 7
Source File: FirstLaunchAnalytics.java From aptoide-client-v8 with GNU General Public License v3.0 | 4 votes |
private void setUserPropertiesWithBundle(Bundle data) { AppEventsLogger.updateUserProperties(data, response -> logger.logDebug("Facebook Analytics: ", response.toString())); }