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

Update cmp_interaction_tracking.js #185

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Update cmp_interaction_tracking.js #185

wants to merge 5 commits into from

Conversation

nilbob
Copy link
Contributor

@nilbob nilbob commented Sep 28, 2023

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)

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'))))
Copy link
Contributor

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) {
Copy link
Contributor

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.

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.

3 participants