How to Use Vine Tracking with Third Party Cookie Consent Dialog and GTM
Note: Make sure your pages include the Vine tracking script.
Please go to the Cookie Consent pane in Settings->Web Site and turn the Use Vine Cookie Consent Dialog switch to the OFF position to disable Vine Consent Dialog.

To comply with the European GDPR law, select Requires VineTrack.allowCookies call before using cookies so that Vine cookies can not be saved until you call VineTrack.allowCookies();
in your JavaScript code. (Otherwise, cookies will be allowed even without a VineTrack.allowCookies();
call.)
Allowing Vine Cookies
Create a tag in Google Tag Manager that will run a special Vine script to allow cookies and you will need a trigger to fire that tag when the visitor accepts cookies in your consent dialog.
I. In Google Tag Manager, create a new Custom HTML tag to allow cookies:
- Give it a name: “call allowCookies”
- Select Custom HTML as the tag type.
- Copy the following script into the HTML box :
- Save and publish in GTM.
GTM script to allow Vine cookies
<script src="https://vine.eu/track/allowCookies.js" type="text/javascript"></script>
(One general way to fire a GTM tag which works in all cases, but requires some coding is described here.)
Denying Vine Cookies
If the visitor does not accept marketing (tracking) cookies in your consent dialog then you need to call VineTrack.denyCookies();
For example, simple cookie consent dialogs just ask if you want to Accept All or Deny All cookies. In this case, you obviously need to call VineTrack.denyCookies();
if the user denies cookies. However, many consent dialogs now also permit the visitor to allow some cookies and Deny Only Marketing cookies. If the visitor decides to deny only marketing cookies, you also need to call VineTrack.denyCookies();
Create a tag in Google Tag Manager that will run another Vine script to deny cookies and you will need a trigger to fire that tag depending on what the visitor has chosen in the consent dialog.
I. In Google Tag Manager, create a new Custom HTML tag to deny cookies:
- Give it a name: “call denyCookies”
- Select Custom HTML as the tag type.
- Copy the following script into the HTML box :
- Save and publish in GTM.
GTM script to deny Vine cookies
<script src="https://vine.eu/track/denyCookies.js" type="text/javascript"></script>
It is recommended to repeat the allowCookies
or denyCookies
call (depending on what the visitor selected in the consent dialog) in every load of each page tracked by Vine.
II. Now you need a trigger to fire the GTM tag. Please refer to the documentation of your cookie consent system how to configure the firing trigger.
Comments
0 comments
Please sign in to leave a comment.