Skip to content

Commit

Permalink
Merge pull request #21 from amplitude/development
Browse files Browse the repository at this point in the history
Include referrer when empty
  • Loading branch information
curtisliu committed Aug 14, 2015
2 parents afe35a8 + feaa9c6 commit 74bb659
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion amplitude.js
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ Amplitude.prototype._logEvent = function(eventType, eventProperties, apiProperti
object.merge(userProperties, this._utmProperties);

// Add referral info onto the user properties
if (this.options.includeReferrer && this._getReferrer()) {
if (this.options.includeReferrer) {
object.merge(userProperties, {
'referrer': this._getReferrer(),
'referring_domain': this._getReferringDomain()
Expand Down
Loading

0 comments on commit 74bb659

Please sign in to comment.