Kir*_*ill 9 google-analytics-api measurement-protocol google-analytics-4
当我直接通过 HTTPS 请求而不使用 Firebase 或 gtag.js 使用 GA4 测量协议时,Google Analytics(分析)不会显示任何用户信息,例如屏幕分辨率、位置、语言等,而我尝试通过 user_properties 或事件传递这些信息。也许我使用了错误的标签或错误的位置来传递这些变量?
我尝试使用 sr/screen_resolution、ul/location/country/geoid、language/lg、...
如何手动传递这些变量以及以哪种格式?Firebase 和 gtag 自动收集它们,但由于我不使用它们(也不建议使用它们),我想知道如何以正确的方式做到这一点。
ga4 的测量协议非常有限,它不会让您发送由 firebase、google tag manager 或任何其他 google 创建的系统发送的所有保留事件。
您可以发送与项目相关的位置,但仅此而已
items": [
{
"item_id": "SKU_12345",
"item_name": "Stan and Friends Tee",
"affiliation": "Google Merchandise Store",
"coupon": "SUMMER_FUN",
"currency": "USD",
"discount": 2.22,
"index": 0,
"item_brand": "Google",
"item_category": "Apparel",
"item_category2": "Adult",
"item_category3": "Shirts",
"item_category4": "Crew",
"item_category5": "Short sleeve",
"item_list_id": "related_products",
"item_list_name": "Related Products",
"item_variant": "green",
"location_id": "ChIJIQBpAG2ahYAR_6128GcTUEo",
"price": 9.99,
"quantity": 1
Run Code Online (Sandbox Code Playgroud)
像屏幕分辨率、语言之类的东西不能直接通过测量协议发送,当您使用提供的 SDK 时,它们会自动发送。根据我对团队的了解(自发布以来我一直在询问),没有计划允许测量协议能够发送所有标准保留的内部事件数据。
| 归档时间: |
|
| 查看次数: |
846 次 |
| 最近记录: |