Implement Tracking Events
...
Tracker API
Spa-tracker

endpoint for delivering conversion events and associated data back to the tracking infrastructure

code examples curl location 'https //localhost/conversion' \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ data '{ "user id" "", "transaction id" "", "site id" "", "publisher id" "", "currency" "", "products" \[ { "gtin" "", "group id" "", "brand" "", "price" "", "quantity" "" } ] }'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var raw = json stringify({ "user id" "", "transaction id" "", "site id" "", "publisher id" "", "currency" "", "products" \[ { "gtin" "", "group id" "", "brand" "", "price" "", "quantity" "" } ] }); var requestoptions = { method 'post', headers myheaders, body raw, redirect 'follow' }; fetch("https //localhost/conversion", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("https //localhost/conversion") https = net http new(url host, url port) https use ssl = true request = net http post new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" request body = json dump({ "user id" "", "transaction id" "", "site id" "", "publisher id" "", "currency" "", "products" \[ { "gtin" "", "group id" "", "brand" "", "price" "", "quantity" "" } ] }) response = https request(request) puts response read body import requests import json url = "https //localhost/conversion" payload = json dumps({ "user id" "", "transaction id" "", "site id" "", "publisher id" "", "currency" "", "products" \[ { "gtin" "", "group id" "", "brand" "", "price" "", "quantity" "" } ] }) headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("post", url, headers=headers, data=payload) print(response text) responses // ok // request payload does not comply to the conversion json schema