2
votes

How to setup Google Analytics with Codename One? I tried using the analytics service, after creating a property and getting an agent string, I added:

    AnalyticsService.init("UA-something-here", "property name");
    AnalyticsService.setAppsMode(true);

but it did not start tracking. In the Codename One article, it is written that I need agent string and domain string. Are domain and property the same? How do I setup Google Analytics with Codename One?

1

1 Answers

1
votes

The agent string is the "UA-......." number, and the domain string is "apppackagename.companyname.com"