From 0035bcb91e8c0309d5e6118b17c98b708b2995bb Mon Sep 17 00:00:00 2001 From: deepzz0 Date: Tue, 1 Nov 2016 00:47:44 +0800 Subject: [PATCH] requesturi to referer --- front.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front.go b/front.go index d8ec137..e05efc6 100644 --- a/front.go +++ b/front.go @@ -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()))