Browse Source

Merge pull request #200 from real34/patch-1

Add support for analytics pre-pageview userland logic
Amauri CHAMPEAUX 6 years ago
parent
commit
3979039ece
1 changed files with 4 additions and 0 deletions
  1. 4 0
      tarteaucitron.services.js

+ 4 - 0
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 {