 			timeout: 1000
 			url: "/editingSession"
 			qs: query
-			maxAttempts: 20
-			retryDelay: 5000
+			maxAttempts: 6 # Give up after ~ 4min
+			delayStrategy: exponentialBackoffStrategy()
 		if settings.overleaf?
 			opts.qs.fromV2 = 1
 		makeRequest opts, callback

	if settings.apis?.analytics?.url?
		urlPath = opts.url
		opts.url = "#{settings.apis.analytics.url}#{urlPath}"
		request opts, callback
	else
		callback(new Errors.ServiceNotConfiguredError('Analytics service not configured'))


module.exports =

			method:"POST"
			timeout:1000
			url: "/user/#{user_id}/event"
			delayStrategy: exponentialBackoffStrategy()
			maxAttempts: 7 # Give up after ~ 8min
		if settings.overleaf?
			opts.qs = {fromV2: 1}
		makeRequest opts, callback
