Merge branch 'ticket-11957-removePersonalData' into develop

This commit is contained in:
Marion Muszynski 2016-12-06 12:07:40 +01:00
commit f26aaab52b
3 changed files with 30 additions and 10 deletions

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {