Merge branch 'ticket-11957-removePersonalData' into develop
This commit is contained in:
commit
f26aaab52b
@ -47,9 +47,13 @@
|
||||
|
||||
{literal}
|
||||
var re = new RegExp("([?&])(email=)[^&#]*", "g");
|
||||
if (document.location.href.match(re)) {
|
||||
var re2 = new RegExp("([?&])(customer_lastname=)[^&#]*", "g");
|
||||
var re3 = new RegExp("([?&])(customer_firstname=)[^&#]*", "g");
|
||||
if (document.location.href.match(re) || document.location.href.match(re2) || document.location.href.match(re3)) {
|
||||
// remove personal data from url before sending to GA
|
||||
url = window.location.search.replace(re, '$1');
|
||||
url = window.location.search.replace(re, '$1$2');
|
||||
url = url.replace(re2, '$1$2');
|
||||
url = url.replace(re3, '$1$2');
|
||||
var page = window.location.pathname+url;
|
||||
ga('send', 'pageview', page);
|
||||
} else {
|
||||
|
@ -159,9 +159,13 @@
|
||||
// send pageview via header.tpl du module GA si isEC=1 and $page_name == 'order-confirmation'
|
||||
|
||||
var re = new RegExp("([?&])(email=)[^&#]*", "g");
|
||||
if (document.location.href.match(re)) {
|
||||
var re2 = new RegExp("([?&])(customer_lastname=)[^&#]*", "g");
|
||||
var re3 = new RegExp("([?&])(customer_firstname=)[^&#]*", "g");
|
||||
if (document.location.href.match(re) || document.location.href.match(re2) || document.location.href.match(re3)) {
|
||||
// remove personal data from url before sending to GA
|
||||
url = window.location.search.replace(re, '$1');
|
||||
url = window.location.search.replace(re, '$1$2');
|
||||
url = url.replace(re2, '$1$2');
|
||||
url = url.replace(re3, '$1$2');
|
||||
var page = window.location.pathname+url;
|
||||
ga('send', 'pageview', page);
|
||||
} else {
|
||||
@ -276,9 +280,13 @@
|
||||
// send pageview via header.tpl du module GA si isEC=1 and $page_name == 'order-confirmation'
|
||||
|
||||
var re = new RegExp("([?&])(email=)[^&#]*", "g");
|
||||
if (document.location.href.match(re)) {
|
||||
var re2 = new RegExp("([?&])(customer_lastname=)[^&#]*", "g");
|
||||
var re3 = new RegExp("([?&])(customer_firstname=)[^&#]*", "g");
|
||||
if (document.location.href.match(re) || document.location.href.match(re2) || document.location.href.match(re3)) {
|
||||
// remove personal data from url before sending to GA
|
||||
url = window.location.search.replace(re, '$1');
|
||||
url = window.location.search.replace(re, '$1$2');
|
||||
url = url.replace(re2, '$1$2');
|
||||
url = url.replace(re3, '$1$2');
|
||||
var page = window.location.pathname+url;
|
||||
ga('send', 'pageview', page);
|
||||
} else {
|
||||
|
@ -165,9 +165,13 @@
|
||||
// send pageview via header.tpl du module GA si isEC=1 and $page_name == 'order-confirmation'
|
||||
|
||||
var re = new RegExp("([?&])(email=)[^&#]*", "g");
|
||||
if (document.location.href.match(re)) {
|
||||
var re2 = new RegExp("([?&])(customer_lastname=)[^&#]*", "g");
|
||||
var re3 = new RegExp("([?&])(customer_firstname=)[^&#]*", "g");
|
||||
if (document.location.href.match(re) || document.location.href.match(re2) || document.location.href.match(re3)) {
|
||||
// remove personal data from url before sending to GA
|
||||
url = window.location.search.replace(re, '$1');
|
||||
url = window.location.search.replace(re, '$1$2');
|
||||
url = url.replace(re2, '$1$2');
|
||||
url = url.replace(re3, '$1$2');
|
||||
var page = window.location.pathname+url;
|
||||
ga('send', 'pageview', page);
|
||||
} else {
|
||||
@ -280,9 +284,13 @@
|
||||
// send pageview via header.tpl du module GA si isEC=1 and $page_name == 'order-confirmation'
|
||||
|
||||
var re = new RegExp("([?&])(email=)[^&#]*", "g");
|
||||
if (document.location.href.match(re)) {
|
||||
var re2 = new RegExp("([?&])(customer_lastname=)[^&#]*", "g");
|
||||
var re3 = new RegExp("([?&])(customer_firstname=)[^&#]*", "g");
|
||||
if (document.location.href.match(re) || document.location.href.match(re2) || document.location.href.match(re3)) {
|
||||
// remove personal data from url before sending to GA
|
||||
url = window.location.search.replace(re, '$1');
|
||||
url = window.location.search.replace(re, '$1$2');
|
||||
url = url.replace(re2, '$1$2');
|
||||
url = url.replace(re3, '$1$2');
|
||||
var page = window.location.pathname+url;
|
||||
ga('send', 'pageview', page);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user