diff --git a/public/typo3conf/ext/ep_theme/Configuration/TypoScript/setup.typoscript b/public/typo3conf/ext/ep_theme/Configuration/TypoScript/setup.typoscript
index 13d07b0e..047ecd81 100644
--- a/public/typo3conf/ext/ep_theme/Configuration/TypoScript/setup.typoscript
+++ b/public/typo3conf/ext/ep_theme/Configuration/TypoScript/setup.typoscript
@@ -92,6 +92,7 @@ plugin.tx_eptheme {
productUid = {$plugin.tx_eptheme.settings.facebookViewContentProductUid}
nameInternal = {$plugin.tx_eptheme.settings.facebookViewContentNameInternal}
}
+ domainsToTrack = bpn.ep-reisen.de,www.ski-boarderweek.de,www.ski-wochenenden.de,www.snowzone.net,www.unichamp.de
}
view {
templateRootPaths.0 = EXT:ep_theme/Resources/Private/Templates
diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/_app.js b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/_app.js
index 02628ee2..e7918ea5 100644
--- a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/_app.js
+++ b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/_app.js
@@ -324,6 +324,7 @@ new Vue({
},
appendPaCode () {
const paCode = this.$store.state.config.paCode;
+ const externalDomains = this.$store.state.config.externalDomains;
if (!paCode) {
return;
}
@@ -331,6 +332,9 @@ new Vue({
if (this.hostname === location.hostname) {
return;
}
+ if (externalDomains.indexOf(this.hostname) === -1) {
+ return;
+ }
let url = $(this).attr('href');
if (!url) {
return;
diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Config.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Config.html
index b76db006..7dc663a2 100644
--- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Config.html
+++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Config.html
@@ -2,6 +2,7 @@
{
"loaderUrl": "{f:uri.image(src: 'EXT:ep_theme/Resources/Public/images/ajax-loader-white.gif', absolute: 1)}",
"myEpApiBaseUrl": "{settings.myEpApiBaseUrl}",
- "paCode": "{context.paCode}"null
+ "paCode": "{context.paCode}"null,
+ "externalDomains": {settings.domainsToTrack -> v:iterator.explode() -> f:format.json() -> f:format.raw()}
}