Merge branch 'ticket-11957-removePersonalData' into develop

This commit is contained in:
Marion Muszynski 2016-12-06 11:22:42 +01:00
commit e43c69b94b
2 changed files with 45 additions and 4 deletions

View File

@ -157,7 +157,18 @@
{/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");
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;
console.log(page);
ga('send', 'pageview', page);
} else {
ga('send', 'pageview');
}
{/literal}{/if}{literal}
function onStepComplete(stepNumber, option, redirect, form) {
@ -264,7 +275,17 @@
{/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");
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;
console.log(page);
ga('send', 'pageview', page);
} else {
ga('send', 'pageview');
}
{/literal}{/if}{literal}
function onStepComplete(stepNumber, option, redirect, form) {

View File

@ -163,7 +163,17 @@
{/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");
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;
console.log(page);
ga('send', 'pageview', page);
} else {
ga('send', 'pageview');
}
{/literal}{/if}{literal}
function onStepComplete(stepNumber, option, redirect, form) {
@ -269,7 +279,17 @@
{/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");
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;
console.log(page);
ga('send', 'pageview', page);
} else {
ga('send', 'pageview');
}
{/literal}{/if}{literal}
function onStepComplete(stepNumber, option, redirect, form) {