Use Session Storage to Access Session Variable created by Custom Javascript

Hello all,
I’ve set a Session variable with custom Javascript code -
and I’ve attached this code, to the HTML Head section of one of my pages, using the Tracking & Analytics feature.
I’ve used Developer Tools to confirm that the Session name/value pair has been set -
however, I’m unable to access that Session Variable using Wix code.
Wix code seems to only be able to set/get session variables that are part of a “special” Session Object named " platform_app_…"
Does anyone know how to access Session variables set by custom Javascript code used in the HTML Head section?
Thanks.

Hi,

Corvid and the tracking codes that you add in the Tracking & Analytics section of the Dashboard are completely separate. You cannot call any code added to the header via Tracking & Analytics on your page/site code using Corvid.

Please read the wix-storage API reference for more information on setting/getting items from the storage.

Hope this helps!

Dara | Corvid Team

Thank you for responding.

I do understand that they are different, but what is confusing is that Session/Local/Cookies are supposed to be “global” to the browser/device.

Therefore, any variables set within them should be accessible, especially by the originating domain.

Corvid though, seems to “encapsulate” its Session/Local variables in an ‘object’ within the browser, and consequently makes them not generally accessible, even to code that is in the Tracking & Analytics section.

@bsjl3891 Hey,

Your feedback is highly appreciated and has been forwarded to the relevant department. At Wix, we are constantly working to improve and update existing features and introduce new ones.

The latest Corvid updates can be found here and the current Corvid Wishlist here .

See the current features in development here or request your own here .

Thanks!

Dara | Corvid Team