Script loading from HTML
load scripts after accepting
load script sources If you want to load JavaScript resources after the Cookie is accepted you can use this snippet
<script data-ignore="1" data-cookieconsent="statistics" type="text/plain" data-src="{YOUR_LINK_TO_JS}"></script>
Copied!
load inline script If you want to load Inline JavaScript after the Cookie is accepted use this snippet.
<script data-ignore="1" data-cookieconsent="statistics" type="text/plain">
{YOUT_DYN_JS_CODE}
</script>
Copied!
The data-ignore="1" attribute is to cover the Scriptmerger engine to not combine these parts.
Checkbox mode
Your customer can choose what types of scripts/cookies he wants to allow. These 2 types are possible and handled by the consent:
statistics
- data-cookieconsent
- statistics
<script data-cookieconsent="statistics" type="text/plain" data-ignore="1">
Copied!
marketing
- data-cookieconsent
- marketing
<script data-cookieconsent="marketing" type="text/plain" data-ignore="1">
Copied!