Merge branch 'ticket-11957-removePersonalData' into develop
This commit is contained in:
commit
908f81cea3
@ -45,7 +45,17 @@
|
||||
'shipping': '{$trans.shipping}', // Shipping (currency).
|
||||
});
|
||||
|
||||
ga('send', 'pageview');
|
||||
{literal}
|
||||
var re = new RegExp("([?&])(email=)[^&#]*", "g");
|
||||
if (document.location.href.match(re)) {
|
||||
// remove personal data from url before sending to GA
|
||||
url = window.location.search.replace(re, '$1');
|
||||
var page = window.location.pathname+url;
|
||||
ga('send', 'pageview', page);
|
||||
} else {
|
||||
ga('send', 'pageview');
|
||||
}
|
||||
{/literal}
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
|
@ -163,7 +163,6 @@
|
||||
// remove personal data from url before sending to GA
|
||||
url = window.location.search.replace(re, '$1');
|
||||
var page = window.location.pathname+url;
|
||||
console.log(page);
|
||||
ga('send', 'pageview', page);
|
||||
} else {
|
||||
ga('send', 'pageview');
|
||||
|
@ -169,7 +169,6 @@
|
||||
// remove personal data from url before sending to GA
|
||||
url = window.location.search.replace(re, '$1');
|
||||
var page = window.location.pathname+url;
|
||||
console.log(page);
|
||||
ga('send', 'pageview', page);
|
||||
} else {
|
||||
ga('send', 'pageview');
|
||||
|
Loading…
Reference in New Issue
Block a user