> ## Content Index
> Fetch the complete content index at: https://getpublii.com/dev/llms.txt
> Use this file to discover other available public pages before exploring further.

# {{gdprScriptBlocker}} helper

- URL: https://getpublii.com/dev/gdprscriptblocker-helper/
- Published: 2018-05-17T09:55:02.510Z
- Updated: 2024-02-08T09:31:27.197Z
- Description: 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…
- Author: Tomasz Dziuda
- Tags: Helpers

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

Syntax:

```html
<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.
