Support » Plugin: GDPR Cookie Consent » How to read cookie variable

  • Resolved clemens3636

    (@clemens3636)


    The documentation states: “By default the cookie value will be set to ‘null’. If the user clicks ‘Accept’ button the value with be changed to ‘yes’. IF the user clicks on ‘Reject’ the value will be set to ‘no’. Your developer can check this value to set a cookie.”

    Does this mean that I can run code like:
    if (cookie == ‘no’) {window[‘ga-disable-UA-111797327-1’] = true};

    Please correct the variable name if needed, and the code, since I do not know this language.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to read cookie variable’ is closed to new replies.