mirror of
https://github.com/overleaf/overleaf.git
synced 2025-03-03 16:42:00 +00:00
Merge pull request #312 from sharelatex/sk-add-from-v2-flag-to-analytics
Add a `fromV2` flag to Analytics events, when coming from V2 instance
This commit is contained in:
commit
a06c4003f9
1 changed files with 4 additions and 0 deletions
|
@ -37,6 +37,8 @@ module.exports =
|
|||
method:"POST"
|
||||
timeout:1000
|
||||
url: "/user/#{user_id}/event"
|
||||
if settings.overleaf?
|
||||
opts.qs = {fromV2: 1}
|
||||
makeRequest opts, callback
|
||||
|
||||
updateEditingSession: (userId, projectId, segmentation = {}, callback = (error) ->) ->
|
||||
|
@ -52,6 +54,8 @@ module.exports =
|
|||
qs:
|
||||
userId: userId
|
||||
projectId: projectId
|
||||
if settings.overleaf?
|
||||
opts.qs.fromV2 = 1
|
||||
makeRequest opts, callback
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue