Cordova-Android-Analytics icon indicating copy to clipboard operation
Cordova-Android-Analytics copied to clipboard

question: how to change UA property id at the start method?

Open georgegwu opened this issue 12 years ago • 2 comments

I am looking for a way to change this UA-XXXXXX-X property id at the time of Start() method call.

Reason is that I like to set up dev, staging, and production properties so that data don't pollute each other.

Thanks in advance.

George

georgegwu avatar Feb 21 '13 20:02 georgegwu

This plugin is based on the EasyTracker Class which doesn't seem to have support for this.

But the Tracker Class supports this, so maybe you could try implementing that?

CitizenOfRome avatar Feb 22 '13 04:02 CitizenOfRome

After looking at the documentation link you provided, I realized why Google provides an EasyTracker. The setting has to be set at java class creation time, earlier than js being loaded.

Thanks for your quick response

On Thu, Feb 21, 2013 at 11:53 PM, Sathvik Ponangi [email protected]:

This plugin is based on the EasyTracker Classhttp://analytics-api-samples.googlecode.com/svn/trunk/javadocs/com/google/android/apps/analytics/easytracking/EasyTracker.htmlwhich doesn't seem to have support for this.

But the Tracker Classhttps://developers.google.com/analytics/devguides/collection/android/v2/advancedsupports this, so maybe you could try implementing that?

— Reply to this email directly or view it on GitHubhttps://github.com/DoersGuild/Cordova-Android-Analytics/issues/5#issuecomment-13928256.

georgegwu avatar Feb 22 '13 09:02 georgegwu