mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #3283 from overleaf/jel-remove-zotero-test
Remove Zotero test GitOrigin-RevId: 4d9d8e0574f05f8c272cc018d7b1908a1722f156
This commit is contained in:
parent
6fe36b6acb
commit
1db0b27704
3 changed files with 10 additions and 21 deletions
|
@ -768,10 +768,6 @@ const ProjectController = {
|
|||
}
|
||||
metrics.inc(metricName)
|
||||
|
||||
const enableOptimize =
|
||||
!!Settings.experimentId &&
|
||||
(user.features && !user.features.zotero)
|
||||
|
||||
if (userId) {
|
||||
AnalyticsManager.recordEvent(userId, 'project-opened', {
|
||||
projectId: project._id
|
||||
|
@ -833,9 +829,6 @@ const ProjectController = {
|
|||
gitBridgePublicBaseUrl: Settings.gitBridgePublicBaseUrl,
|
||||
wsUrl,
|
||||
showSupport: Features.hasFeature('support'),
|
||||
gaOptimize: enableOptimize,
|
||||
customOptimizeEvent: true,
|
||||
experimentId: Settings.experimentId,
|
||||
showNewLogsUI: req.query && req.query.new_logs_ui === 'true',
|
||||
showNewChatUI: req.query && req.query.new_chat_ui === 'true'
|
||||
})
|
||||
|
|
|
@ -42,19 +42,15 @@ html(
|
|||
if gaOptimize === true && typeof(gaOptimizeId) != "undefined"
|
||||
script(type='text/javascript').
|
||||
ga('require', '#{gaOptimizeId}')
|
||||
if !customOptimizeEvent
|
||||
script(type='text/javascript').
|
||||
ga('send', 'event', 'pageview', document.title.substring(0, 499), window.location.href.substring(0, 499))
|
||||
if !experimentId
|
||||
//- Anti-flicker snippet
|
||||
//- Only run for tests controlled by Optimize editor
|
||||
style(type='text/css') .async-hide { opacity: 0 !important}
|
||||
script(type='text/javascript').
|
||||
(function(a,s,y,n,c,h,i,d,e){s.className+=' '+y;h.start=1*new Date;
|
||||
h.end=i=function(){s.className=s.className.replace(RegExp(' ?'+y),'')};
|
||||
(a[n]=a[n]||[]).hide=h;setTimeout(function(){i();h.end=null},c);h.timeout=c;
|
||||
})(window,document.documentElement,'async-hide','dataLayer',4000,
|
||||
{'#{gaOptimizeId}':true});
|
||||
ga('send', 'event', 'pageview', document.title.substring(0, 499), window.location.href.substring(0, 499))
|
||||
//- Anti-flicker snippet
|
||||
style(type='text/css') .async-hide { opacity: 0 !important}
|
||||
script(type='text/javascript').
|
||||
(function(a,s,y,n,c,h,i,d,e){s.className+=' '+y;h.start=1*new Date;
|
||||
h.end=i=function(){s.className=s.className.replace(RegExp(' ?'+y),'')};
|
||||
(a[n]=a[n]||[]).hide=h;setTimeout(function(){i();h.end=null},c);h.timeout=c;
|
||||
})(window,document.documentElement,'async-hide','dataLayer',4000,
|
||||
{'#{gaOptimizeId}':true});
|
||||
|
||||
- else
|
||||
script(type='text/javascript').
|
||||
|
|
|
@ -156,7 +156,7 @@ block content
|
|||
//- We need to do .replace(/\//g, '\\/') do that '</script>' -> '<\/script>'
|
||||
//- and doesn't prematurely end the script tag.
|
||||
script#data(type="application/json").
|
||||
!{StringHelper.stringifyJsonForScript({ userSettings: userSettings, user: user, trackChangesState: trackChangesState, useV2History: useV2History, enabledLinkedFileTypes: settings.enabledLinkedFileTypes, brandVariation: brandVariation, experimentId: experimentId })}
|
||||
!{StringHelper.stringifyJsonForScript({ userSettings: userSettings, user: user, trackChangesState: trackChangesState, useV2History: useV2History, enabledLinkedFileTypes: settings.enabledLinkedFileTypes, brandVariation: brandVariation })}
|
||||
|
||||
script(type='text/javascript').
|
||||
window.data = JSON.parse(document.querySelector("#data").text);
|
||||
|
|
Loading…
Reference in a new issue