Articles on: Server Side

Testing webhooks and live preview mode via your sGTM

Where you can test the event tags on the web container using preview mode and simultaneously see in the preview mode of the server container which events are coming in and to which platforms they can be forwarded, this is not the case for webhook events. Webhooks, after all, pass through the backend of your CMS or another system and go directly to the server.



On trytagging, go to ‘Optimization’ under the ‘Preview Header’ section.

Turn on the preview header option.





Open the sGTM preview mode.

In the top right corner, click on the three dots and select ‘Send requests manually’.

Copy the ‘x-gtm-server-preview HTTP header’ and paste it into Trytagging.





Save this in Trytagging.

Go back to your server container preview mode and see the events stream in on your left-hand overview.



Now make a purchase yourself

Once you are done testing, make sure to deactivate the Preview Header setting within Trytagging. Don’t forget to save!

Updated on: 16/08/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!