objectiv-analytics icon indicating copy to clipboard operation
objectiv-analytics copied to clipboard

Bug Report: duplicate HttpContexts on reset & accept of cookies

Open ivarpruijn opened this issue 3 years ago • 1 comments

Describe the bug When you reset the cookie consent, and then accept cookies again, all Events send duplicate HttpContexts.

Steps To Reproduce Steps to reproduce the behavior on our website:

  1. In incognito mode (or with cleared cookies), go to the Cookies page.
  2. Accept cookies.
  3. Reset your cookie preferences.
  4. Accept cookies again.
  5. See error in console about duplicate HttpContext for the SuccessEvent.
  6. Try clicking any tracked element and see the same error for every Event.

Expected behavior No duplicate HttpContext is sent.

Screenshots or Logs image

image

Additional context See e2e test here: https://github.com/objectiv/objectiv.io/pull/540

ivarpruijn avatar Aug 31 '22 10:08 ivarpruijn

This is fixed in the new experimental anonymous-mode tracker. Will give it some prio (experimental PR: https://github.com/objectiv/objectiv-analytics/pull/1164)

sdirosa avatar Sep 05 '22 07:09 sdirosa

@sdirosa Think this is now fixed, right?

ivarpruijn avatar Sep 30 '22 07:09 ivarpruijn

@ivarpruijn Yes, but not live yet. This is part of v0.0.26 currently sitting in the next branch.

sdirosa avatar Oct 02 '22 21:10 sdirosa

Also fixed I think

ivarpruijn avatar Oct 17 '22 21:10 ivarpruijn