diff --git a/CHANGELOG.md b/CHANGELOG.md index 8276886..b007eda 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,9 +5,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] + +## [3.9.10] - 22 October 2024 ### Fixed - Only trigger `view_cart` event when there are items in the cart - Allow multiple GTM IDs +- Fix GTM URL ## [3.9.9] - 22 October 2024 ### Fixed diff --git a/Config/Config.php b/Config/Config.php index 641d73a..2af8c03 100644 --- a/Config/Config.php +++ b/Config/Config.php @@ -209,13 +209,14 @@ public function hasServerSideTracking(): bool */ public function getGoogleTagmanagerUrl(): string { + $default = 'https://www.googletagmanager.com'; if (false === $this->hasServerSideTracking()) { - return ''; + return $default; } return $this->getModuleConfigValue( 'serverside_gtm_url', - 'https://www.googletagmanager.com' + $default ); } diff --git a/composer.json b/composer.json index 0a33891..2b6dff4 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "yireo/magento2-googletagmanager2", - "version": "3.9.9", + "version": "3.9.10", "license": "OSL-3.0", "type": "magento2-module", "homepage": "https://www.yireo.com/software/magento-extensions/googletagmanager2",