Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试为我们的 Android 应用程序配置 Google Analytics。
工作正常,所有活动都显示为页面。我感兴趣的是添加页面标题,以便我可以看到带有标题的活动。
我确信这很容易,但我无法弄清楚正确的语法。
Tracker t = GoogleAnalytics.getInstance(context).newTracker(trackingId); t.setScreenName("Your Screen Name"); t.setTitle("Your Page Title"); // This is the code to set Page Title. t.send(new HitBuilders.AppViewBuilder().build());