Contents

ViaAds Cookie-script guide

Cookie-script Guide

A Guide to include the ViaAds Cookie Script into any platform

There are three ways of including the ViaAds Cookie Script, which is maintained by ViaAds. They are listed acording to preference, as they become less efficient.

The First Method

Copy the following script and replace the CookieProviderName with the name of the current cookie provider used. If none is used, either delete the data-cookie-provider all together, or replace CookieProviderName with None

<script id="viaads-script" src="https://viaadspublicfiles.blob.core.windows.net/plugins/ViaAds/min/ViaAds-Cookie.min.js" data-cookie-provider="CookieProviderName" async defer></script>

The Second Method

Implement the following script, where the value in the attribute data-cookie-consent is collected and maintained by you. Whenever a consent is changed, this is to be updated with either True or False, depending on the consent to Marketing Cookies.

<script id="viaads-script" src="https://viaadspublicfiles.blob.core.windows.net/plugins/ViaAds/min/ViaAds-Cookie.min.js" data-cookie-consent="Consent:Bool" async defer></script>

The Third Method

Implement the following script, where the value in the data-cookie-name attribute is the name of the cookie, which we are to monitor and the value in the data-cookie-value attribute, is a value (substring) in the cookie value, which we are to monitor.

<script id="viaads-script" src="https://viaadspublicfiles.blob.core.windows.net/plugins/ViaAds/min/ViaAds-Cookie.min.js" data-cookie-name="CookieName" data-cookie-value="CookieValue" async defer></script>