Skip to content
This repository has been archived by the owner on Oct 29, 2022. It is now read-only.

How to include DEVICE_ID to track devices through different sessions? #63

Open
jpablogn opened this issue Dec 31, 2014 · 1 comment
Open
Assignees
Milestone

Comments

@jpablogn
Copy link

Hello,

I am using your ANE for tracking "pages" and "events" in Google Analytics:

// pages
tracker.buildView("/home").track();

// events
tracker.buildEvent("click", "play").track();

I would like to unify sessions of the same device by using a device identifier (DEVICE_ID):
https://support.google.com/analytics/answer/3123662

Google Analytics ask you to use this piece of code in order to provide an user id from devices:
ga(‘set’, ‘&uid’, {{USER_ID}});

Right now I am using following code but I do not know how to include DEVICE_ID:

    var analytics:Analytics = Analytics.getInstance();
    var tracker:ITracker = analytics.getTracker(ANALYTICS_ID);
    tracker.buildEvent("click", "play").track();

How can I include DEVICE_ID?

Thank you.
J. Pablo.

@alebianco
Copy link
Owner

Hi Pablo,
It's not possible at the moment but it's a feature planned for the next release.

@alebianco alebianco added this to the v3 milestone Jan 3, 2015
@alebianco alebianco self-assigned this Jan 3, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants