DEV Community

Mert Enercan for Hardal

Posted on • Originally published at usehardal.com

Send your analytics data wherever you want with Hardal

Send your analytics data wherever you want with Hardal

Greetings, mighty internet.

Today, I'd like to make a guidance about how you can transfer any kind of web events to literally any platform you want with Hardal Signal’s Custom Destinations feature that is published with version 1.0.4.

Concept

Basically, you can forward incoming request to any kind of service that is accepts http POST and GET requests. The craziest part is, you can manage payload format as well!

It all starts with clicking “Add Destination” button that is placed on your Signal’s Connection tab. You’ll encounter with this dialog below 👇

You may also use built-in templates!

  • Endpoint Label: Display Name of your connection

  • Endpoint ID: Unique identifier for your connection

  • Endpoint URL: Destination URL that data will sent

  • Request Method: HTTP Request method

  • Content Type (POST Method Only): You can select either application/json *or *application/x-www-form-urlencoded option for your Content-Type Header

  • Request Format (POST Method Only): This is the payload format that can be shaped with your destinations requirements. You can use build-in variables to form all kind of JSON format to use.

  • Query Parameters (GET Method Only): And this one stands for defining your query parameters within get requests. You can also use variables for this one!

  • Additional Headers: You can specify custom headers. This is the place that you want to take a look if your server has some kind of authentication mechanism.

Now i’ll be creating 3 custom destination to cover all the possible ways of transfer your data. Here goes my configs

And as you can see down below, i am successfully receiving my own analytics data with Hardal Signal SDK

Here goes my server logs

Let us cook ️‍🔥

Peace.

Top comments (0)