The AdPage Webhook Client is a server-side Google Tag Manager client that processes incoming webhook data from AdPage plugins (WordPress/Magento) and Shopify orders. It automatically formats the data to work seamlessly with Google Analytics 4 and other measurement tools.
- Automatically processes AdPage plugin webhook data
- Native support for Shopify order webhooks
- Formats data to GA4 specifications
- Handles user data securely
- Configurable webhook paths
- Download the
template.tplfile from this repository - In your GTM Server Container, go to Templates > Client templates > New
- Click on the 3 dots on the top right of the screen and select Import template
- Select the
template.tplfile you downloaded - Create a new client configuration using the template
- Configure the accepted paths (default is
/order_created)
The client allows you to configure which webhook paths it should process:
- Default path:
/order_created - Other paths can be added if needed
The client automatically processes incoming webhooks and creates a standardized event model with the following data:
event_name: Determined from the webhook payloadclient_id: User identifierpage_location: Landing site URLpage_referrer: Referring siteuser_agent: Browser informationip_override: Client IP address
transaction_id: Order/Transaction identifiercurrency: Transaction currencyvalue: Total transaction valuetax: Tax amountshipping: Shipping costitems: Array of product data including:item_iditem_namepricequantityitem_variantitem_brand
email: Customer emailfirst_name: Customer first namelast_name: Customer last namephone: Contact numberaddress: Shipping/Billing addresscity: Citystate: State/Provincezip: Postal codecountry: Countryexternal_id: Customer ID
fbc: Facebook click identifierfbp: Facebook browser identifierttclid: TikTok click identifierttp: TikTok pixel identifiergclid: Google click identifiergbraid: Google browser advertising identifierwbraid: Web browser advertising identifier
The client automatically:
- Receives the webhook payload
- Extracts relevant data
- Formats it to GA4 specifications
- Makes the data available to other GTM server-side tags
This means your GA4 and other measurement tags will automatically receive properly formatted data without additional configuration.
For questions or issues:
- Open an issue in this repository
- Contact AdPage support (support@adpage.io)