Frequently Asked Questions
Powered By GitBook
Trigger Postbacks Programmatically
How to trigger postback url from your site using the AnyTrack TAG.
Once you have added the AnyTrack tag on your webpage, a programmer can trigger postback urls and add AnyTrack {click_id} for attribution automatically.
1
<script>
2
AnyTrack('postback', 'https://hook.integromat.com/gnc44c?clickId={click_id}');
3
</script>
Copied!
AnyTrack will automatically 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:
1
<script>
2
AnyTrack('postback', 'https://hook.integromat.com/gnc44c?clickId={click_id}', {
3
brand_name: 'bar',
4
value: 59.99,
5
// ...
6
});
7
</script>
Copied!

Extracting AnyTrack `atclid`

On some cases, it's require to extract AnyTrack client id and use it later for attribution. You can simply do so using the following code:
1
<script>
2
AnyTrack(function() {
3
// extract atclid once AnyTrack script is loaded
4
var atclid = AnyTrack('atclid');
5
6
// do something with the click id later on...
7
console.log('AnyTrack client:', atclid);
8
});
9
</script>
Copied!
Last modified 7mo ago