mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-23 12:31:48 +00:00
added more console .logs
This commit is contained in:
parent
137cffabec
commit
69eafd2a74
1 changed files with 2 additions and 1 deletions
|
@ -14,12 +14,13 @@ define [
|
||||||
_getTestCookie = (testName, bucket)->
|
_getTestCookie = (testName, bucket)->
|
||||||
cookieKey = _buildCookieKey(testName, bucket)
|
cookieKey = _buildCookieKey(testName, bucket)
|
||||||
cookie = ipCookie(cookieKey)
|
cookie = ipCookie(cookieKey)
|
||||||
console.log cookie
|
console.log cookieKey, cookie
|
||||||
return cookie
|
return cookie
|
||||||
|
|
||||||
_persistCookieStep = (testName, bucket, newStep)->
|
_persistCookieStep = (testName, bucket, newStep)->
|
||||||
cookieKey = _buildCookieKey(testName, bucket)
|
cookieKey = _buildCookieKey(testName, bucket)
|
||||||
ipCookie(cookieKey, {step:newStep}, {expires:100, path:"/"})
|
ipCookie(cookieKey, {step:newStep}, {expires:100, path:"/"})
|
||||||
|
console.log("persisting", cookieKey, {step:newStep})
|
||||||
ga('send', 'event', 'ab_tests', "#{testName}:#{bucket}", "step-#{newStep}")
|
ga('send', 'event', 'ab_tests', "#{testName}:#{bucket}", "step-#{newStep}")
|
||||||
|
|
||||||
_checkIfStepIsNext = (cookieStep, newStep)->
|
_checkIfStepIsNext = (cookieStep, newStep)->
|
||||||
|
|
Loading…
Reference in a new issue