Custom scripts (like a Google Analytics tracking code) can be added to a Consent so the script will only be added to the head or footer of your HTML structure when consent is given.

1.) Create Script

Go to GDPR Consent -> Add New Script

2.) Add Script

Name your script and copy/paste the custom script (i.e. a Google tracking code). You can choose to place it in the header or footer (most scripts are okay to run in the footer). Click Publish to save.

3.) Assign the Script to your Consent

Add a new Consent (or Edit an existing one) to assign this script to (for example a Consent called ‘Website Statistics’):

Scroll down and assign your added Script to this Consent:

Save your consent.

4.) Check it out on the frontend

Now your script will only be executed when explicit consent is given by your visitor: