Omnichannel Experiences

Omnichannel Social Proof Action Requests

there's only one omnichannel social proof action template, and it works on both product detail pages, which display a single product id (pid), and on pages that display multiple pids, such as product category listings, search results, and cart pages therefore, you must specify in the engine api request if the action's messages should appear on product detail pages or on pages that display multiple pids if you want social proof messages to appear or not to appear on a specific page type, then use one of the page type action condition options when configuring the action in the monetate platform see target, event, & condition mapping in target, event, & condition mapping for more information request for messages on product detail pages here is an example of an engine api request targeting product detail pages the model monetate\ context\ productdetailview event specifies that the action targets product detail pages example omnichannel social proof action request targeting product detail pages { "channel" "a 927c8120/p/example com", "monetateid" "5 1982474515 1616616018101", "events" \[ { "eventtype" "monetate\ decision\ decisionrequest", "requestid" "sample unique request id abc 123", "includereporting" false }, { "eventtype" "monetate\ context\ productdetailview", "products" \[ { "sku" "111", "productid" "111" }, { "productid" "product57" } ] } ] } the response appears much like the following example example omnichannel social proof action response { "meta" { "code" 200 }, "data" { "responses" \[ { "requestid" "sample unique request id abc 123", "actions" \[ { "actionid" 4185123, "actiontype" "monetate\ action\ socialproofdatav2", "socialproofdata" { "prooftype" "view", "lookbackminutes" 180, "products" \[ { "productid" "pid1", "count" 10 }, { "productid" "pid2", "count" 20 } ] }, "component" "foo", "message" { "type" "html", "href" "https //{monetate cdn}/img/1/1094/4339665 htm", "data" "\<p>my message\</p>\n" } } ] } ] } } request for messages on pages displaying multiple product ids here is an example of an engine api request targeting product category listings, search results pages, cart pages, or other page types that contain multiple product ids the model monetate\ context\ productthumbnailview event specifies that the action targets pages displaying multiple pids example omnichannel social proof action request targeting multi pid pages { "channel" "a 927c8120/p/example com", "monetateid" "5 1982474515 1616616018101", "events" \[ { "eventtype" "monetate\ decision\ decisionrequest", "requestid" "sample unique request id abc 123", "includereporting" false }, { "eventtype" "monetate\ context\ productthumbnailview", "products" \[ "product21", "product22", "product23" ] } ] } the response appears much like the following example example omnichannel social proof action response { "meta" { "code" 200 }, "data" { "responses" \[ { "requestid" "sample unique request id abc 123", "actions" \[ { "actiontype" "monetate\ action\ socialproofdatav2", "actionid" 4185123, "products" \[ { "count" 0, "lookbackminutes" 60, "prooftype" "view", "productid" "product22" }, { "count" 0, "lookbackminutes" 60, "prooftype" "view", "productid" "product23" }, { "count" 0, "lookbackminutes" 60, "prooftype" "view", "productid" "product21" } ], "component" "foo", "message" { "href" "https //{monetate cdn}/img/1/1094/4339665 htm", "data" "\<p>my message\</p>\n" } } ] } ] } }