Wyłączenie debugowania czasu w konfiguracji oraz dodanie obsługi zgód na pliki cookie w szablonach użytkownika
This commit is contained in:
@@ -3,7 +3,7 @@ $database['host'] = 'localhost';
|
|||||||
$database['user'] = 'host700513_marianek';
|
$database['user'] = 'host700513_marianek';
|
||||||
$database['password'] = 'Ngh4GwdctWnU4AshPedV';
|
$database['password'] = 'Ngh4GwdctWnU4AshPedV';
|
||||||
$database['name'] = 'host700513_marianek';
|
$database['name'] = 'host700513_marianek';
|
||||||
$database['time_debug'] = true;
|
$database['time_debug'] = false;
|
||||||
$database['long_query_time'] = 0.1;
|
$database['long_query_time'] = 0.1;
|
||||||
|
|
||||||
$config['salt'] = 'dd6c0ee59bf35b208b6d9bf42dd60769';
|
$config['salt'] = 'dd6c0ee59bf35b208b6d9bf42dd60769';
|
||||||
|
|||||||
@@ -1,2 +1,47 @@
|
|||||||
|
<script type="text/javascript" src="/libraries/jquery/jquery-2.1.3.min.js"></script>
|
||||||
|
<script src="/libraries/CookieNoticePro/cookienoticepro.script.js"></script>
|
||||||
|
<link rel="stylesheet" href="/libraries/CookieNoticePro/cookienoticepro.style.css">
|
||||||
|
<script type="text/javascript">
|
||||||
|
window.dataLayer = window.dataLayer || [];
|
||||||
|
function gtag(){dataLayer.push(arguments);}
|
||||||
|
|
||||||
<script type="text/javascript" src="/libraries/jquery/jquery-2.1.3.min.js"></script>
|
const gtmDefaultEuConsent = {
|
||||||
|
"ad_storage": "denied",
|
||||||
|
"ad_user_data": "denied",
|
||||||
|
"ad_personalization": "denied",
|
||||||
|
"analytics_storage": "denied",
|
||||||
|
"personalization_storage": "denied",
|
||||||
|
"functionality_storage": "denied",
|
||||||
|
"security_storage": "denied",
|
||||||
|
"region": ["AT", "BE", "BG", "HR", "CY", "CZ", "DK", "EE", "FI", "FR", "DE", "GR", "HU", "IE", "IT", "LV", "LT", "LU", "MT", "NL", "PL", "PT", "RO", "SI", "ES", "SE", "GB"]
|
||||||
|
};
|
||||||
|
gtag("consent", "default", gtmDefaultEuConsent);
|
||||||
|
|
||||||
|
$(document).ready(function() {
|
||||||
|
cookieNoticePro.init();
|
||||||
|
});
|
||||||
|
|
||||||
|
var injectScripts = function injectScripts() {
|
||||||
|
// Example: Google Analytics
|
||||||
|
if (cookieNoticePro.isPreferenceAccepted("analytics") === true) {
|
||||||
|
//console.log("Analytics Scripts Running....");
|
||||||
|
}
|
||||||
|
// Example: Google Adwords cookie, DoubleClick, Remarketing pixels, Social Media cookies
|
||||||
|
if (cookieNoticePro.isPreferenceAccepted("marketing") === true) { console.log("Marketing Scripts Running....");
|
||||||
|
gtag('consent', 'update', {
|
||||||
|
'ad_storage': 'granted',
|
||||||
|
'ad_user_data': 'granted',
|
||||||
|
'ad_personalization': 'granted',
|
||||||
|
'analytics_storage': 'granted',
|
||||||
|
'personalization_storage': 'granted',
|
||||||
|
'security_storage': 'granted',
|
||||||
|
'functionality_storage': 'granted'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// Example: Remember password, language, etc
|
||||||
|
if (cookieNoticePro.isPreferenceAccepted("preferences") === true) {
|
||||||
|
//console.log("Preferences Scripts Running....");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
@@ -263,22 +263,24 @@
|
|||||||
<script class="footer" type="text/javascript" src="/libraries/fancybox3/js/wheel.js"></script>
|
<script class="footer" type="text/javascript" src="/libraries/fancybox3/js/wheel.js"></script>
|
||||||
<script class="footer" type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/ScrollMagic/2.0.8/ScrollMagic.min.js"></script>
|
<script class="footer" type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/ScrollMagic/2.0.8/ScrollMagic.min.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
<? if ( $this -> settings['google_tag_manager_id'] ):?>
|
$( function() {
|
||||||
dataLayer.push({
|
<? if ( $this -> settings['google_tag_manager_id'] ):?>
|
||||||
event: "view_item",
|
dataLayer.push({
|
||||||
ecommerce: {
|
event: "view_item",
|
||||||
items: [
|
ecommerce: {
|
||||||
{
|
items: [
|
||||||
item_id: "<?= $this -> product -> id;?>",
|
{
|
||||||
item_name: "<?= str_replace( '"', '', $this -> product -> language['name'] );?>",
|
item_id: "<?= $this -> product -> id;?>",
|
||||||
price: '<? if ( $this -> product -> price_brutto_promo ): echo \S::normalize_decimal( $this -> product -> price_brutto_promo ); else: echo \S::normalize_decimal( $this -> product -> price_brutto ); endif;?>',
|
item_name: "<?= str_replace( '"', '', $this -> product -> language['name'] );?>",
|
||||||
quantity: 1,
|
price: '<? if ( $this -> product -> price_brutto_promo ): echo \S::normalize_decimal( $this -> product -> price_brutto_promo ); else: echo \S::normalize_decimal( $this -> product -> price_brutto ); endif;?>',
|
||||||
google_business_vertical: "retail"
|
quantity: 1,
|
||||||
}
|
google_business_vertical: "retail"
|
||||||
]
|
}
|
||||||
}
|
]
|
||||||
});
|
}
|
||||||
<? endif;?>
|
});
|
||||||
|
<? endif;?>
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
<script class="footer" type="text/javascript">
|
<script class="footer" type="text/javascript">
|
||||||
$( function ()
|
$( function ()
|
||||||
|
|||||||
Reference in New Issue
Block a user