Skip to content
This repository was archived by the owner on Nov 27, 2019. It is now read-only.

Conversation

@hankim813
Copy link
Contributor

sends anonymousId in addition to userId as properties for .page() and .track() calls

@sperand-io @brennan

  • docs

@codecov-io
Copy link

codecov-io commented Aug 1, 2016

Current coverage is 100% (diff: 100%)

Merging #5 into master will not change coverage

@@           master    #5   diff @@
===================================
  Files           1     1          
  Lines          24    26     +2   
  Methods         0     0          
  Messages        0     0          
  Branches        0     0          
===================================
+ Hits           24    26     +2   
  Misses          0     0          
  Partials        0     0          

Powered by Codecov. Last update e338f16...3303384

lib/index.js Outdated
var userId = this.analytics.user().id();
var anonymousId = this.analytics.user().anonymousId();
if (userId) props.userId = userId;
if (anonymousId) props.anonymousId = anonymousId;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

feels like we should call this segmentAnonymousId or something namespaced like that. Whereas userId is customer-dictated, this is a value we create and populate. thoughts @f2prateek?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point. I like the segmentAnonymousId idea.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SGTM

@hankim813 hankim813 merged commit ff59217 into master Aug 1, 2016
@hankim813 hankim813 deleted the add-anonymousId branch August 1, 2016 20:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants