Upgrade to Pro — share decks privately, control downloads, hide ads and more …

A/B testing GTM&GA vs Firebase

A/B testing GTM&GA vs Firebase

2016/06/17 umeda.apk #1

takuaraki

June 20, 2016
Tweet

More Decks by takuaraki

Other Decks in Technology

Transcript

  1. A/B testing How to test on mobile app? • Google

    Tag Manager & Google Analytics • Firebase (Remote Config & Analytics) ←New!
  2. GTM&GA vs Firebase Compare about : • Setting on web

    console • Implementation on Android Studio • Performing analytics
  3. GTM & GA You need to set: • Test name

    • Settings for linking GA • GA account • GA property • GA view • Purpose of test • Patterns • Pattern name • key and value
  4. • Options • Targeting user (%) • Statistical threshold (%)

    • Period of test • The pattern fixed when test finished • Trigger of starting test
  5. Firebase Remote Config You need to set: • Parameter ʢkey

    and valueʣ • Condition • User (random %)
  6. GTM & GA // Initializing TagManager tagManager = TagManager.getInstance(context); PendingResult<ContainerHolder>

    pending = tagManager.loadContainerPreferNonDefault(CONTAINER_ID, R.raw.gtm_default_container); pending.setResultCallback(new ResultCallback<ContainerHolder>() { @Override public void onResult(ContainerHolder containerHolder) { ContainerHolderSingleton.setContainerHolder(containerHolder); if (!containerHolder.getStatus().isSuccess()) { Log.e(TAG, "failure loading container"); return; } startMainActivity(); } }, 2, TimeUnit.SECONDS); // Getting A/B value Container c = ContainerHolderSingleton.getContainerHolder().getContainer(); String pattern = c.getString(“pattern”);
  7. Firebase Remote Config // Initializing final FirebaseRemoteConfig remoteConfig = FirebaseRemoteConfig.getInstance();

    remoteConfig.setDefaults(R.xml.remote_config_defaults); remoteConfig.fetch().addOnCompleteListener(new OnCompleteListener<Void>() { @Override public void onComplete(@NonNull Task<Void> task) { if (task.isSuccessful()) { Log.d(TAG, "Fetch Succeeded"); remoteConfig.activateFetched(); } else { Log.e(TAG, "Fetch failed", task.getException()); } startMainActivity(); } }); // Getting A/B value String pattern = FirebaseRemoteConfig.getInstance().getString(“pattern”);
  8. GTM & GA • GTM send whether the session is

    A or B. • GA calculates conversion rate of each pattern and probability that B is superior to A. Google Analytics Console
  9. Firebase Remote Config & Firebase Analytics • You need to

    send whether the session is A or B. • You need to calculate conversion rate and probability that B is superior to A. // Adding custom parameter when sending events Bundle params = new Bundle(); params.putString(“test_pattern”, pattern); // add A or B FirebaseAnalytics.getInstance(context).logEvent(“button_tapped”, params);
  10. Conclusion Setting on web console Firebase is simpler than GTM&GA.

    Implementation on Android Studio Firebase is similar to GTM&GA. Performing analytics Firebase need to implementation of analytics.