1
0
Fork 0
mirror of https://github.com/overleaf/overleaf.git synced 2025-04-08 12:21:10 +00:00

Add a fromV2 flag to Analytics events, when coming from V2 instance

This commit is contained in:
Shane Kilkelly 2018-02-06 10:35:15 +00:00
parent c1b20a38dd
commit 6d8b50efc4

View file

@ -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