Awin - AW Last Click Identifier

Community tag by Allan-Urique

What is Awin - AW Last Click Identifier?

This tag is responsible for creating a cookie with the value "aw" if Awin was the Last Paid Click Referring Channel in the user journey, or "other" if it wasn't. This will feed the channel parameter.

Awin - AW Last Click Identifier tag is created by Allan-Urique. Once you set up server side tagging with MetricsGate, you can use this tag with Google Tag Manager to enhance your data analytics.

This tag template is part of an open-source community, with its source code accessible on Github, and its documentation can also be found online.

You can check its version history below:

  1. Allowing '/' to be used in Awin Source Values
  2. Fixed an issue that was causing session cookies to be recreated after the session ended.
  3. Updated the template to check if source contains awin source value, instead of exact match.
  4. Changed the default value for the "Using All Pages Trigger" checkbos to false.
  5. Added a feature for you to be able to use source trigger again, instead of all pages. If the advertiser uses a cookie consent pop-up that redirects to the website, it would cause the template to not work. If you disable the "Using All Page Trigger" checkbox now and use the source trigger instead. It should work correctly.
  6. Fixed a bug where the cookie would be created with a session only expiring date.
  7. The template is now simpler to use, just trigger it using an All Pages trigger and it will automatically decide how to proceed.
  8. Added the ability to use multiple Awin Source values. This way advertisers can have campaigns with multiple "utm_source" values for example, and the template will still record transactions correctly.
  9. Added the ability to overwrite the cookie domain and set it manually.
  10. Added the ability to create cookies that experie once the session is finished. Simply use 0 for the cookie length field.
  11. Template will now take into consideration publishers that use Google Parallel tracking, by using the awaid parameter as a condition.
  12. Initial release.

More tags and variables supported

Tags

Variables

Join early adopters globally and leverage server-side tagging, GA4 custom events, and cookieless tracking to gain deeper insights and enhanced analytics data about your visitors!

Get Started now