In order to be GDPR-compliant, you need to conditionally load third-party scripts once users have given their consent.
In this section, weâll explore the various ways to block those scripts from running, until the user has given consent.
The plugin will automatically:
script
document.createElement()
If your theme/plugin contains a <script> tag you can control, you have to:
<script>
type
"text/plain"
data-cookiecategory
"analytics"
"targeting"
"preferences"
<script type="text/plain" data-cookiecategory="analytics" src="analytics.js" defer></script> <script type="text/plain" data-cookiecategory="targeting"> // Targeting JavaScript </script>
There was an error while loading. Please reload this page.