From 233e9d34c329ab83904e38e5f743e523af45be8e Mon Sep 17 00:00:00 2001 From: Maxime Quandalle Date: Mon, 9 Mar 2020 09:39:17 +0100 Subject: [PATCH] =?UTF-8?q?D=C3=A9place=20trackPageView=20vers=20Tracker.t?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Car disableCookies doit ĂȘtre appelĂ© avant trackPageView. --- index.html | 1 - source/Tracker.ts | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 612f2fc07..791294843 100644 --- a/index.html +++ b/index.html @@ -279,7 +279,6 @@ 'setDomains', ['*.mon-entreprise.fr', '*.mycompanyinfrance.fr'] ]) - _paq.push(['trackPageView']) _paq.push(['enableHeartBeatTimer', 30]) _paq.push(['enableLinkTracking']) ;(function() { diff --git a/source/Tracker.ts b/source/Tracker.ts index ce3bde045..22d590aed 100644 --- a/source/Tracker.ts +++ b/source/Tracker.ts @@ -33,6 +33,7 @@ export default class Tracker { if (iOSSafari && inIframe) { pushFunction(['disableCookies']) } + pushFunction(['trackPageView']) } connectToHistory(history: History) {