Manual Integration with Scripts (Pausing & Executing) - for non-TCF mode

This article is intended for those who use non-TCF Mode.

Modification Example for inline scripts: When adding Clickio CMP to your site, it’s crucial to ensure that all vendor tags comply with user consent choices, thereby safeguarding privacy and adhering to GDPR requirements.

Clickio CMP automatically pauses Google ad tags until users make their consent choices, and then activates them based on those choices.

However, other tags may not support Google Consent Mode, which can lead to GDPR violations. To prevent such issues, modify these tags as described below.

Pausing Tags Until User Choice Is Made

  1. Update the script type to text/clickiocmp.
  2. Add the async attribute to the script tags that have a src attribute.

Modification Example for inline scripts:

Change your script from its original state:

<script type="text/javascript">
	[[CODE]]
</script>

To a choice-aware configuration:

<script type="text/clickiocmp">
	[[CODE]]
</script>

Modification Example for scripts scripts with a src attribute:

Change your script from its original state:

<script type="text/javascript" src="https://yoursite.com/script.js"></script>

To a choice-aware configuration:

<script async type="text/clickiocmp" src="https://yoursite.com/script.js"></script>
If you use Google Tag Manager
  1. Open Google Tag Manager and Navigate to Your Tag: Log in to your GTM account, go to the "Tags" section, and select the tag you need to modify.

  2. Enter Tag Configuration: Click on the tag to open its configuration settings. You'll find an HTML content box where you can edit the script.

  3. Modify the Script
    • According previous example: In the HTML content box, adjust your script tag type attribute to type="text/clickiocmp"
    • (Optional) Add additional consent checks to fine-tune script execution conditions based on user consent choices.
  4. Expand the Advanced settings > Consent Settings section: select option "No additional consent required"
  5. Scroll to the Triggering Section: At the bottom of the tag configuration page, you'll find the "Triggering" section. Click on it to edit the tag's trigger settings. From the list of available triggers, select the "All Pages > Page View" trigger.
  6. Save Your Tag Configuration: After adding and configuring the trigger, save your changes to the tag.
  7. Test the Modified Tag: Use GTM's preview mode to test the modified tag thoroughly. This step is crucial to ensure that the tag behaves as expected under various consent scenarios.
  8. Publish Your Changes: Once satisfied with the setup and the outcome of your tests, publish the changes in GTM to apply the modifications to your live website.

gtm_tag_example.png

Additional Parameters

Clickio CMP allows for the fine-tuning of script execution conditions through the use of additional optional parameters. These parameters enable website owners to tailor the behavior of their scripts based on various criteria, such as the user's GDPR applicability, specific consents given, and even the user's subscription or login status. 

When using multiple parameters, they work together under an AND condition. This means the script will only execute if all specified conditions are met.

data-clickio-cmp-gdpr

Checks whether the user is in the GDPR scope that is chosen in the Consent settings. It can be either EEA/UK users, or All users (global scope).

Example:

<script type="text/clickiocmp" data-clickio-cmp-gdpr="1">
	console.log('GDPR user');
</script>

<script type="text/clickiocmp" data-clickio-cmp-gdpr="0">
	console.log('Non-GDPR user');
</script>
data-clickio-cmp-nontcf-purpose-consent

Can be an integer or a comma separated list of integers of IDs of non-TCF purposes for which consent is mandatory for script execution.

Example:

<script type="text/clickiocmp" data-clickio-cmp-nontcf-purpose-consent="2">
	console.log('user approved Website Analytics (id:2)');
</script>