Closed girishdigrajkar closed 10 months ago
Validated and failed for the case when user selects 'social media cookies' and later on disables them. hence, reopening the defect.
When accepted Social Media cookies:
When accepted social media cookies initially and rejected later :
fbevents.js should not be triggered post the social media cookie is rejected.
Bydefault, when site is opened :
Validated and able to see the fbevents.js in case user turns on only performance cookies too thus, reopening the bug.
@Kannan-CM @Varunvolvo fbevents script is loaded twice, one when performance cookies are accepted because GTM loads it, and the other is when the social media cookies are accepted because the delayed.js from Franklin adds it, so I recommend removing the Pixel script from GTM and let be load only when social media cookies are accepted IMHO, WDYT?
If performance & social media are accepted --> pixel script should only be injected by GTM. If performance is not allowed & social media is allowed--> pixel script is injected by delayed.js
linked to #489
Retest Failed :
if performance is accepted but not Social media -> GTM loads anyway fbevents and I tried to removed it, so. what can we do then
IMO, it needs to be removed from GTM console. @Kannan-CM , is that possible?
I have removed the Facebook pixel from Firing through Google Tag Manager. Please validate and let me know if it looks okay on your end
Spillover because we needed to raise a new PR since we will have to remove the check, this will be reviewed but it means it will be a spillover.
Validated and able to get the below correct results and hence, this ticket could be marked to done status:
If Social media cookie is turned ON >> Fbevents.js should be available in Network tab irrespective of status of other cookies
If Social media cookie is turned OFF >> Fbevents.js should NOT be available in Network tab irrespective of status of other cookies
Steps:
Expected vs Actual: "fbevents.js" triggers although the user has turned off Social media cookies![image](https://github.com/hlxsites/vg-volvotrucks-us/assets/125972657/41d4c2b5-d6e3-4741-bdf1-08f3b52ae139)