I am working on an analytics app, and using the new WebPixel api to track user events.
To track a single user, I use the browser.cookie.set(“mysessionid”, some_generated_id) function to set a session id if it is not already being set.
There is a issue with reading this value consistently, and I’ve tracked it down to the fact that the set cookies also have a path, which is set from whatever page the cookie was set on, making it impossible to read the cookie from a different path
( from chrome dev tool - two cookies with same name, different path. Depending on path of current page, my pixel code will read one or the other )
The api function does not enable me to set a path - so I am either using this wrong or there is a path variable needed in the api call. Any ideas?
