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.
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.
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.
3. Click “Turn on to activate power-up” and click “Save changes”. The power-up will convert XML data to JSON format.
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.
Click Try for free and check all the solutions and benefits of Stape at no cost!