Conversion Tracking
Implementation

The trusted conversion tracking endpoint is a REST API that allows you to send conversion data to trusted. The POST Endpoint is available at https://api.trusted.net/v1/conversions.

Request Payload

FieldTypeDescriptionExample
actionIdstringYou get this ID from trustedf702349a-a2a7-f985-ad8a-2193f96d0141
referenceIdstringYour Sale/Lead ID, can be hashed4d040d30a8e06f7198aedb6b12386fe
dateTimestring (Format: yyyy-MM-dd HH:mm:ss)conversion Date and Time2023-03-14 15:25:10
clickIdstringtclid, automatically appended from trustedfd2Jkla3
timezone?string (default: Europe/Berlin)IANA time-zoneAmerica/New_York
isTest?boolFor testing purpose1

Examples

#!/bin/bash
 
# Set the API endpoint URL
api_url="https://api.trusted.net/v1/conversions"
 
# Define the conversion data as a JSON string
conversion_data='{"actionId": "myActionId", "referenceId": "myReferenceId", "dateTime": "2023-04-07 12:00:00", "isTest": 1}'
 
# Make a POST request to the API endpoint with the conversion data as the request body
curl -X POST -H "Content-Type: application/json" -d "$conversion_data" "$api_url"