Webhooks

Learn how you can use webhook with AnyTrack to track conversions from any third party app, and send conversions to third party platforms.

Webhooks are instant notifications sent by an application to a unique target URL. Generally, the target URL enables the server to process the notification content.

With AnyTrack, webhook are used to send and receive data.

For example, incoming webhooks enable anytrack to receive data from Hubspot, Stripe, or any web application integrated with Zapier, and outgoing webhooks enable AnyTrack to send conversion data to Zapier, Make and any of their integrated web applications.

Before we dive into more details, here are the definitions published by the top Webhook providers:

Webhooks definitions by providers:

Zapier

Webhooks

Webhooks are automated messages sent from apps when something happens. They have a message—or payload—and are sent to a unique URL—essentially like an app's phone number or address.

Make (FKA integromat)

Webhooks

A webhook is a way for an app to let other apps (or the users of those apps) know that something has happened. Essentially, a webhook is a notification containing data about an event, sent by one app to another app or site.

Thanks to companies like Zapier and Make, what used to require special development skills can now be implemented by anyone with little or no prior coding knowledge.

📘

Good to know:

Webhook providers enable you to create scenarios with preset formats and data structures. Because each server has a predefined structure to send and/or receive data, you can build the scenario and let it run in the background. While the data structure and format are identical for every notification, the content is dynamically updated according to the event being sent.

Why are webhooks so important to digital marketers?

Sometimes you need to send or receive data from and to applications that are not directly integrated into AnyTrack. In such cases, Webhooks can be used to send data from AnyTrack (outbound) or to send data to AnyTrack (inbound).

Outbound Webhook

When you want to send data from AnyTrack to a third party application like or Google Data Studio.

Incoming Webhook

When you want to send data from a third party app to AnyTrack.

AnyTrack inbound webhooks

👍

Good to know:

Using AnyTrack inbound or outbound webhook you can connect your marketing and sales stack with AnyTrack to send and receive data with 10000s business apps.

The Anatomy of a Webhook

The webhook is composed of two elements. The URL which is provided by the receiving server, and the data payload which is sent by AnyTrack or the app where you are adding the webhook URL.

The Webhook URL

The webhook URL below is provided by Make:

https://hook.integromat.com/j8s8l9y0odfxokmb9ino98jxxxxxxxxx

The Payload

The payload is the data sent alongside the webhook URL:

{  
   "assetId": "TestAssetId",  
   "clientId": "TestClientId",  
   "externalClientIds": {  
      "googleAnalytics": "99532458.1592848149"  
   },  
   "clickId": "CLICKID",  
   "externalClickId": "test123",  
   "eventName": "Purchase",  
   "eventTime": "2021-09-09T14:08:10.499Z",  
   "eventTimestamp": 1631196490,  
   "eventValue": 3.77,  
   "currency": "EUR",  
   "userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 103 like Mac OS X) AppleWebKit/602.1.50 (KHTML, like Gecko) CriOS/56.0.2924.75 Mobile/14E5239e Safari/602.1",  
   "location": "https://example.com/catalog?category=123",  
   "brandName": "Test Brand Name",  
   "linkURL": "https://example.com/buy-now",  
   "linklabel": "cj-6",  
   "trackingGroupId": "cj",  
   "integrationId": "cj",  
   "transactionId": "TestTransactionId",  
   "transactionTax": 1.32,  
   "transactionShipping": 2.99,  
   "items": \[  
      {  
         "id": "SKU-123",  
         "name": "iPhone 12 Pro",  
         "price": 5.99,  
         "quantity": 1  
      },  
      {  
         "id": "SKU-567",  
         "name": "iPhone 12 Mini",  
         "price": 2.99,  
         "quantity": 2  
      }  
   \],  
   "traits": {  
      "email": "[email protected]",  
      "firstName": "John",  
      "lastName": "Doe",  
      "phone": "+1 541 754 3010",  
      "birthdate": "1984-04-19",  
      "city": "New York",  
      "state": "NY",  
      "zipcode": 12345,  
      "country": "United States",  
      "countryCode": "US"  
   },  
   "mainAttribution": {  
      "time": "2021-09-09T14:01:10.499Z",  
      "page": "example.com/catalog",  
      "referrer": "https://google.com/",  
      "source": "google",  
      "medium": "cpc",  
      "campaign": "anytrack",  
      "term": "",  
      "content": "",  
      "creative": "",  
      "gclid": "test123",  
      "fbclid": "",  
      "tblci": "",  
      "obclickid": "",  
      "msclkid": "",  
      "atclid": "",  
      "params": {  
         "tblci": ""  
      },  
      "tbclid": ""  
   },  
   "attributions": \[  
      {  
         "time": "2021-09-09T14:01:10.499Z",  
         "page": "example.com/catalog",  
         "referrer": "https://google.com/",  
         "source": "google",  
         "medium": "cpc",  
         "campaign": "anytrack",  
         "term": "",  
         "content": "",  
         "creative": "",  
         "gclid": "test123",  
         "fbclid": "",  
         "tblci": "",  
         "obclickid": "",  
         "msclkid": "",  
         "atclid": "",  
         "params": {  
            "tblci": ""  
         },  
         "tbclid": ""  
      }  
   ]  
}

How to use the AnyTrack webhook data in Zapier

  1. Create a Zap and select Webhook by Zapier.
  2. Grab the Webhook URL and Add it to your AnyTrack Webhooks.
    ba7bbd4e104f5b157a6e1fe4262b0e99
  3. Select the events that you want to trigger the zap with and hit test.
  4. Zapier will receive the Event Data instantly so that you can map the data for your zap action.
  5. Then you can select the App where you want to send the conversion data to.