最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

firebase - Google Analytics Api is not logging event if hit from server or via CURL - Stack Overflow

programmeradmin1浏览0评论

I am trying to hit this curl but not getting events on firebase console. Below is curl example, I have verified creds as well. Same creds when used in mobile is working but not from server or with CURL method.

curl --location ';api_secret=hashAPISecret&debug_mode=1' \
--header 'Content-Type: application/json' \
--data '{
    "client_id": "1876543456789",
    "events": [
      {
        "name": "rom_purchase",
        "params": {
          "useid": "1234567890",
          "order_id": "17c7fb4b2af67324a089713a",
          "plan_id": "176a79f6b3dbfcb365a50a09",
          "plan_name": "2 month",
          "price": 200,
          "status": "SUCCESS",
          "timestamp": "2025-03-05T07:20:43.880Z"
        }
      }
    ]
  }'

Response:

{
  "validationMessages": [ ]
}

I used debug mode as well, but seems that its not helping me to see event on firebase console.

Can anyone help me with this? What is something I am dong wrong?

发布评论

评论列表(0)

  1. 暂无评论