Placing Pixels
Now that we have everything set up the last step is to get the 2 pixels (segment and conversion) and get their “exchangeId”.
Get Request for Segment Pixel
curl -X GET -H ‘auth: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzZWF0SWQiOjEwMDAsInVzZXJJZCI6NCwiZXhwaXJlcyI6IjIwMjAtMDgtMjYgMDE6Mzk6MDkifQ.W475vyhEafa9TN94OaLkUEHWF7YkI6t-tJbKBIYqN6A’ ‘https://api.pontiac.media/pontiac/segment?segment-id=22672’
Response:
{“timestamp”:”Tue Aug 25 17:43:57 UTC 2020″,”response”:{“SegmentPixel”:{“pontiacSegmentId”:22672,”exchangeId”:23462667,”seatId”:1000,”name”:”testSegmemtPixel”,”pontiacAdvertiserId”:1713,”cost”:0.0,”segmentPixelType”:”firstParty”}},”accountStatus”:1,”seatId”:1000}
From this we will need the exchangeId, in this example it is 23462667.
Get Request for Conversion Pixel
curl -X GET -H ‘auth: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzZWF0SWQiOjEwMDAsInVzZXJJZCI6NCwiZXhwaXJlcyI6IjIwMjAtMDgtMjYgMDE6Mzk6MDkifQ.W475vyhEafa9TN94OaLkUEHWF7YkI6t-tJbKBIYqN6A’ ‘https://api.pontiac.media/pontiac/conversion-pixel?pixel-id=980’
Response:
{“timestamp”:”Tue Aug 25 17:53:12 UTC 2020″,”response”:{“ConversionPixel”:{“pontiacPixelId”:980,”exchangeId”:1361577,”seatId”:1000,”name”:”testConversionPixel”,”pontiacAdvertiserId”:1713,”triggerType”:”hybrid”,”status”:1,”orderIdMacro”:0,”valueMacro”:0,”postViewExpireDays”:30,”postClickExpireDays”:30,”minMinutesPerConv”:10}},”accountStatus”:1,”seatId”:1000}
From this we will need the exchangeId, in this example it is 1361577.
Format to build the correct urls:
Segment Pixels:
https://one.progmxs.com/seg?add=XXXXXXXX&t=2
Conversion Pixels:
https://one.progmxs.com/px?id=XXXXXXXX&t=2
Just replace the “XXXXXXXX” with the exchange Ids from the responses.
The full html tags with the correct wrappers are as follows:
Image pixel for our segment pixel:
<img src=”https://one.progmxs.com/seg?add=23462667&t=2″ width=”1″ height=”1″ />
Image pixel for our conversion pixel:
<img src=”https://one.progmxs.com/px?id=1361577&t=2″ width=”1″ height=”1″ />
Place these in the headers of each of the pages that you wish to put them on.