Download

{{gdprScriptBlocker}} helper

Helper for generating a proper type attribute value in <script> tags.

Syntax:

<script type="{{ gdprScriptBlocker "analytical" }}"></script>

Above code will generate a script which will be activated only if user will allow scripts from cookies group named "analytical" in the GDPR popup.

Warning! You must place your scripts which uses this helper BEFORE {{{ publiiFooter }}} fragment in your theme code (usually in footer.hbs file). Because files placed after this fragment won't be handled properly by cookie banner settings.

What are you waiting for?

Start building your site today.

  1. 1 Download Publii
  2. 2 Write your content
  3. 3 Publish your site
Create website