Append tracking codes to selectable domains only
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
{
|
||||
"loaderUrl": "<f:format.raw>{f:uri.image(src: 'EXT:ep_theme/Resources/Public/images/ajax-loader-white.gif', absolute: 1)}</f:format.raw>",
|
||||
"myEpApiBaseUrl": "<f:format.raw>{settings.myEpApiBaseUrl}</f:format.raw>",
|
||||
"paCode": <f:if condition='{context.paCode}'><f:then>"{context.paCode}"</f:then><f:else>null</f:else></f:if>
|
||||
"paCode": <f:if condition='{context.paCode}'><f:then>"{context.paCode}"</f:then><f:else>null</f:else></f:if>,
|
||||
"externalDomains": {settings.domainsToTrack -> v:iterator.explode() -> f:format.json() -> f:format.raw()}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user