Sends a serverside tracking event to the sitesights.io backend.
If you want to know more about the ClientId
Parameter, you should checkout the following this link.
Root object
Event name or category
List of parameters. Max length: 12, You can also have zero parameters but you have to send an empty array.
array element representing one parameter with its value
Name of the parameter
Value of the parameter
This holds all of the information about the visitor.
Holds information about browser.
Valid IP Address of the visitor.
UserAgent or empty string of the visitor.
Identifier container
Optional string identifier to identify current visitor. This is very specific to your website, for example if a lot of your users have an account and are logged in. You could use their Unqiue Account ID here (This will be hashed beyond recognition) or if you get the permission of your visitor, you can use something like fingerprinting. For a much more detailed explaination, please go here.
Holds information about languages
Language Code
Holds information about the page
Complete valid absolute URL including query part
Holds information about the referrer page
Complete valid absolute URL including query part
Holds information about the screen size
Screen height in pixels
Screen width in pixels
Holds information about the location
Continent Code
ISO_3166-1 Alpha-2 code
City Name
Postal code
Region Name
Region Code
Timezone Name
The response json
Code to determine success or error
Description of errors
{
"Name": "test",
"Parameters": [
{
"Name": "param1",
"Value": "value2"
}
],
"Metrics": {
"Browser": {
"IP": "91.48.119.123",
"UserAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/116.0"
},
"Identify": {
"ClientId": null
},
"Language": {
"Code": "en"
},
"Location": {
"CountryCode": "AF",
"ContinentCode": "AF",
"City": "test",
"Region": null,
"RegionCode": null,
"PostalCode": "33100",
"Timezone": null
},
"Page": {
"Absolute": "https://app.sitesights.io/analytics"
},
"Referrer": {
"Absolute": null
},
"Screen": {
"Width": 200,
"Height": 200
}
}
}