首页 文章

Facebook分析无法识别平台

提问于
浏览
1

我为iOS和Android应用程序配置了FB分析 . 在正确查看事件时,它确实识别iOS平台 . 但是对于Android来说,它只有30%的资格才能成为android . 这里's how those events are shown in FB analytics debugging screen: ('innewartości' stands for '其他')
'Inne wartości stands for 'other'

我想知道FB如何表彰?通过广告ID?阅读文档,但没有找到任何关于此的信息 .

这是一个被识别为android的FB响应:(混淆了一些细节):

{
  "req": {
    "method": "POST",
    "url": "https://graph.facebook.com/v2.6/000000000/activities",
    "data": {
      "advertiser_id": "2e9ab235-84c0-4b22-8421-xxxxxxxxxxxxx",
      "advertiser_tracking_enabled": 1,
      "application_tracking_enabled": 1,
      "bundle_id": "com.myapp",
      "bundle_short_version": "1.7.0",
      "event": "CUSTOM_APP_EVENTS",
      "custom_events": [
        {
          "_appVersion": "1.7.0",
          "_eventName": "App Launched",
          "_logTime": 1476295031,
          "fb_currency": "USD"
        }
      ]
    },
    "headers": {
      "user-agent": "Segment.io/1.0",
      "content-type": "application/json"
    }
  },
  "header": {
    "access-control-allow-origin": "*",
    "pragma": "no-cache",
    "cache-control": "private, no-cache, no-store, must-revalidate",
    "facebook-api-version": "v2.6",
    "expires": "Sat, 01 Jan 2000 00:00:00 GMT",
    "content-type": "text/javascript; charset=UTF-8",
    "x-fb-trace-id": "BH4kXNYDDL+",
    "x-fb-rev": "2617769",
    "x-fb-debug": "eNcBCpuFfVirTkclVvZ0WeYh60r+2tBIqg6lKPCrWNtGASVULq6jrVwQxqYulMUyCI3ZaBhZRQ64xdxdXOQg2w==",
    "date": "Wed, 12 Oct 2016 17:57:24 GMT",
    "connection": "close",
    "content-length": "16"
  },
  "status": 200,
  "text": "{\"success\":true}"
}

这个被 not 识别为android:

{
  "req": {
    "method": "POST",
    "url": "https://graph.facebook.com/v2.6/000000000000/activities",
    "data": {
      "advertiser_id": "88697a4d-f658-41d3-84db-xxxxxxxxxx",
      "advertiser_tracking_enabled": 1,
      "application_tracking_enabled": 1,
      "bundle_id": "com.myapp",
      "bundle_short_version": "1.7.0",
      "event": "CUSTOM_APP_EVENTS",
      "custom_events": [
        {
          "_appVersion": "1.7.0",
          "_eventName": "App Launched",
          "_logTime": 1476206487,
          "fb_currency": "USD"
        }
      ]
    },
    "headers": {
      "user-agent": "Segment.io/1.0",
      "content-type": "application/json"
    }
  },
  "header": {
    "access-control-allow-origin": "*",
    "pragma": "no-cache",
    "cache-control": "private, no-cache, no-store, must-revalidate",
    "facebook-api-version": "v2.6",
    "expires": "Sat, 01 Jan 2000 00:00:00 GMT",
    "content-type": "text/javascript; charset=UTF-8",
    "x-fb-trace-id": "AqASb9qsUSx",
    "x-fb-rev": "2613995",
    "x-fb-debug": "aDLUDoC+7vmlVY28UsEtusYgzdkmxK8qVrn4gCo29ovLw9Us27Gh/Iy1163dfTDF5rKg/JWiv3xsfq3hugijlg==",
    "date": "Tue, 11 Oct 2016 17:21:37 GMT",
    "connection": "close",
    "content-length": "16"
  },
  "status": 200,
  "text": "{\"success\":true}"
}

我看不到任何有趣的变化,这将指向一个Android平台 .

更新

正如Ramkumar所建议的那样,我尝试用FB sdk发布事件,但确实有效 . 我发送给FB的段落中缺少'd really like to keep using segment, so keeping this as solution is not possible in my app. I wonder what' . 这是因为session_id在使用FB SDK时存在但在段请求中不存在? See gist with dump from adb logcat when using FB SDK

1 回答

  • 2

    从您的帖子看,您似乎正在使用segment.io将事件发送到我们的服务器 . 如果您使用FB SDK发送事件,您将不会看到此问题 - 请您尝试一下?

相关问题