Use cloudflare for analytics so we get the correct SSL cert.

This commit is contained in:
Rob 2016-05-31 19:56:37 -07:00
parent e053ad5c61
commit c08d426c6b

View file

@ -169,7 +169,7 @@ module.exports = class Tracker extends CocoClass
eventObject["user"] = me.id
dataToSend = JSON.stringify eventObject
# 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!"
else
request = @supermodel.addRequestResource {