浏览代码

Load atMore after the visitorMode #985

Amauri CHAMPEAUX 2 年之前
父节点
当前提交
09b979a2dc
共有 1 个文件被更改,包括 8 次插入8 次删除
  1. 8 8
      tarteaucitron.services.js

+ 8 - 8
tarteaucitron.services.js

@@ -3780,14 +3780,14 @@ tarteaucitron.services.atinternet = {
 
             window.tag = new ATInternet.Tracker.Tag();
 
-            if (typeof tarteaucitron.user.atMore === 'function') {
-                tarteaucitron.user.atMore();
-            }
-
             if (typeof window.tag.privacy !== 'undefined') {
                 window.tag.privacy.setVisitorOptin();
             }
 
+            if (typeof tarteaucitron.user.atMore === 'function') {
+                tarteaucitron.user.atMore();
+            }
+
             if (tarteaucitron.user.atinternetSendData !== false) {
                 window.tag.page.send();
             }
@@ -3809,10 +3809,6 @@ tarteaucitron.services.atinternet = {
 
             window.tag = new ATInternet.Tracker.Tag();
 
-            if (typeof tarteaucitron.user.atMore === 'function') {
-                tarteaucitron.user.atMore();
-            }
-
             if (typeof window.tag.privacy !== 'undefined') {
 
                 var visitorMode = window.tag.privacy.getVisitorMode();
@@ -3823,6 +3819,10 @@ tarteaucitron.services.atinternet = {
                 }
             }
 
+            if (typeof tarteaucitron.user.atMore === 'function') {
+                tarteaucitron.user.atMore();
+            }
+
             if (tarteaucitron.user.atinternetSendData !== false) {
                 window.tag.page.send();
             }