while using developer mode, I installed analytics
and @analytics/segment
directly from Wix’s npm modules. From my understanding, these are all verified packages from Wix so they should work without issue. I tried to make an identify call from the velo script of the home page of my site but when i published and tested, the console shows the error
ReferenceError: window is not defined
at loaded (analytics-plugin-segment.browser.es.js:252:7)
i know that Velo is a sandboxed env and window is not available but it should at least be available to verified packages that Wix has made available to developers - otherwise why include it in your pacakges? I plan to have segment used in my business as a CDP so if I cannot make simple track calls from wix, this is a deal breaker and I’ll have to find another platform to use.