-
Notifications
You must be signed in to change notification settings - Fork 2
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
Update cmp_interaction_tracking.js #185
base: master
Are you sure you want to change the base?
Conversation
TRAC-1905 (unified SP script update) TRAC-1787 (Campaign issue) TRAC-SpoBi Relaunch to Lean
if (CONSENT_MESSAGE_EVENTS[eventType]) { | ||
window.utag.data['cmp_events'] = CONSENT_MESSAGE_EVENTS[eventType]; | ||
exportedFunctions.sendLinkEvent(CONSENT_MESSAGE_EVENTS[eventType]); | ||
|
||
if (eventType === 11 || eventType === 13) { | ||
if ((eventType === 11 && (window.utag.data['dom.domain'] && window.utag.data['dom.domain'].includes('sportbild.bild.de'))) || (eventType === 13 && (window.utag.data['dom.domain'] && window.utag.data['dom.domain'].includes('sportbild.bild.de')))) |
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.
if ((eventType === 11 || eventType === 13) && window.utag.data['dom.domain'] && window.utag.data['dom.domain'].includes('sportbild.bild.de'))
@@ -153,16 +158,20 @@ | |||
} | |||
} | |||
|
|||
function onMessageChoiceSelect(id, eventType) { | |||
function onMessageChoiceSelect(messageType, id, eventType) { |
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.
Is the messageType added here used somewhere in the function? if yes, we would need to add it in our tests as well.
TRAC-1905 (unified SP script update)
TRAC-1787 (Campaign issue)
TRAC-SpoBi Relaunch to Lean (Issue with Subdomain on BILD regarding cmp "before" or "after" consent)