Skip to content

Conversation

@djih
Copy link
Member

@djih djih commented Oct 26, 2016

There's a bug where during the initialization process, we load unsent events from localStorage into memory after we track the UTM params and referrer. What happens is that tracking the UTM params logs an event, and it will save the current in memory event queue to localStorage. However, since we haven't loaded the previous unsent events into memory yet, the queue will only contain the UTM param event, and it will overwrite the existing unsent events in localStorage. The solution is just to load the unsent events before handling the UTM params and referrer, or before any attempt to log an event really.

@djih djih merged commit 6c25d58 into master Oct 26, 2016
@djih djih deleted the save_utm_localstorage_patch branch October 26, 2016 19:13
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