This Google Tag Manager (GTM) template allows you to send postback requests to Keitaro (a self-hosted advertising tracker) without loading external scripts. It supports multiple tracking parameters for accurate conversion tracking.
- Sends postback requests directly to Keitaro
- Supports multiple
sub_idparameters - Includes additional tracking fields like
cost,payout,currency, andkeyword - No external script dependencies
Download the KeitaroPosback.tpl file from this repository.
- Open Google Tag Manager.
- Navigate to Templates > New.
- Click Import and upload the
KeitaroPosback.tplfile. - Save the template.
- Create a new Tag in GTM.
- Select Keitaro Postback as the Tag Type.
- Fill in the required fields:
- Domain (Required): The domain where postback requests will be sent.
- Sub IDs (Optional): Up to 5 sub IDs for tracking.
- Additional Parameters (Optional): Status, payout, currency, external ID, etc.
- Set up a Trigger (e.g., conversion events).
- Save and publish the container.
| Parameter | Description |
|---|---|
domain |
(Required) Keitaro domain to send postback requests |
sub_id_1 - sub_id_5 |
Optional tracking parameters |
status |
Event or conversion status |
payout |
Payout value for the event |
currency |
Currency of the transaction |
external_id |
External tracking ID |
creative_id |
ID of the creative used |
ad_campaign_id |
ID of the ad campaign |
source |
Traffic source |
keyword |
Keyword associated with the event |
cost |
Cost of the conversion |
ts |
Timestamp of the event |
https://your-keitaro-domain.com/pxtrk?sub_id_1=123&status=lead&payout=10¤cy=USD&source=google_ads&ts=123456789
For more details on Keitaro postbacks, refer to the Keitaro Documentation.
This project is licensed under the MIT License.