Poprawa obsługi Google Tag Manager w szablonie produktu

This commit is contained in:
2025-03-21 23:08:18 +01:00
parent 434e4a6464
commit abb5e0aa31
3 changed files with 19 additions and 17 deletions

BIN
templates_user/.DS_Store vendored Normal file

Binary file not shown.

BIN
templates_user/components/.DS_Store vendored Normal file

Binary file not shown.

View File

@@ -241,6 +241,7 @@
<script class="footer" type="text/javascript" src="/libraries/fancybox3/js/wheel.js"></script>
<script class="footer" type="text/javascript" src="/plugins/OwlCarousel/owl.carousel.js"></script>
<script type="text/javascript">
$( function() {
<? if ( $this -> settings['google_tag_manager_id'] ):?>
dataLayer.push({
event: "view_item",
@@ -258,6 +259,7 @@
}
});
<? endif;?>
});
</script>
<script class="footer" type="text/javascript">
$( function ()