Retrieves all piggyback tracking pixels currently associated with the specified site.
Reference
GET https://YOUR-NETWORK-DOMAIN/rest-api/piggyback/site/get.do
Retrieves all piggyback tracking pixels currently associated with the specified site. The response JSON contains a 'site_piggybacks' array with each piggyback's ID, type (BEACON or URL), code/URL value, status, and sampling configuration. The caller needs the Piggyback Pixel Tracking permission and at least a view share of the site. The list comes back whether the site's piggybacks are switched on or off, as the console grid shows it; 'piggybacksEnabled' tells which - while it is false none of them fire.
Query Params
siteIdintegerrequired
The unique numeric identifier of the site whose piggyback tracking pixels should be retrieved
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://YOUR-NETWORK-DOMAIN/rest-api/piggyback/site/get.do?siteId=3001");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());