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

do not send page view or event if we know it is a pur user #274

Closed
wants to merge 3 commits into from

Conversation

nickyanalytics
Copy link
Contributor

No description provided.

@nickyanalytics nickyanalytics changed the title do not send page view or event if we know it is a our user do not send page view or event if we know it is a pur user Feb 20, 2025
@@ -212,6 +215,10 @@
window.utag.data['cmp_onConsentReady'] = messageType.eventStatus;
}

function notPurUser() {
return typeof window.utag.data.user_hasPurSubscription2 == 'undefined' || window.utag.data.user_hasPurSubscription2 && window.utag.data.user_hasPurSubscription2 == 'false';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return typeof window.utag.data.user_hasPurSubscription2 == 'undefined' || window.utag.data.user_hasPurSubscription2 && window.utag.data.user_hasPurSubscription2 == 'false';

Similar to other PR:
return !!window.utag.data.user_hasPurSubscription2

This will cover all negative cases and return false for them.

@nickyanalytics nickyanalytics deleted the TRAC-2218_no_first_pv_when_pur branch March 3, 2025 15:36
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.

2 participants