Frequently Asked Questions
Powered By GitBook
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:

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

Use the following script accordingly:

1
<script>
2
AnyTrack('bind', 'OutboundClick', function() {
3
AnyTrack('postback', 'https://www.3rdpartypixel.foo/pixeltrack.pl?c={click_id}');
4
});
5
</script>
Copied!
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.
Last modified 1yr ago
Copy link
Contents
Example: