Manual script block

To show the banner on the website and manually indicate the scripts to be blocked just follow these steps:

Step 1: Inclusion of the script

To show the cookie banner on your website, copy the code below and paste it first after the tag  of your pages
<script src="https://bnr.elmobot.eu/_CODICE_PORTALE_/it.js"></script>
To show the cookie banner in English, copy this code instead
<script src="https://bnr.elmobot.eu/_CODICE_PORTALE_/en.js"></script>

If it is the first time generating the banner, or if you have edited the banner details, you have to click on Update banner to save these changes.

IMPORTANT: instead of CODICE_PORTALE  you have to enter the Elmo code of the site that you find on the page Cookie Banner in the "Configure” panel; every website has its specific code.

Step 2: Cookie blocking configuration

In addition to showing a cookie banner, you must also block cookies before providing consent. By adding a few attributes to the code of the scripts that install cookies, you will allow Elmo to prevent their execution when consent has not yet been given.

For <script> tags that generate statistical cookies, you must add (or replace, if already present) the type attribute with type="text/plain" and add the data-cookiecategory="analytics" attribute.
For all other HTML tags that generate statistical cookies, you must place them inside a block
<script type="text/html" data-cookiecategory="analytics">...</script>
For <script> tags that generate marketing cookies, you must add (or replace, if already present) the type attribute with type="text/plain" and add the data-cookiecategory="marketing" attribute.
For all other HTML tags that generate marketing cookies, you must place them inside a block
<script type="text/html" data-cookiecategory="marketing">...</script>
For <script> tags that generate non-EU statistical cookies, you must add (or replace, if already present) the type attribute with type="text/plain" and add the data-cookiecategory="foreign-analytics" attribute.
For all other HTML tags that generate non-EU statistical cookies, you must place them inside a block
<script type="text/html" data-cookiecategory="foreign-analytics">...</script>
For <script> tags that generate non-EU marketing cookies, you must add (or replace, if already present) the type attribute with type="text/plain" and add the data-cookiecategory="foreign-marketing" attribute.
For all other HTML tags that generate non-EU marketing cookies, you must place them inside a block
<script type="text/html" data-cookiecategory="foreign-marketing">...</script>
The <noscript> tags are not consensual and should not be used. Otherwise, any information retrieved through these technologies can only be used after anonymisation and possible indication in the Information Notice of the third party collecting them.

Example

Before:
<body>
    ...
    <!-- Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=UA-XXXXXXXXXXX"></script>
    <script type="text/javascript">
        window.dataLayer = window.dataLayer || [];
        function gtag(){dataLayer.push(arguments);}
        gtag('js', new Date());

        gtag('config', 'UA-XXXXXXXXXXX');
    </script>
    ...
    <!-- Marketing -->
    <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-XXXXXXXXX"></script>
    <iframe width="560" height="315" src="https://www.youtube.com/embed/XXXXXXXXXXX" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
    ...
    <!-- <noscript> -->
    <noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=XXXXXXX&ev=PageView&noscript=1"/></noscript>
    ...
</body>

After:
<body>
    ...
    <!-- Analytics -->
    <script type="text/plain" data-cookiecategory="analytics" async src="https://www.googletagmanager.com/gtag/js?id=UA-XXXXXXXXXXX"></script>
    <script type="text/plain" data-cookiecategory="analytics">
        window.dataLayer = window.dataLayer || [];
        function gtag(){dataLayer.push(arguments);}
        gtag('js', new Date());

        gtag('config', 'UA-XXXXXXXXXXX');
    </script>
    ...
    <!-- Marketing -->
    <script type="text/plain" data-cookiecategory="marketing" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-XXXXXXXXX"></script>
    <script type="text/html" data-cookiecategory="marketing">
        <iframe width="560" height="315" src="https://www.youtube.com/embed/XXXXXXXXXXX" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
    </script>
    ...
    <!-- <noscript> -->
    <!-- Removed the <noscript> tag -->
    ...
    <script src="https://bnr.elmobot.eu/_CODICE_PORTALE_/it.js"></script>
</body>