mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
Move analyticsRequest()
This commit is contained in:
parent
bef1ab8e0b
commit
7670894416
1 changed files with 3 additions and 1 deletions
|
@ -185,7 +185,6 @@ var filters = {
|
|||
// Load Hooks
|
||||
|
||||
Router.load( function () {
|
||||
analyticsRequest(); // log this request with mixpanel, etc
|
||||
clearSeenErrors(); // set all errors who have already been seen to not show anymore
|
||||
Session.set('categorySlug', null);
|
||||
});
|
||||
|
@ -222,6 +221,9 @@ Router.before(filters.isAdmin, {only: ['posts_pending', 'all-users', 'settings',
|
|||
// After Hooks
|
||||
|
||||
Router.after(filters.resetScroll, {except:['posts_top', 'posts_new', 'posts_best', 'posts_pending', 'posts_category', 'all-users']});
|
||||
Router.after( function () {
|
||||
analyticsRequest() // log this request with mixpanel, etc
|
||||
});
|
||||
|
||||
// Unload Hooks
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue