Skip to content

Commit 2ebb943

Browse files
committed
cleaning up
1 parent 8e9b533 commit 2ebb943

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
* Add support for passing callback function to identify.
44
* Add support for prepend user property operation.
5-
* Add support for keeping sessions and event metadata in sync across multiple windows/tabs.
5+
* Keeping sessions and event metadata in sync across multiple windows/tabs.
66

77
### 2.9.1 (March 6, 2016)
88

amplitude.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,7 @@ Amplitude.prototype._logEvent = function(eventType, eventProperties, apiProperti
690690
this._sessionId = eventTime;
691691
}
692692
this._lastEventTime = eventTime;
693+
_saveCookieData(this);
693694

694695
userProperties = userProperties || {};
695696
// Only add utm properties to user properties for events
@@ -724,8 +725,6 @@ Amplitude.prototype._logEvent = function(eventType, eventProperties, apiProperti
724725
// country: null
725726
};
726727

727-
_saveCookieData(this);
728-
729728
if (eventType === IDENTIFY_EVENT) {
730729
this._unsentIdentifys.push(event);
731730
this._limitEventsQueued(this._unsentIdentifys);

amplitude.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/amplitude.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,7 @@ Amplitude.prototype._logEvent = function(eventType, eventProperties, apiProperti
584584
this._sessionId = eventTime;
585585
}
586586
this._lastEventTime = eventTime;
587+
_saveCookieData(this);
587588

588589
userProperties = userProperties || {};
589590
// Only add utm properties to user properties for events
@@ -618,8 +619,6 @@ Amplitude.prototype._logEvent = function(eventType, eventProperties, apiProperti
618619
// country: null
619620
};
620621

621-
_saveCookieData(this);
622-
623622
if (eventType === IDENTIFY_EVENT) {
624623
this._unsentIdentifys.push(event);
625624
this._limitEventsQueued(this._unsentIdentifys);

0 commit comments

Comments
 (0)