Skip to content
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

Merged
merged 2 commits into from Dec 18, 2023

Conversation

emortong
Copy link
Contributor

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

@emortong emortong requested a review from a team as a code owner December 15, 2023 12:41
Nazehs
Nazehs previously approved these changes Dec 15, 2023
Copy link
Contributor

@Nazehs Nazehs left a 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')
Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor

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 :)

Copy link
Contributor

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

GlynnPhillips
GlynnPhillips previously approved these changes Dec 18, 2023
@emortong emortong merged commit 88332ce into main Dec 18, 2023
8 checks passed
@emortong emortong deleted the ACC-2850-only-display-if-cookie-consented branch December 18, 2023 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants