Skip to content

Conversation

@djih
Copy link
Member

@djih djih commented Nov 16, 2015

Using session storage to track initial referrer and persist for duration of user session. Note if sessionStorage not available (Chrome < 5, FF < 2, IE < 8, Safari < 4), then the initial_referrer and initial_referring_domains will default to empty string.

@curtisliu
Copy link
Member

I think we want referrer to be the referrer for the session, initial_referrer to be a set_once user property

@djih
Copy link
Member Author

djih commented Nov 25, 2015

Initial referrer is saved via setOnce, and referrer is only set once per session. Since the server propagates user properties, we actually don't even need to send the referrer information with every event. We just send one initial identify call when initializing the SDK. Tested on local server.

PTAL @curtisliu

djih added a commit that referenced this pull request Dec 15, 2015
@djih djih merged commit 5207d22 into master Dec 15, 2015
@djih djih deleted the initial_referrer branch December 15, 2015 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants