Merge pull request #200 from real34/patch-1
Add support for analytics pre-pageview userland logic
This commit is contained in:
commit
3979039ece
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue