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

facebook nodejs business sdk - Meta conversion API not able to send IP address and user-agent - Stack Overflow

programmeradmin0浏览0评论

I am using the facebook business sdk to send event using meta conversion API. This is what the final event Object looks like

ServerEvent {
  _event_name: 'course_transaction',
  _event_time: 1738311719,
  _user_data: UserData {
    _client_ip_address: '168.212.226.204',
    _client_user_agent: 'PostmanRuntime/7.43.0',
    _fbp: undefined,
    _fbc: undefined,
    _subscription_id: undefined,
    _fb_login_id: undefined,
    _lead_id: undefined,
    _dobd: undefined,
    _dobm: undefined,
    _doby: undefined,
    _madid: undefined,
    _anon_id: undefined,
    _app_user_id: undefined,
    _ctwa_clid: undefined,
    _page_id: undefined,
    _emails: [ '[email protected]' ],
    _first_names: [ 'john Doe' ],
    _external_ids: [ '113' ],
    _phones: [ '+9111111111111' ]
  },
  _custom_data: CustomData {
    _value: undefined,
    _currency: undefined,
    _content_name: undefined,
    _content_category: undefined,
    _content_ids: undefined,
    _contents: undefined,
    _content_type: undefined,
    _order_id: undefined,
    _predicted_ltv: undefined,
    _num_items: undefined,
    _search_string: undefined,
    _status: undefined,
    _item_number: undefined,
    _delivery_category: undefined,
    _custom_properties: { coupon: '', type: 'java' }
  },
  _app_data: undefined,
  _event_source_url: undefined,
  _event_id: undefined,
  _opt_out: undefined,
  _action_source: 'website',
  _data_processing_options: undefined,
  _data_processing_options_country: undefined,
  _data_processing_options_state: undefined,
  _advanced_measurement_table: undefined,
  _messaging_channel: undefined,
  _original_event_data: undefined,
  _attribution_data: undefined
}

as you can see both IP and user agent fields are set.

When I view the event in Meta dashboard it tells me that the event has a low score and sending user ip and user-agent would imporve the score. Why is meta not recieving the IP even though its set?

Any insight is much appreciated Thanks

发布评论

评论列表(0)

  1. 暂无评论