AnyTrack docs
πŸ”— WebsiteπŸ– Feature Requestsβš™ IntegrationsπŸ‘‰ Sign up
  • Getting Started
  • Archive
  • docs
    • Advanced Settings
    • Elementor
    • Integrations
    • Taboola Integration
    • AnyTrack Guide to Conversion Tracking
    • The AnyTrack Tracking Code
    • Account Setup Tutorial
    • βš’οΈPixel & Analytics Integrations
    • Getting Started with AnyTrack
    • AnyTrack Core Features & Concepts
    • Conversion logic
    • AutoTrack
    • AutoTag copy from readme
    • AutoTag from Gitbook
    • AnyTrack Initial Setup
    • Google Tag Manager
    • Google Analytics integration
    • Enhance ROI: Facebook Postback URL for Affiliates
    • Facebook Conversion API and iOS 14 tracking restrictions
    • Affiliate Link Tracking
    • Form Submission Tracking
    • Form Tracking / Optins
    • Analytics & Reporting
    • Webhooks
    • Trigger Events Programmatically
    • Custom Events Names
    • Trigger Postbacks Programmatically
    • Redirectless tracking
    • Cross-Domain Tracking
    • Event Browser & Debugger
    • Fire Third-Party Pixels
    • Multi-currency
    • Frequently Asked Questions
    • Affiliate Networks Integrations
    • Partnerize integration
    • Affiliate Networks link attributes "cheat sheet"
    • Postback URL Parameters
    • ClickBank Instant Notification Services
    • Tune integration (AKA Hasoffers)
    • LeadsHook Integration
    • Frequently Asked Questions
    • Shopify Integration
    • Custom Affiliate Network Integration
    • Impact Postback URL
    • ShareAsale integration
    • IncomeAccess
    • HitPath
    • Phonexa
    • CJ Affiliates Integration
    • AWin integration
    • Pepperjam integration
    • Google Ads Integration
    • πŸ’‘Bing Ads server to server tracking
    • Outbrain Postback URL
    • Google Analytics Goals
    • External references & links
    • Google Ads Tracking Template
    • Google Analytics Goal Template
    • Affiliate network integration request
    • Troubleshooting guidelines
    • Convertri Integration
    • ClickFunnels Integration
    • Unbounce Integration
    • How AnyTrack works with link trackers plugins
    • Thirsty Affiliates
    • Redirection
    • Pretty Links Integration with AnyTrack
    • Difference between Search terms and search keyword
    • Facebook Server-Side API (legacy)
Powered by GitBook
On this page
  1. docs

Trigger Postbacks Programmatically

How to trigger postback url from your site using the AnyTrack TAG.

PreviousCustom Events NamesNextRedirectless tracking

Last updated 4 years ago

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

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

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:

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

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:

<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 .

postback
triggering postbacks automatically for third-party pixels