diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index f6262d2..c87cfff 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -1064,6 +1064,10 @@ tarteaucitron.services.analytics = { ga('set', 'anonymizeIp', true); } + if (typeof tarteaucitron.user.analyticsPrepare === 'function') { + tarteaucitron.user.analyticsPrepare(); + } + if (tarteaucitron.user.analyticsPageView) { ga('send', 'pageview', tarteaucitron.user.analyticsPageView); } else {