]> _ Git - psq.git/commitdiff
Update view.blade.php
authorLouis Jeckel <louis.jeckel@outlook.cm>
Tue, 22 Sep 2020 15:24:04 +0000 (17:24 +0200)
committerLouis Jeckel <louis.jeckel@outlook.cm>
Tue, 22 Sep 2020 15:24:04 +0000 (17:24 +0200)
resources/views/flowpaper/view.blade.php

index f675ebb4e34868896ec75ebefceb5d770efa3ca6..c858fe13bf5eef8baef57c75bf843a268c2e6a57 100644 (file)
 
                             }
                         }
-                    );
+                    ).on('onDocumentLoaded', function() {
+                @auth
+                        ga('set', 'userId', '{{\Auth::user()->id}}');
+                    @endauth
+            })
         }
 
-        @auth
-            ga('set', 'userId', '{{\Auth::user()->id}}');
-        @endauth
 
     </script>