Menu
Feedback
Start here
Tutorials


Tutorials
Integration with monitoring tools
Changing a Cookie
1 min read

Some cookies are generated directly by the VTEX Database. These you cannot change. The cookies generate externally and entered via JavaScript such as Google Tag Manager can be edited. Editing can be done in JavaScript, as in the generic case below where the time of validity is defined.

document.cookie = "username=John Doe; expires=Thu, 18 Dec 2013 12:00:00 UTC; path=/";

You must remember that VTEX will not recognize cookies with special characters. Whenever this happens, the user will not be able to load another page on the store (blank screen).

Contributors
1
Photo of the contributor
+ 1 contributors
Was this helpful?
Yes
No
Suggest Edits (GitHub)
Rounding Rules
« Previous
Checking the ownership of a VTEX store on Google Search Console
Next »
Contributors
1
Photo of the contributor
+ 1 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX Community
Join our community
Request VTEX support
For personalized assistance, contact our experts
Open a support ticket
GitHubDeveloper PortalCommunityFeedback