FAQ

Google supports Consent mode using gtag. As n3t Cookie Consent doesn't allow to store any cookies, until consent is given by user, it is not necessary to use it. However, if you want to apply it, you will need to add some extra scripts in n3t Cookie Consent plugin settings on page Expert.

First add an Initialize script

  window.dataLayer = window.dataLayer || [];  
  function gtag(){dataLayer.push(arguments);}
  gtag('consent', 'default', {
    'ad_storage': 'denied',
    'analytics_storage': 'denied',
    'wait_for_update': 1000    
  });

This script will run before any other script, so will predefine values for dataLayer. Just check code you use to integrate Google Analytics, that it use syntax like

  window.dataLayer = window.dataLayer || [];  

and not directly something like

  window.dataLayer = [];  

Second, add this script to Accept and Change events in n3t Cookie Consent settings

  gtag('consent', 'update', {
    'ad_storage': n3tConsentManager.allowedCategory('marketing') ? 'granted' : 'denied',
    'analytics_storage': n3tConsentManager.allowedCategory('analytics') ? 'granted' : 'denied',
  });

This will work, if you use predefined 'Functional' and 'Marketing' blocks. If you use custom blocks, just replace the 'marketing' and 'analytics' keywords with an aliases of your blocks.

Sklik conversion code

If you use Sklik conversion code you should modify its code to add consent info. Using n3t Cookie Consent this would look like something like this:

<script type="text/javascript" src="https://c.seznam.cz/js/rc.js"></script>
<script>
    var conversionConf = {
        id: 10000000,
        value: 199.9, 
        consent: n3tConsentManager.allowedCategory('marketing') ? 1 : 0,
    };
    if (window.rc && window.rc.conversionHit) {
        window.rc.conversionHit(conversionConf);
    }
</script>

How to change trigger icon?

Trigger icon could be changed using override system directly in your template.

How to open settings dialog from menu?

There are few options how to achieve this, described on separate page of this documentation.