From 39d836c709788e185dec04ad6e001b4fae0f0a09 Mon Sep 17 00:00:00 2001 From: Johan Girod Date: Fri, 8 Apr 2022 11:18:54 +0200 Subject: [PATCH] Push sur master trop rapide --- site/source/ATInternetTracking/Tracker.ts | 30 +++++++++++------------ 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/site/source/ATInternetTracking/Tracker.ts b/site/source/ATInternetTracking/Tracker.ts index ad648594a..4cfe3cd9d 100644 --- a/site/source/ATInternetTracking/Tracker.ts +++ b/site/source/ATInternetTracking/Tracker.ts @@ -87,22 +87,22 @@ export function createTracker(siteId?: string, doNotTrack = false) { } } - #currentPageInfo: PageHit = { page: 'accueil' } - #send: ATTracker['events']['send'] = (type, data) => { - if (type === 'page.display') { - this.#currentPageInfo = data - super.events.send(type, data) - return - } - if (!('click' in data)) { - throw new Error('invalid argument error') - } - super.events.send(type, { ...this.#currentPageInfo, ...data }) - } + // #currentPageInfo: PageHit = { page: 'accueil' } + // #send: ATTracker['events']['send'] = (type, data) => { + // if (type === 'page.display') { + // this.#currentPageInfo = data + // super.events.send(type, data) + // return + // } + // if (!('click' in data)) { + // throw new Error('invalid argument error') + // } + // super.events.send(type, { ...this.#currentPageInfo, ...data }) + // } - events = { - send: this.#send, - } + // events = { + // send: this.#send, + // } } return Tag