You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've used this library in a recent project and it worked well. A few comments though:
If the setAccount function is used on every page, this is causing an issue, because the gainit() function is called everytime and it re-initialises a new visit. So the fix is either to set the account once on the first page, or to remove the gainit() and do it elsewhere.
Also, the logic around the utm cookie is slightly wrong. The cookie should hold a time stamp for the first visit ever, the last visit, and the start of the current visit. From what I saw, the last visit time stamp doesn't work and remains set to the first ever visit. SSome simple logic need to be added to remember in local storage the data of the last visit and pull that in on gainit()
I hope that makes sense. I'm happy to provide further evidence, as well as potential ideas for resolution.
Thanks for a great library
Greg
The text was updated successfully, but these errors were encountered:
Hi,
I've used this library in a recent project and it worked well. A few comments though:
I hope that makes sense. I'm happy to provide further evidence, as well as potential ideas for resolution.
Thanks for a great library
Greg
The text was updated successfully, but these errors were encountered: