我正在尝试按照本教程实施Google跟踪代码管理器:https: //developers.google.com/tag-manager/android/v4/
当我运行应用程序时,我在控制台中遇到这些错误:
05-22 12:27:44.490 V/GoogleTagManager? Attempting to load a container from the resource ID 2131099650 (testconverteo.ismail.converteotag:raw/gtm_default_container)
05-22 12:27:44.520 E/GoogleTagManager? Invalid macro: _gtm.loadEventEnabled
05-22 12:27:44.520 V/GoogleTagManager? loadAfterDelay: containerId=GTM-XXXXX delay=29397190
05-22 12:27:44.530 E/GoogleTagManager? Invalid macro: _gtm.loadEventEnabled
05-22 12:27:44.490 W/GoogleTagManager? Failed to extract the container from the resource file. Resource is a UTF-8 encoded string but doesn't contain a JSON container
Run Code Online (Sandbox Code Playgroud)
我在Google Analytics中没有实时数据,甚至没有任何数据证明我的应用程序已被跟踪.
如果有人遇到同样的问题,或者他已经按照相同的步骤知道如何解决这个问题,请在评论中留下解释.
我做的步骤:
compile 'com.google.android.gms:play-services:7.3.0'我目前在启动画面活动中拥有的内容如下:
public class SplashScreenActivity extends …Run Code Online (Sandbox Code Playgroud)