Manual Integration with Scripts (Pausing & Executing) - for US (GPP national) regulation

This article is intended for those who use US (GPP national) regulation.

Modification Example for inline scripts: When adding Clickio CMP to your site, it's crucial to ensure that all vendor tags comply with user Opt-out choice, thereby safeguarding privacy and adhering to US requirements.

Google ad tags automatically account for GPP signals without requiring any pausing or manual intervention.

However, other tags may not automatically handle GPP signals, which can lead to compliance violations. To prevent such issues, modify these tags as described below.

Pausing tags for users with Opt-out signal

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

  3. Add the data-clickio-cmp-usnat-opted-out attribute with value 0

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" data-clickio-cmp-usnat-opted-out="0">
	[[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" data-clickio-cmp-usnat-opted-out="0"></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" and add the data-clickio-cmp-usnat-opted-out="0" attribute. 
  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. 
  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.

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 location and opt-out 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-usnat-opted-out
This parameter controls script execution based on user's opt-out status:
- 0: Script will only execute for users who have not opted out
- 1: Script will only execute for users who have opted out

Example:

<script type="text/clickiocmp" data-clickio-cmp-usnat-opted-out="0">
    console.log('This will only run for users who have not opted out');
</script>
data-clickio-cmp-usnat

This parameter helps distinguish between different US jurisdictions:
- 1: Script will only execute for users from applicable US states
- 0: Script will only execute for users from US but not from applicable states

Example:

<script type="text/clickiocmp" data-clickio-cmp-usnat="1">
	console.log('This will only run for users from applicable US states');
</script>

You can combine these parameters to create more specific targeting:

<script type="text/clickiocmp" data-clickio-cmp-usnat="1" data-clickio-cmp-usnat-opted-out="0">
	console.log('This will only run for users from applicable US states who have not opted out');
</script>