Use cloudflare for analytics so we get the correct SSL cert.
This commit is contained in:
parent
e053ad5c61
commit
c08d426c6b
1 changed files with 1 additions and 1 deletions
|
@ -169,7 +169,7 @@ module.exports = class Tracker extends CocoClass
|
||||||
eventObject["user"] = me.id
|
eventObject["user"] = me.id
|
||||||
dataToSend = JSON.stringify eventObject
|
dataToSend = JSON.stringify eventObject
|
||||||
# console.log dataToSend if debugAnalytics
|
# console.log dataToSend if debugAnalytics
|
||||||
$.post("#{window.location.protocol or 'http:'}//analytics.codecombat.com/analytics", dataToSend).fail ->
|
$.post("#{window.location.protocol or 'http:'}//analytics-cf.codecombat.com/analytics", dataToSend).fail ->
|
||||||
console.error "Analytics post failed!"
|
console.error "Analytics post failed!"
|
||||||
else
|
else
|
||||||
request = @supermodel.addRequestResource {
|
request = @supermodel.addRequestResource {
|
||||||
|
|
Reference in a new issue