Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

How do I replay a Webhook in the preview mode?

It is possible to replay a Webhook, or a Matched Webhook, in the GTM server container's preview mode for debugging purposes

This article explains how to view the payload of received webhooks and how to replay a webhook in the preview mode of your server container.

Viewing Webhook Logs

In your AdPage dashboard, you can view the payload of every webhook you've received in the Webhook Logs. Below the graph you'll find the list of received webhooks, sorted from most recent to oldest. Each webhook log has two buttons: one to view the webhook payload and one to replay the webhook in the preview mode of your GTM server container.

Clicking the "</>" button opens the payload of that specific webhook. It contains all the marketing and ecommerce information that was sent from the CMS backend towards the server container.

Replaying a webhook

To replay a webhook, click the replay button next to the webhook you want. A popup opens where you need to add the preview header.

To find the preview header, open your GTM server container in preview mode. Click the three dots in the top-right corner and select Send requests manually.

Copy the x-gtm-server-preview HTTP header and paste it into the input field in the Webhook Replay popup in the Webhook Logs popup.

Click the Replay button and the webhook will be replayed in your sGTM preview mode.

Replaying a Matched Webhook

To replay a Matched Webhook, click on a Matched Webhook. At the bottom of this popup you're able to find a Replay functionality.

This options opens an input field where you'll have to enter a GTM Server Preview Header. To find the preview header, open your GTM server container in preview mode. Click the three dots in the top-right corner and select Send requests manually.

Copy the x-gtm-server-preview HTTP header and paste it into the input field in the Matched Webhook Replay input field.

Click the Replay button, and the Matched Webhook will be replayed in your sGTM preview mode.

Last updated

Was this helpful?