1. イベントAPIを使用してイベントを追跡する

イベントAPIリファレンスとデータモデル

日本語翻訳に関する免責事項

このページの翻訳はAIによって自動的に行われました。可能な限り正確な翻訳を心掛けていますが、原文と異なる表現や解釈が含まれる場合があります。正確で公式な情報については、必ず英語の原文をご参照ください。

イベントAPIを使用する場合は、すべてのオブジェクトとキーの詳細なデータモデルと説明については、APIリファレンス を参照してください。

特定のイベントに必要なキーとオブジェクトの詳細については、それらのイベントを参照してください。例えば、ブックマーク追加イベントの作成ウィジェット・ビュー・イベントの作成、または対応する必須キーの ウィジェット・クリック・イベントの作成 を参照してください。

APIリクエストのデータモデルの例を次に示します。

メモ

このサンプルに示されているすべてのキーが、すべてのイベント オブジェクトに必要というわけではありません。そのイベントに必要なキーの詳細については、各イベントを参照してください。

{
  "action": "<event action>",
  "action_sub_type": "<event action subtype>",
  "client_time_ms": 1660088972963,
  "interaction_id": "<identifier to group visitor's interactions>",
  "name": "<event name>",
  "page_load_time_ms": 1660088972963,
  "request_id": "<identifier of search request>",
  "user_id": "<unique ID of visitor>",
  "uuid": "<unique ID of visitor>",
  "value": {
    "context": {
      "browser": {
        "app_type": "browser",
        "device": "mobile",
        "user_agent": "Mozilla/5.0 (iPhone14,6; U; CPU iPhone OS 15_4 like Mac OS X) AppleWebKit/602.1.50 (KHTML, like Gecko) Version/10.0 Mobile/19E241 Safari/602.1"
        },
      "geo": {
        "city": "San Francisco",
        "country": "us",
        "ip": "207.242.49.4",
        "state": "CA",
        "zip": "94403"
        },
      "page": {
        "locale_country": "us",
        "locale_currency": "usd",
        "locale_language": "en",
        "referrer": "<URL of the referring page>",
        "title": "<Title of the current page>",
        "uri": "<URL of the current page>"
        },
      "user": {
        "addn_attributes": "<Custom map of user attributes>",
        "address": {
          "address_line_1": "9090 Main Street",
          "address_line_2": "Unit 204",
          "country": "US",
          "state": "CA",
          "zip": "94403"
          },
        "cuid": "<Permanent user ID in your system>",
        "eid": "<Opaque ID that represents the user's email ID>",
        "email": "[email protected]",
        "fbid": "<Facebook ID of the user>",
        "gender": "male",
        "segments": ["user_group_1", "user_group_2"...]
        }
      },
    "entities": [
        {
          "attributes": {
            "author": "<Author of entity>"
            },
          "entity_subtype": "article/blog",
          "entity_type": "content, product",
          "id": "<External unique identifier for the entity>",
          "uri": "<URI of the entity>"
          }
      ],
    "filters": [
      {
        "display_name": [
          "<Display name>"
          ],
        "end_value": "<string>",
        "facet_position": "<string>",
        "field": "<string>",
        "name": "<string>",
        "start_value": "<string>",
        "title": "<string>",
        "value": [
          "<string>"
          ],
        "value_position": [
          0
          ]
        }
      ],
    "index": 0,
    "request": {
      "advanced_query_text": "<Query text>",
      "keyword": "<Keyword>",
      "modified_keyword": "<Modified keyword>",
      "num_requested": 0,
      "num_results": 0,
      "page_number": 0,
      "page_size": 0,
      "redirect_url": "<Redirect URL>",
      "total_results": 0,
      }
    "review": {
      "comment": "<Comment text>",
      "id": "<Review ID>",
      "rating": 1
      },
    "rfkid": "<widget ID>",
    "transaction": {
      "coupon": "string",
      "order_id": "string",
      "order_subtotal": 0,
      "order_total": 0
      }
    }
  }
この記事を改善するための提案がある場合は、 お知らせください!