Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unique Anon ID generator #19

Open
jesiah-hackinglife opened this issue Apr 12, 2019 · 2 comments
Open

Unique Anon ID generator #19

jesiah-hackinglife opened this issue Apr 12, 2019 · 2 comments

Comments

@jesiah-hackinglife
Copy link

A component for Analytics that generates a unique cookie and sends it to a data layer

-Set a unique cookie id:
Version 1.0:
-For desktop/android browsers use the browser-created client id: https://developer.mozilla.org/en-US/docs/Web/API/Client/id
-For iOS Safari users use Advertising ID (can be reset by user, but that isn't a common action) https://stackoverflow.com/questions/25502089/how-to-get-advertising-identifier-on-ios

Version 2.0:
-Push this ID into a table, ideally BigQuery or somewhere that has a native transfer to BigQuery
-Optionally, it would be great to update that table with the number of unique hits/sessions from that ID or the initial timestamp of the first load
-Push the ID into the data layer as a variable (can name "anonid" or something similar)
-Once we get to this step, I can provide exact syntax (edited)

@aamorozov
Copy link
Contributor

Do they have a preference on how we should name that cookie @jesiah-hackinglife ?

@jesiah-hackinglife
Copy link
Author

@aamorozov nope something like hz-anon-id

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants