is it possible to 'identify' a user with this library?
andrewljohnson opened this issue · comments
I was wondering if it's possible to do 'identify' similar to how you'd do it on iOS with this library:
id<GAITracker> tracker = [[GAI sharedInstance] defaultTracker];
[tracker set:kGAIUserId value:userId];
Any help is much appreciated!
@andrewljohnson The tracker's constructor accepts a user_id
parameter.
Example:
from UniversalAnalytics import Tracker
tracker = Tracker.create(ga_property_id, user_id="<user ident>")
(Though I'm the original author of this code, I'm no longer a maintainer. @LukaData may be the best contact going forward.)
Thanks, i did eventually figure that out :)