by Overwolf
  • Nitro
  • Publishers
    PUBLISHERS
    How it Works Documentation Newsletter
  • Advertisers
    ADVERTISERS
    Advertisers Offering Top Sites
  • Resources
    RESOURCES
    Ad Unit Demos Blog & News Press Releases FAQ Case Studies
  • NitroDex
Log in

Ad Publishers

  • Special Ad Formats
  • Installing the ad script on your page
  • Creating an ad placement
  • Setting up your ads.txt file
  • Creating a Playlist and Adding Content
  • US Privacy law compliance steps
  • Creating a Video Placement
  • Ad script lifecycle events
  • Detecting ad-blocking users
  • Placement Configuration API

Data and Privacy

  • Passing Hashed Emails
  • Support for Google Analytics and Consent Mode
  • Adding custom consents or disclosures
  • Creating a link for the user to manage their consents

FAQs and Demos

  • FAQ
  • Ad Layout Best Practices
  • Nitro Glossary
  • Electron Apps and NitroPay
  • NitroPay
  • Docs
  • Data and Privacy
  • Adding custom consents or disclosures

Adding custom consents or disclosures

NitroPay is bundled with our in-house IAB accredited Consent Management Platform (CMP) to collect privacy signals from users in the EU. The purposes and features are pre-selected for you in order to disclose everything necessary for online advertising.

We understand that some sites have their own data disclosures separate from this CMP. In an effort to reduce UI clutter from having multiple independent data processing popups at the same time, we’ve created an area within the CMP for our publishers (see: “Other disclosures” in fig. below)

Once your disclosures have been added in the panel to your site(s), you will likely want to access whether the current user has consented or not during their session at some point. This data is made available through a command added to the TCFv2 api.

argument nametypeexpected valuedescription
commandstring‘hasCustomConsent’
versionint2The current version of the TCF framework
callbackfunctionfunction(result: boolean)The first argument will be true if the user has consented
consent idintThe id of the custom consent you’re checking

Here’s a basic example of it in action, where we created a custom consent with ID 3 and want to see if the user has opted into it.

<script type="text/javascript">
if (typeof window['__tcfapi'] == 'function') {
    __tcfapi('hasCustomConsent', 2, (res) => {
        if (res) {
            // do something
        }
    }, 3);
}
</script>

Note: It’s important to check that the TCF API function exists before checking for consents (as demonstrated above). The API may not exist due to ad blockers, or the user being in a region outside of the EU.

Alternatively (if allowed by the user) consents are available as a cookie named ncmp-cc containing all of the custom consent IDs that the user enabled as a comma delimited string.

What are your Feelings
Share This Article :
  • Facebook
  • Twitter
  • LinkedIn
  • Pinterest
Updated on January 25, 2023
Support for Google Analytics and Consent ModeCreating a link for the user to manage their consents
We use cookies to improve your experience and increase the relevancy of content when using Nitro. Our cookies are used for analytics, optimization, and advertising operations. Learn more.Got it
  • Publishers

    • How it works
    • Documentation
    • Newsletter
  • Advertisers

    • Advertisers Offering
    • Top Sites
  • Resources

    • Ad Unit Demos
    • Blog & News
    • Press Releases
    • FAQ
    • Case Studies
  • Companions

    • Overwolf
    • CurseForge
    • Tebex
  • Nitrodex

© Overwolf. All rights reserved.
  • Terms of Service
  • Privacy Policy