Frequently Asked Questions
Landing page builders

Trigger Webhooks Programmatically

How to trigger postback url within your site using AnyTrack Script

Once you have added the AnyTrack tag on your webpage, a programmer can trigger postback urls and add AnyTrack {click_id} for attibution automaticlly.

AnyTrack('postback', '{click_id}');

AnyTrack will automatticly trigger that hook and replace {click_id} with the current user client id.

If needed, it’s allowed to send more details with the webhook in the third argument:

AnyTrack('postback', '{click_id}', {
foo: 'bar',
example: 59.99,
// ...

Extracting AnyTrack `atclid`

On some cases, it's require to extract AnyTrack client id and use it later for attributuion. You can simpliy do so using the following code:

AnyTrack(function() {
// extract atclid once AnyTrack script is loaded
var atclid = AnyTrack('atclid');
// do something with the click id later on...
console.log('AnyTrack client:', atclid);

Learn more about triggering postbacks automatically for third-party pixels.