_satellite.readCookie
This function, along with its siblings, _satellite.setCookie and _satellite.removeCookie, were provided in DTM to perform basic client-side cookie operations.
Remedy:
This, and the others mentioned above still exist in Launch, but have been deprecated and will be removed at some point int the future. The best guidance it to replace them with the new set of cookie utility calls in Launch.
1
//Crusty old DTM way
2
_satellite.readCookie("favoriteThing"); //might return "kittens"
3
4
//Shiny new Launch way
5
_satellite.cookie.get("favoriteThing"); //might return "kittens"
6
Copied!
Under the covers, Launch uses the npm js-cookie package. You can find extended usage here: https://www.npmjs.com/package/js-cookie#basic-usage
Last modified 1yr ago
Copy link