https://github.com/stape-io/awin-tag
Awin Tag for Google Tag Manager Server Side
https://github.com/stape-io/awin-tag
awin gtm gtm-custom-template gtm-server-side stape
Last synced: 4 months ago
JSON representation
Awin Tag for Google Tag Manager Server Side
- Host: GitHub
- URL: https://github.com/stape-io/awin-tag
- Owner: stape-io
- License: apache-2.0
- Created: 2022-02-05T10:45:19.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-05-13T10:03:47.000Z (5 months ago)
- Last Synced: 2025-06-18T04:44:59.147Z (4 months ago)
- Topics: awin, gtm, gtm-custom-template, gtm-server-side, stape
- Language: Smarty
- Homepage: https://stape.io/blog/awin-server-to-server-tracking-using-server-google-tag-manager
- Size: 162 KB
- Stars: 4
- Watchers: 6
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Awin tag for Google Tag Manager Server Side
There are two types of events that Awin tag supports: PageView and Conversion.
- **PageView event** stores the `awc` URL parameter inside the `awin_awc` or `awin_sn_awc` cookie, and the source (usually, the `utm_source` value) inside the `awin_source` cookie.
- **Conversion event** sends the HTTP request with the specified conversion data to Awin.## How to use the Awin tag:
1. Create an Awin tag and add Page View and Purchase triggers.
2. Add the only required field for the conversion event - Merchant ID, other fields are optional.**Merchant ID** - advertiser program ID.
**Order Reference** - booking or transaction ID.
**Total Order Value** - value excluding taxes, delivery, and discounts. For a lead-based campaign or program, the value should be the number of leads; for example, "1". Tag will ignore the value if multiple commission groups are specified in the Commission Group Code field.
**Currency Code** - currency code in ISO standard (e.g., "GBP").
**Commission Group Code** -the code for the commission group you want to base the commission calculation on. The value can be either a single group name (e.g., "CD") or a complete set of groups and the commission value for each group (e.g., "CD:11.10|DVD:14.99").
**Discount Code** - promo code applied on the check-out.
**Last Paid Click Referring Channel** - the value utilized to determine how AWIN should process the incoming transaction requests.
**Discount Code** - promo code applied on the check-out.
**Products Override** - override items array to be used by the tag.
**Automatically detect consent from Google Consent Mode or Stape's Data Tag** - if you are using Google Consent Mode or Stape's Data Tag to transmit consent to the server.
**Awin Consent Signal** - manual field to supply consent information.
**Enable Unconditional Cashback & Rewards Tracking** - option to exempt Cashback and Rewards Journeys from consent restrictions.
**Awin Click ID** - optional, can be used to override click ID from cookie.
**In test mode** - use to test the setup. Conversion in the test mode will be ignored.
**Override the cookie domain** - optional, can be used to override the default domain where cookies are set.
### Useful links:
- [Awin server-to-server tracking using server Google Tag Manager](https://stape.io/blog/awin-server-to-server-tracking-using-server-google-tag-manager)
## Open Source
Awin Tag for GTM Server Side is developed and maintained by [Stape Team](https://stape.io/) under the Apache 2.0 license.