Links

Fire Third-Party Pixels

How to fire third party pixels for onsite engagements
If you want to fire an external pixel during for engagement events such as outbound clicks or form submissions, you can do so by adding the following script to your <head> section.

Example:

You run campaigns on the an ad network that is neither integrated with AnyTrack nor it supports server side tracking. Yet, you still want to report engagement events to their pixel.

They provide you with an image pixel:

<img src="https://www.3rdpartypixel.foo/pixeltrack.pl?c=xxxx" width="1" height="1" />

Use the following script accordingly:

<script>
AnyTrack('bind', 'OutboundClick', function() {
AnyTrack('postback', 'https://www.3rdpartypixel.foo/pixeltrack.pl?c={click_id}');
});
</script>
This function works according to the AnyTrack standard engagement events terminology.
  • OutboundClick - Outbound clicks
  • FormSubmit - Form submissions
Whenever AnyTrack trigger an OutboundClick event, the script above will run as well and fire the pixel automatically.