You are here


Used by the following Containers: 
Variable Type: 
Custom Javascript
This is a local storage variable taking care of the group of tags you have in GTM. the default value is 1 default, the values are expected to be between 0 and 3.
	  function() {
    var gdprUserConsentSetting = window.localStorage.getItem('gdprUserConsentSetting');
  	if (gdprUserConsentSetting == null) {
        // that's my default setting here
    	return 1
    } else {
  		return gdprUserConsentSetting;

Add new comment