New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ACC-2850 only display if cookie consented #132
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
index.js
Outdated
@@ -176,62 +176,65 @@ module.exports.init = (appInfo = {}) => { | |||
} = setAppInfoDefault(appInfo); | |||
let surveyData; | |||
let feedbackOverlay; | |||
|
|||
const cookieConsent = document.cookie.includes('FTCookieConsentGDPR=true') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question: Have we checked with the Ads & Privacy team to ensure that this is the correct way to check cookie consent?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@GlynnPhillips I did it this way based on how other teams were checking for this cookie, but I can ask them to make sure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds reasonable then :) Thanks, just wanted to check because I know we spoke about a solution like this but I wasn't sure if my suggestions were good one :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Happy for you to go ahead
Ticket
We have been informed that the Compliance team said that we need to stop the display of this mechanism for those who do not opt in to cookies.
This PR only displays the feedback form if
FTCookieConsentGDPR=true