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.

<script>
AnyTrack('postback', 'https://hook.integromat.com/gnc44c?clickId={click_id}');
</script>

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:

<script>
AnyTrack('postback', 'https://hook.integromat.com/gnc44c?clickId={click_id}', {
foo: 'bar',
example: 59.99,
// ...
});
</script>

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:

<script>
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);
});
</script>

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