Merge branch 'ticket-11957-removePersonalData'
This commit is contained in:
commit
8db1dda6fb
@ -45,7 +45,21 @@
|
||||
'shipping': '{$trans.shipping}', // Shipping (currency).
|
||||
});
|
||||
|
||||
ga('send', 'pageview');
|
||||
{literal}
|
||||
var re = new RegExp("([?&])(email=)[^&#]*", "g");
|
||||
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$2');
|
||||
url = url.replace(re2, '$1$2');
|
||||
url = url.replace(re3, '$1$2');
|
||||
var page = window.location.pathname+url;
|
||||
ga('send', 'pageview', page);
|
||||
} else {
|
||||
ga('send', 'pageview');
|
||||
}
|
||||
{/literal}
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
|
@ -157,7 +157,21 @@
|
||||
|
||||
{/literal}{if isset($page_name) && (($page_name == 'order-confirmation' && $isEC==0) || $page_name != 'order-confirmation')}{literal}
|
||||
// send pageview via header.tpl du module GA si isEC=1 and $page_name == 'order-confirmation'
|
||||
ga('send', 'pageview');
|
||||
|
||||
var re = new RegExp("([?&])(email=)[^&#]*", "g");
|
||||
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$2');
|
||||
url = url.replace(re2, '$1$2');
|
||||
url = url.replace(re3, '$1$2');
|
||||
var page = window.location.pathname+url;
|
||||
ga('send', 'pageview', page);
|
||||
} else {
|
||||
ga('send', 'pageview');
|
||||
}
|
||||
|
||||
{/literal}{/if}{literal}
|
||||
|
||||
function onStepComplete(stepNumber, option, redirect, form) {
|
||||
@ -264,7 +278,20 @@
|
||||
|
||||
{/literal}{if isset($page_name) && (($page_name == 'order-confirmation' && $isEC==0) || $page_name != 'order-confirmation')}{literal}
|
||||
// send pageview via header.tpl du module GA si isEC=1 and $page_name == 'order-confirmation'
|
||||
ga('send', 'pageview');
|
||||
|
||||
var re = new RegExp("([?&])(email=)[^&#]*", "g");
|
||||
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$2');
|
||||
url = url.replace(re2, '$1$2');
|
||||
url = url.replace(re3, '$1$2');
|
||||
var page = window.location.pathname+url;
|
||||
ga('send', 'pageview', page);
|
||||
} else {
|
||||
ga('send', 'pageview');
|
||||
}
|
||||
{/literal}{/if}{literal}
|
||||
|
||||
function onStepComplete(stepNumber, option, redirect, form) {
|
||||
|
@ -163,7 +163,20 @@
|
||||
|
||||
{/literal}{if isset($page_name) && (($page_name == 'order-confirmation' && $isEC==0) || $page_name != 'order-confirmation')}{literal}
|
||||
// send pageview via header.tpl du module GA si isEC=1 and $page_name == 'order-confirmation'
|
||||
ga('send', 'pageview');
|
||||
|
||||
var re = new RegExp("([?&])(email=)[^&#]*", "g");
|
||||
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$2');
|
||||
url = url.replace(re2, '$1$2');
|
||||
url = url.replace(re3, '$1$2');
|
||||
var page = window.location.pathname+url;
|
||||
ga('send', 'pageview', page);
|
||||
} else {
|
||||
ga('send', 'pageview');
|
||||
}
|
||||
{/literal}{/if}{literal}
|
||||
|
||||
function onStepComplete(stepNumber, option, redirect, form) {
|
||||
@ -269,7 +282,20 @@
|
||||
|
||||
{/literal}{if isset($page_name) && (($page_name == 'order-confirmation' && $isEC==0) || $page_name != 'order-confirmation')}{literal}
|
||||
// send pageview via header.tpl du module GA si isEC=1 and $page_name == 'order-confirmation'
|
||||
ga('send', 'pageview');
|
||||
|
||||
var re = new RegExp("([?&])(email=)[^&#]*", "g");
|
||||
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$2');
|
||||
url = url.replace(re2, '$1$2');
|
||||
url = url.replace(re3, '$1$2');
|
||||
var page = window.location.pathname+url;
|
||||
ga('send', 'pageview', page);
|
||||
} else {
|
||||
ga('send', 'pageview');
|
||||
}
|
||||
{/literal}{/if}{literal}
|
||||
|
||||
function onStepComplete(stepNumber, option, redirect, form) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user