Skip to main content

Technical Overview

CMP API

Clickio CMP supports two GDPR scopes: 

  • EEA/UK Only
  • All Users (Global)

1. User is the scope chosen for GDPR

  • Code checks for existing consent:
  • No consent
    • Ads codes are paused (AdManager, AdSense, Clickio)
    • __tcfapi initializes
    • consentCallback is triggered and clickioConsentEvent is dispatched with state: -1
    • Consent popup UI is shown
    • User makes choice
    • __tcfapi state updated
    • Consent information is stored in the browser
    • Ads codes are unpaused:
      • Clickio

        By default, choosing Reject all releases the Clickio 360 ad code waiting for a decision. Clickio 360 then uses the visitor’s consent signals to determine which ad partners it can call.

        To keep the 360 header code from loading after a refusal, add a consent check to your existing 360 script tag. For example, in TCF mode you can require consent for Purpose 1 (storing or accessing information on a device). Keep the src URL from your own header code and keep async. Apply this change only to the 360 tag.

        <script async type="text/clickiocmp"
                data-clickio-cmp-purpose-consent="1"
                src="https://s.clickiocdn.com/t/123456/360_light.js"></script>

        With this example, the CMP loads the script only when the visitor has granted Purpose 1 consent. For other purpose or vendor checks, see Manual Integration with Scripts (TCF mode).

      • AdManager, AdSense (if a user has granted Google consent)
      • Tags with type="text/clickiocmp" in accordance with their parameters
    • consentCallback is triggered and clickioConsentEvent is dispatched with the state: 1
  • Existing consent
    • __tcfapi initializes
    • Ads codes are paused (AdManager, AdSense) if the user has not granted Google consent
    • Tags with type="text/clickiocmp" are unpaused in accordance with their parameters
    • If consent information needs an update - popup UI is shown (not ads blocking)
    • consentCallback is triggered and clickioConsentEvent is dispatched with the state: 1

2. User is out of scope chosen for GDPR

How to force the consent dialog to be shown

You can use the following code to forcefully show the consent UI. You do not need to do this unless you are absolutely sure it`s mandatory, otherwise Clickio Consent shows the popup automatically when needed. Please note that it will only be shown to EEA users.

window.__lxG__consent__.showConsent();

Alternatively, you can add ?showConsent=1 parameter to the page URL, also applies only to EEA users.

How to prevent the consent dialog from showing

To disable the Consent dialog for all users, place the following codes on your page:

<script>
 	window.__lxG__consent__ = window.__lxG__consent__ || {};
	window.__lxG__consent__.disableConsentDialog = true;
</script>

Alternatively, you can append ?showConsent=no to the page URL. For instance, this can be applied to the Privacy Policy URL to prevent the dialog from appearing.

How to disable automatic calls to Google ad tags

If you don't want the CMP to automatically unpause Ad Manager and AdSense tags, add the following code before the main CMP tag.
<script>
      window.disableGoogleLoadControl = true;
</script>