Used by the following Containers:
Ways to call the GDPR consent form from the website itself
<!-- To be called when you want to show the GDPR popIn on demand -->
<script type="text/javascript" >
// To show Consent form Step 1
dataLayer.push({
'event': 'gdprShowConsentForm',
'eventCommand': 'gdprShowPopInStep1'});
</script>
<script type="text/javascript" >
// To show Consent form Step 2
dataLayer.push({
'event': 'gdprShowConsentForm',
'eventCommand': 'gdprShowPopInStep2'});
</script>
<!-- In your HTML to add to your buttons, that's the same principe :) -->
<a href="#" onclick="dataLayer.push({'event': 'gdprShowConsentForm', 'eventCommand': 'gdprShowPopInStep1'});">Show me the GDPR popIn Step 1</a>
<a href="#" onclick="dataLayer.push({'event': 'gdprShowConsentForm', 'eventCommand': 'gdprShowPopInStep2'});">Show me the GDPR popIn Step 2</a>
Add new comment