Documentation
Feedback
Guides
VTEX IO Apps

VTEX IO Apps
Pixel Apps
Cookie Script
Official extension
Version: 0.1.10
Latest version: 0.1.10

{"base64":"  ","img":{"width":110,"height":20,"type":"svg","mime":"image/svg+xml","wUnits":"px","hUnits":"px","url":"https://img.shields.io/badge/all_contributors-0-orange.svg?style=flat-square"}}

Cookie Script app brings the solution to make your website cookies comply with GDPR and CCPA.

{"base64":"  ","img":{"width":320,"height":359,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":35149,"url":"https://user-images.githubusercontent.com/284515/86488877-d35b0f80-bd38-11ea-95f9-7610985e19d5.png"}}

Learn how to install and configure the app on the following sections.

It is possible to install the Cookie Script in your store either by using App Store or the VTEX IO CLI.

Using VTEX App Store

  1. Access the Apps section in your account's admin page and look for the Cookie Script box;
  2. Then, click on the Install button;
  3. You'll see a warning message about needing to enter the necessary configurations. Scroll down and type in your Cookie Script ID.
  4. Click on Save.

Using VTEX IO Toolbelt

  1. In your terminal, install the vtex.cookie-script@0.x app.
  2. To confirm that the app has now been installed, run in your terminal vtex ls and check the installed apps' list.
  3. Access the Apps section in your account's admin page and look for the Cookie Script box. Once you find it, click on it.
  4. Fill in the Cookie Script ID field.
  5. Click on Save.

After installing the app, you must create an account in Cookie Script to make the app work on your store. Follow the steps on the Cookie Script Configuration section to create an account and configure the app.

Once you have installed the app, you need to create an account in Cookie Script to be able to configure the app.

You must follow the steps described in this section to guarantee the cookies will work. Otherwise, they will break the purchases flow from your store.

  1. Go to the Cookie Script page and create your account.
  2. After creating your account, go to the Dashboard tab and click on Add website.

{"base64":"  ","img":{"width":1856,"height":851,"type":"gif","mime":"image/gif","wUnits":"px","hUnits":"px","length":1164180,"url":"https://user-images.githubusercontent.com/67270558/133613562-3248fadc-e6a0-4859-8b05-5167085e4242.gif"}}

  1. Once you have added your website, go to the Cookie scanner tab and run a scan.
  2. After the scan is complete, go to Cookies tab and make sure the following cookies are categorized as Stricly Necessary: ASPXAUTH, checkout.vtex.com, CookieConsent, device, vtex_segment, vtex_session, VtexFingerPrint, VtexRCMacIdv7, VtexRCRequestCounter, VtexRCSessionIdv7 and VtexWorkspace.
See also
VTEX App Store
VTEX IO Apps