Product Click Analytics API

Record which product a user clicked and the keywords that led to the click.

Last updated

On this page

Overview

Use the Product Click Analytics API to record a click on a product.

Endpoint

MethodPath
POST/api/v2/product-click

Request body parameters

Parameter nameRequirementTypeDescription
productIdrequiredinteger|stringID of the clicked product.
searchKeywordsoptionalstring|nullableComma-separated keywords that led to the product click, if any were typed.
typeoptionalstringAutocomplete or search. This parameter is dated and no longer needs to be provided.
tokenrequiredstringAthena XAI website token.

Example call

MethodPath
POST{{athena_url}}/api/v2/product-click

Body raw (JSON)

JSON
{
    "token": "website token",
    "productId": "2573655",
    “searchKeywords” : “majica,majica sa”
    "athenaUid": "athena-123-test",
    "source": "search",
    "channel": "search landing page"
}

Response

JSON
{
    "message":"Product Click Analytics was successfully stored.",
    "status":200
}