requesturi to referer

This commit is contained in:
deepzz0
2016-11-01 00:47:44 +08:00
parent 2840f5b375
commit 0035bcb91e

View File

@@ -215,7 +215,7 @@ func HandleBeacon(c *gin.Context) {
cookie, _ := c.Cookie("u")
vals.Set("cid", cookie)
vals.Set("dl", c.Request.Host+c.Request.RequestURI)
vals.Set("dl", c.Request.Referer())
vals.Set("uip", c.ClientIP())
go func() {
req, err := http.NewRequest("POST", "https://www.google-analytics.com/collect", strings.NewReader(vals.Encode()))