utmz and utma variable scope results in incorrect data in subsequent uses
Opened this issue · 0 comments
rypalmer commented
Hi,
GoogleAnalyticsCookie.utmz and GoogleAnalyticsCookie.utma should not be in instance-wide variable scope. This results in incorrect data being returned if it is not overwritten during subsequent instances of this class. This error doesn't appear when the cookie contains the full complement of utm parameters, only when parameters are missing.
I use a modified version of this script and have fixed it there. Let me know if you'd like me to upload it into a Gist or make a pull request.
Kind regards,
Ryan Palmer