From 54b3e1b207457f58db0b6fbbdbeb1cc23738d140 Mon Sep 17 00:00:00 2001 From: Claire Kolln Date: Tue, 17 Sep 2024 13:55:51 -0400 Subject: [PATCH 1/4] updates M2 klaviyo.js url --- CHANGELOG.md | 8 ++++++++ composer.dev.json | 2 +- composer.json | 2 +- etc/module.xml | 2 +- view/frontend/templates/analytics/initialize.phtml | 5 +++-- 5 files changed, 14 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e1e4502..3520885 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### [Unreleased] +### [4.2.0] - 2024-09-17 + +#### Added +- Adds StoreId field to Viewed Product events + +#### Changed +- Updated the klaviyo onsite javascript to the new url format + ### [4.1.4] - 2024-05-22 #### Changed diff --git a/composer.dev.json b/composer.dev.json index 8fe7885..6402c9c 100644 --- a/composer.dev.json +++ b/composer.dev.json @@ -2,7 +2,7 @@ "name": "klaviyo/magento2-extension-dev", "description": "The local development composer file. This is used for local and continuous integration setup/testing.", "type": "magento2-module", - "version": "4.1.4", + "version": "4.2.0", "autoload": { "psr-4": { "Klaviyo\\Reclaim\\": "" diff --git a/composer.json b/composer.json index eb0f645..0473cd1 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "klaviyo/magento2-extension", "description": "Klaviyo extension for Magento 2. Allows pushing newsletters to Klaviyo's platform and more.", "type": "magento2-module", - "version": "4.1.4", + "version": "4.2.0", "autoload": { "files": [ "registration.php" diff --git a/etc/module.xml b/etc/module.xml index 2f9cc40..6ada556 100644 --- a/etc/module.xml +++ b/etc/module.xml @@ -1,6 +1,6 @@ - + diff --git a/view/frontend/templates/analytics/initialize.phtml b/view/frontend/templates/analytics/initialize.phtml index 797b8f3..326d8b0 100644 --- a/view/frontend/templates/analytics/initialize.phtml +++ b/view/frontend/templates/analytics/initialize.phtml @@ -1,7 +1,8 @@ getPublicApiKey(); ?> isKlaviyoEnabled() && $klaviyoKey ): ?> - + escapeHtml($klaviyoKey); $klaviyoSrc = 'https://static.klaviyo.com/onsite/js/'. $escapedKey . '/klaviyo.js'?> +