Stape
Search
Try for free

Auto convert of webhook’s data in XML to JSON with Stape’s power-up

Published
Sep 25, 2024

Using webhooks is a handy way to track events outside the website or app, for example, in the offline store. However, data in webhooks is often sent in XML format. For better compatibility with server GTM, it is highly recommended that data is used in JSON.

In this article, we will review the solution for this problem - XML to JSON power-up by Stape.

XML to JSON use case

Convert webhook data from XML to JSON. Some webhooks send data in XML; however, GTM server-side containers work better with JSON format as it is natively compatible with JavaScript.

This can be done automatically with the help of the XML to JSON power-up.

How to set up XML to JSON power-up?

1. Register or log in to the Stape account to set up and use power-up. You can use the power-up for free regardless of the Stape’s plan.

2. Go to Stape admin → Power-ups → click “Use” next to XML to JSON.

JSON power-up

3. Click “Turn on to activate power-up” and click “Save changes”. The power-up will convert XML data to JSON format.

JSON power-up configuration

Conclusion

Converting data in XML to JSON has never been easier - our power-up does it automatically. The only thing you need to do is activate the power-up in Stape’s admin. So that all the data from webhooks will be compatible with the server GTM container.

If you face any problems with the power-up, feel free to contact our support.

Try Stape for all things server-sideright now!