curl --request POST \
--url https://www.closient.com/brands/api/v1/public/widget-events \
--header 'Content-Type: application/json' \
--data '
{
"brand_id": "2sP1Y9pZ4xQ6rNvHwT3kBe",
"event": "store_click",
"product_id": "",
"query": "",
"referrer": "https://acme.example.com/where-to-buy",
"store_id": "5kY2Z9wPqRtXvNbHcMjA1d"
}
'import requests
url = "https://www.closient.com/brands/api/v1/public/widget-events"
payload = {
"brand_id": "2sP1Y9pZ4xQ6rNvHwT3kBe",
"event": "store_click",
"product_id": "",
"query": "",
"referrer": "https://acme.example.com/where-to-buy",
"store_id": "5kY2Z9wPqRtXvNbHcMjA1d"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
brand_id: '2sP1Y9pZ4xQ6rNvHwT3kBe',
event: 'store_click',
product_id: '',
query: '',
referrer: 'https://acme.example.com/where-to-buy',
store_id: '5kY2Z9wPqRtXvNbHcMjA1d'
})
};
fetch('https://www.closient.com/brands/api/v1/public/widget-events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://www.closient.com/brands/api/v1/public/widget-events",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'brand_id' => '2sP1Y9pZ4xQ6rNvHwT3kBe',
'event' => 'store_click',
'product_id' => '',
'query' => '',
'referrer' => 'https://acme.example.com/where-to-buy',
'store_id' => '5kY2Z9wPqRtXvNbHcMjA1d'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://www.closient.com/brands/api/v1/public/widget-events"
payload := strings.NewReader("{\n \"brand_id\": \"2sP1Y9pZ4xQ6rNvHwT3kBe\",\n \"event\": \"store_click\",\n \"product_id\": \"\",\n \"query\": \"\",\n \"referrer\": \"https://acme.example.com/where-to-buy\",\n \"store_id\": \"5kY2Z9wPqRtXvNbHcMjA1d\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://www.closient.com/brands/api/v1/public/widget-events")
.header("Content-Type", "application/json")
.body("{\n \"brand_id\": \"2sP1Y9pZ4xQ6rNvHwT3kBe\",\n \"event\": \"store_click\",\n \"product_id\": \"\",\n \"query\": \"\",\n \"referrer\": \"https://acme.example.com/where-to-buy\",\n \"store_id\": \"5kY2Z9wPqRtXvNbHcMjA1d\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.closient.com/brands/api/v1/public/widget-events")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"brand_id\": \"2sP1Y9pZ4xQ6rNvHwT3kBe\",\n \"event\": \"store_click\",\n \"product_id\": \"\",\n \"query\": \"\",\n \"referrer\": \"https://acme.example.com/where-to-buy\",\n \"store_id\": \"5kY2Z9wPqRtXvNbHcMjA1d\"\n}"
response = http.request(request)
puts response.read_body{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}Track brand locator widget events
Fire-and-forget telemetry for the embeddable brand product locator widget. Designed for navigator.sendBeacon() and background fetch() calls — no auth, no rate limit, always returns 204 No Content. The body is structured-logged server-side (event type, brand id, referrer, product id, store id, query) but is not persisted to the database. Unknown event types are silently ignored.
curl --request POST \
--url https://www.closient.com/brands/api/v1/public/widget-events \
--header 'Content-Type: application/json' \
--data '
{
"brand_id": "2sP1Y9pZ4xQ6rNvHwT3kBe",
"event": "store_click",
"product_id": "",
"query": "",
"referrer": "https://acme.example.com/where-to-buy",
"store_id": "5kY2Z9wPqRtXvNbHcMjA1d"
}
'import requests
url = "https://www.closient.com/brands/api/v1/public/widget-events"
payload = {
"brand_id": "2sP1Y9pZ4xQ6rNvHwT3kBe",
"event": "store_click",
"product_id": "",
"query": "",
"referrer": "https://acme.example.com/where-to-buy",
"store_id": "5kY2Z9wPqRtXvNbHcMjA1d"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
brand_id: '2sP1Y9pZ4xQ6rNvHwT3kBe',
event: 'store_click',
product_id: '',
query: '',
referrer: 'https://acme.example.com/where-to-buy',
store_id: '5kY2Z9wPqRtXvNbHcMjA1d'
})
};
fetch('https://www.closient.com/brands/api/v1/public/widget-events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://www.closient.com/brands/api/v1/public/widget-events",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'brand_id' => '2sP1Y9pZ4xQ6rNvHwT3kBe',
'event' => 'store_click',
'product_id' => '',
'query' => '',
'referrer' => 'https://acme.example.com/where-to-buy',
'store_id' => '5kY2Z9wPqRtXvNbHcMjA1d'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://www.closient.com/brands/api/v1/public/widget-events"
payload := strings.NewReader("{\n \"brand_id\": \"2sP1Y9pZ4xQ6rNvHwT3kBe\",\n \"event\": \"store_click\",\n \"product_id\": \"\",\n \"query\": \"\",\n \"referrer\": \"https://acme.example.com/where-to-buy\",\n \"store_id\": \"5kY2Z9wPqRtXvNbHcMjA1d\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://www.closient.com/brands/api/v1/public/widget-events")
.header("Content-Type", "application/json")
.body("{\n \"brand_id\": \"2sP1Y9pZ4xQ6rNvHwT3kBe\",\n \"event\": \"store_click\",\n \"product_id\": \"\",\n \"query\": \"\",\n \"referrer\": \"https://acme.example.com/where-to-buy\",\n \"store_id\": \"5kY2Z9wPqRtXvNbHcMjA1d\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.closient.com/brands/api/v1/public/widget-events")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"brand_id\": \"2sP1Y9pZ4xQ6rNvHwT3kBe\",\n \"event\": \"store_click\",\n \"product_id\": \"\",\n \"query\": \"\",\n \"referrer\": \"https://acme.example.com/where-to-buy\",\n \"store_id\": \"5kY2Z9wPqRtXvNbHcMjA1d\"\n}"
response = http.request(request)
puts response.read_body{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}Body
Fire-and-forget analytics event from the brand locator widget.
Funnel stage of the widget interaction. Accepted values: widget_load, location_search, product_filter_change, store_click, get_directions_click.
^[^\x00]{0,}$Brand short id the widget is rendering. Empty when unknown (e.g. widget script load before init).
^[^\x00]{0,}$Page where the widget was embedded, taken from document.referrer. Truncated to 512 characters.
^[^\x00]{0,}$Brand catalog product short id, set on product_filter_change events. Empty otherwise. Truncated to 128 characters.
^[^\x00]{0,}$Physical store short id, set on store_click and get_directions_click events. Empty otherwise. Truncated to 128 characters.
^[^\x00]{0,}$Free-text search query the user typed. Set on location_search events only. Truncated to 256 characters.
^[^\x00]{0,}$Response
No Content