Skip to main content

How do I send Clickstream data to a webhook?

Updated over a month ago
Rebrandly

Rebrandly Clickstream is a real-time event stream that forwards click data to your own systems or third-party systems for custom processing, analytics, or storage. The raw click events include metadata like timestamp, referrer, device, and location.

Check if it's available on your subscription plan, and contact us if you'd like to upgrade and set it up.

Here's how we will set things up with you:

  1. To grant permissions, create an authentication header and provide it to us to authorize the integration.

  2. Send us the following information:
    a. API endpoint
    b. API method to use between POST and PUT
    c. Authentication header key and authentication header value
    ​

  3. Wait for a confirmation from our side.
    ​

  4. You will start receiving the Clickstream data, like this click event example:

{
  "data":
    [{
      "timestamp": "2019-07-02T14:07:06.981094Z",
      "client": {
        "language": "pt",
        "location": {
          "country": "br"
        },
        "agent": {
          "browser": {
            "name": "facebook-app",
            "version": "227.0.0.43.158"
          },
          "os": {
            "name": "android",
            "version": "android-9.0-pie"
          },
          "device": {
            "name": "smartphone"
          },
          "type": "human"
        },
        "session": {
          "started": "2019-07-02T14:07:06.981094Z",
          "first": true
        }
      },
      "referral": {
        "hostname": "m.facebook.com",
        "protocol": "http",
        "path": "/",
        "origin": {
          "type": "social",
          "name": "facebook"
        }
      },
      "route": {
        "id": "a1ec86bf91bfe763ad02f602259ea0a9",
        "slashtag": "<YOUR LINK'S SLASHTAG HERE>",
        "creator": {
          "id": "wf09bfww4eb9jkw2844555e1ce9af4f2",
          "workspace": {
            "id": "d88bfe5fgd14b2ghb44538b9aekpw89",
            "name": "<YOUR WORKSPACE NAME HERE>"
          }
        },
        "domain": {
          "id": "9a5ae320f3e247ef8c9b6061131bb517",
          "raw": "<YOUR DOMAIN NAME HERE>"
        },
        "destination": {
          "raw": "https://www.yourdestination.com/?utm_source=cs_facebook_post&utm_medium=customersuccess",
          "protocol": "https",
          "hostname": "www.yourdestination.com",
          "path": "/",
          "params": {
            "query": {
              "utm_source": [
                "cs_facebook_post"
              ],
              "utm_medium": [
                "customersuccess"
              ]
            }
          }
        }
      }
    }],
  "key": "abcxyz123"
  }
Did this answer your question?