mirror of
https://github.com/overleaf/overleaf.git
synced 2025-03-10 12:01:52 +00:00
Merge pull request #3003 from overleaf/jel-zotero-event
Add Google Analytics event for Zotero A/B test GitOrigin-RevId: 2b97a6070828fb97ea741a6e355c20314f59faad
This commit is contained in:
parent
f0e9a37c7a
commit
88057c4caa
2 changed files with 6 additions and 3 deletions
|
@ -830,7 +830,8 @@ const ProjectController = {
|
||||||
gitBridgePublicBaseUrl: Settings.gitBridgePublicBaseUrl,
|
gitBridgePublicBaseUrl: Settings.gitBridgePublicBaseUrl,
|
||||||
wsUrl,
|
wsUrl,
|
||||||
showSupport: Features.hasFeature('support'),
|
showSupport: Features.hasFeature('support'),
|
||||||
gaOptimize: enableOptimize
|
gaOptimize: enableOptimize,
|
||||||
|
customOptimizeEvent: true
|
||||||
})
|
})
|
||||||
timer.done()
|
timer.done()
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,8 +42,10 @@ html(
|
||||||
if gaOptimize === true && typeof(gaOptimizeId) != "undefined"
|
if gaOptimize === true && typeof(gaOptimizeId) != "undefined"
|
||||||
script(type='text/javascript').
|
script(type='text/javascript').
|
||||||
ga('require', '#{gaOptimizeId}')
|
ga('require', '#{gaOptimizeId}')
|
||||||
ga('send', 'event', 'pageview', document.title.substring(0, 499), window.location.href.substring(0, 499))
|
if !customOptimizeEvent
|
||||||
if !experimentId
|
script(type='text/javascript').
|
||||||
|
ga('send', 'event', 'pageview', document.title.substring(0, 499), window.location.href.substring(0, 499))
|
||||||
|
if !ExposedSettings.experimentId
|
||||||
//- Anti-flicker snippet
|
//- Anti-flicker snippet
|
||||||
//- Only run for tests controlled by Optimize editor
|
//- Only run for tests controlled by Optimize editor
|
||||||
style(type='text/css') .async-hide { opacity: 0 !important}
|
style(type='text/css') .async-hide { opacity: 0 !important}
|
||||||
|
|
Loading…
Reference in a new issue