From 33e3221d9686a327265730dc33d982e340a56d03 Mon Sep 17 00:00:00 2001 From: Syd Xu Date: Tue, 10 Oct 2023 11:38:31 +0800 Subject: [PATCH] fix(track): click monitor url add __CAID__ macro --- marketing-api/api/track/click.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/marketing-api/api/track/click.go b/marketing-api/api/track/click.go index d246dafe..149e5a97 100644 --- a/marketing-api/api/track/click.go +++ b/marketing-api/api/track/click.go @@ -22,6 +22,7 @@ var DEFAULT_CLICK_FIELDS = []string{ "android_id", "oaid", "os", + "caid", "mac", "mac1", "ip", @@ -34,6 +35,7 @@ var DEFAULT_CLICK_FIELDS = []string{ "model", "union_site", "caid1", + "caid2", } // Click 生成击检测链接 @@ -73,6 +75,8 @@ func Click(baseUrl string, fields []string, adVersion model.AdVersion) string { values.Set("android_id", "__ANDROIDID__") case "oaid": values.Set("oaid", "__OAID__") + case "caid": + values.Set("caid", "__CAID__") case "os": values.Set("os", "__OS__") case "mac":