mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-14 15:33:29 +00:00
added some more event tracking in for google analytics
This commit is contained in:
parent
af659e7690
commit
8b706d6934
4 changed files with 65 additions and 10 deletions
services/web
|
@ -11,10 +11,10 @@
|
|||
a.js-tender-widget(href='#') Support & Feedback
|
||||
li.nav-collapse
|
||||
a(href='/help') Help
|
||||
li.nav-collapse
|
||||
li.nav-collapse#blogLink
|
||||
a(href='/blog') Blog
|
||||
li.nav-collapse
|
||||
a(href='/templates') LaTeX Templates
|
||||
a(href='/templates')#templatesLink LaTeX Templates
|
||||
- if (settings.enableSubscriptions)
|
||||
li.nav-collapse
|
||||
a(href='/user/subscription/plans')#plansLink Plans & Pricing
|
||||
|
@ -23,11 +23,11 @@
|
|||
b.caret
|
||||
ul.dropdown-menu
|
||||
li.nav-collapse
|
||||
a(href="/learn") LaTeX help guide
|
||||
a(href="/learn")#learnLink LaTeX help guide
|
||||
li.nav-collapse
|
||||
a(href='/resources') LaTeX Resources
|
||||
a(href='/resources')#resourcesLink LaTeX Resources
|
||||
li.nav-collapse
|
||||
a(href='/about') About Us
|
||||
a(href='/about')#aboutUsLink About Us
|
||||
ul.nav.pull-right
|
||||
-if(session && session.user)
|
||||
li.dropdown
|
||||
|
@ -35,11 +35,11 @@
|
|||
b.caret
|
||||
ul.dropdown-menu
|
||||
li
|
||||
a(href='/user/settings') User Settings
|
||||
a(href='/user/settings').userSettingsLink User Settings
|
||||
li
|
||||
a(href='/user/subscription') Subscription
|
||||
a(href='/user/subscription').subscriptionLink Subscription
|
||||
li
|
||||
a(href='/logout') Logout
|
||||
a(href='/logout').logoutLink Logout
|
||||
-else
|
||||
li
|
||||
a(href='/register') Register
|
||||
|
|
|
@ -165,7 +165,7 @@
|
|||
|
||||
script(type="text/template")#editorTourTemplate
|
||||
div
|
||||
a(href="#", title="Editor Tour") Editor Tour
|
||||
a(href="#", title="Editor Tour")#editorTourLink Editor Tour
|
||||
|
||||
script(type="text/template")#pdfPanelTemplate
|
||||
#pdfArea(style='display: none;').fullEditorArea
|
||||
|
@ -424,7 +424,7 @@
|
|||
|
||||
script(type='text/template')#hotKeysLinkTemplate
|
||||
div
|
||||
a(href="#", title='Show Hot Keys List') Hot keys
|
||||
a(href="#", title='Show Hot Keys List')#hotkeysLink Hot keys
|
||||
|
||||
script(type='text/template')#trackChangesPanelTemplate
|
||||
#trackChangesPanel
|
||||
|
|
|
@ -14,4 +14,58 @@ require [
|
|||
ga 'send', 'event', 'subscription-funnel', 'go-to-plans-page', 'from menu bar'
|
||||
|
||||
|
||||
#list page
|
||||
$('#newProject a').on 'click', (e)->
|
||||
ga 'send', 'event', 'project-list-page-interaction', 'new-project', $(@).text().trim()
|
||||
|
||||
$('#projectFilter').on 'keydown', (e)->
|
||||
ga 'send', 'event', 'project-list-page-interaction', 'project-search', 'keydown'
|
||||
|
||||
$('#projectList .project-actions li a').on 'click', (e)->
|
||||
ga 'send', 'event', 'project-list-page-interaction', 'project action', $(@).text().trim()
|
||||
|
||||
|
||||
|
||||
#left menu navigation
|
||||
|
||||
$('.tab-link.account-settings-tab').on 'click', ->
|
||||
ga 'send', 'event', 'navigation', 'left menu bar', 'user settings link'
|
||||
|
||||
$('.tab-link.subscription-tab').on 'click', ->
|
||||
ga 'send', 'event', 'navigation', 'left menu bar', 'subscription managment link'
|
||||
|
||||
|
||||
|
||||
#menu bar navigation
|
||||
|
||||
$('.userSettingsLink').on 'click', ->
|
||||
ga 'send', 'event', 'navigation', 'top menu bar', 'user settings link'
|
||||
|
||||
$('.subscriptionLink').on 'click', ->
|
||||
ga 'send', 'event', 'navigation', 'top menu bar', 'subscription managment link'
|
||||
|
||||
$('.logoutLink').on 'click', ->
|
||||
ga 'send', 'event', 'navigation', 'top menu bar', 'logout'
|
||||
|
||||
$('#templatesLink').on 'click', ->
|
||||
ga 'send', 'event', 'navigation', 'top menu bar', 'templates'
|
||||
|
||||
$('#blogLink').on 'click', ->
|
||||
ga 'send', 'event', 'navigation', 'top menu bar', 'blog'
|
||||
|
||||
$('#learnLink').on 'click', ->
|
||||
ga 'send', 'event', 'navigation', 'top menu bar', 'learn link'
|
||||
|
||||
$('#resourcesLink').on 'click', ->
|
||||
ga 'send', 'event', 'navigation', 'top menu bar', 'resources link'
|
||||
|
||||
$('#aboutUsLink').on 'click', ->
|
||||
ga 'send', 'event', 'navigation', 'top menu bar', 'about us link'
|
||||
|
||||
# editor
|
||||
|
||||
$('#hotkeysLink').on 'click', ->
|
||||
ga 'send', 'event', 'navigation', 'editor', 'show hot keys link'
|
||||
|
||||
$('#editorTourLink').on 'click', ->
|
||||
ga 'send', 'event', 'navigation', 'editor', 'editor tour link'
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
require [
|
||||
"tags"
|
||||
"moment"
|
||||
"event_tracking"
|
||||
"gui"
|
||||
"libs/underscore"
|
||||
"libs/fineuploader"
|
||||
|
|
Loading…
Add table
Reference in a new issue