From d1be404e3abcd700e8f3ac5ca6b879b70fcdf288 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Mon, 30 Jan 2023 16:35:36 +0100 Subject: [PATCH] Add datalayer to groups price calculator --- .../Private/Assets/js/components/GroupsPriceCalculator.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/components/GroupsPriceCalculator.vue b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/components/GroupsPriceCalculator.vue index 4a48646b..4b95cd6f 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/components/GroupsPriceCalculator.vue +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/components/GroupsPriceCalculator.vue @@ -374,6 +374,10 @@ export default { this.formErrors = response.data.errors; } else { this.submitted = true; + window.dataLayer = window.dataLayer || []; + dataLayer.push({ + 'event': 'Preisberechnung' + }) } }).catch(error => { }).finally(() => {