Using Google Analytics with FireBase + Google Tag Manager Android SDK

前端 未结 2 1661
不知归路
不知归路 2020-12-31 19:15

How to fire Google Analytics tag using Firebase + Google Tag Manager SDK in Android? I added the Firebase container to my assets/container folder and creat

2条回答
  •  清酒与你
    2020-12-31 19:22

    Google Tag Manager needs to be added as a separate dependency; see the documentation for doing so here:

    Google Tag Manager for Android

    In short:

    1. Add to your module's gradle file:

      dependencies {
        // ...
        implementation 'com.google.android.gms:play-services-tagmanager:[latest-version]'
      }
      
    2. Download the container file and add it to /assets/containers.

提交回复
热议问题