google api 后端打点上报

https://developers.google.com/analytics/devguides/collection/protocol/ga4/sending-events?client_type=gtag

使用GA4 做打点上报会更更合适点 其中

measurement_id  api_secret在谷歌后台设定 
client_id 可以根据文档的js在前端获取
返回http状态码204 可以在实时事件中查询事件是否成功
https://www.google-analytics.com/debug/mp/collect 可检测参数结构是否有效
posted @ 2022-10-28 09:57  迷失在路上  阅读(82)  评论(0编辑  收藏  举报