From 6c888c310b8778bd7eeef01b06037c2aac197f2d Mon Sep 17 00:00:00 2001 From: Jisse Reitsma Date: Tue, 22 Oct 2024 14:07:21 +0200 Subject: [PATCH] Release --- CHANGELOG.md | 3 +++ Config/Config.php | 5 +++-- composer.json | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) 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",