AWIN Tracking Integration with the Consentmo app

AWIN's complete tracking solution allows advertisers to record and report on an extensive range of data points, including basket value, number of products, product type, new or existing customers, use of a coupon code, and click-to-sale lag time.


If you’re currently using the service above, the integration script from our app needs to be implemented in accordance with the visitor’s consent given via the Cookie bar.


Integration Steps


  1. Open Shopify Admin.
  2. Click on Online Store link in the left menubar.
  3. Click on the Actions dropdown button and select Edit Code from there.
  4. A new page will open with a list of files on the left side of the screen. Open the theme.liquid file.
  5. Locate the opening <head> and add the following line of code:


{% render 'consentmo-awin-integration-script' %}


  1. Create a new liquid file in the Snippets section of the theme files, called consentmo-awin-integration-script
  2. After that copy the content of the integration script provided below and paste it in the newly created Snippet file:


Download AWIN Tracking Integration script


  1. The final result should look like this:



NOTE: Make sure to remove the added code before deleting the app. This way, no snippets of code will be left in your theme. For more information on what you should be aware of when deleting our app check this article of our FAQ page.



Testing the Awin Consent Integration


You can verify the consent state communicated to Awin directly from your browser's Developer Console.



  1. Open your storefront in a new Incognito/Private browser window.
  2. Open Developer Tools → Console.
  3. Before interacting with the cookie banner, run:


AWIN.Tracking.AdvertiserConsent


The returned value indicates the consent status currently communicated to Awin:


  • false — consent has not been provided to Awin.
  • true — consent has been provided to Awin.



Before accepting the relevant cookie category, run:


AWIN.Tracking.AdvertiserConsent


The expected result is:


false


This indicates that Awin has not been granted consent.



Accept the relevant cookie category from the Consentmo Cookie Banner and run the command again:


AWIN.Tracking.AdvertiserConsent


The expected result is:


true


This confirms that the updated consent status has been communicated to Awin.



Reject the relevant cookie category or update your preferences so that consent for Awin is not provided. Run:


AWIN.Tracking.AdvertiserConsent


The expected result is:


false


This confirms that Awin has received the updated consent status.


NOTE: The Awin MasterTag may still be present on the page when the consent value is false. According to Awin's implementation guidance, the MasterTag should load regardless of the consent status. The AdvertiserConsent value is used to communicate whether consent has been provided.


For additional information, refer to Awin's official documentation:




Need help?


In case you need any assistance, please make sure to reach out to our support team via live chat or at support@consentmo.com

Updated on: 18/09/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!