L
L
Lomoson2014-06-30 19:31:45
Google
Lomoson, 2014-06-30 19:31:45

How to implement the installation and removal of cookies through Google Tag Manager?

Cookies are set through Google Tag Manager (depending on the source of the referral), but are not displayed on the first load. For the script, the cookie_js_loaded rule has been added.
Tell me, please, can anyone come across this thing. You just need to display the value of the cookies...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ruslan, 2014-06-30
@buttersmai

Could you describe the problem in more detail.
And it’s not clear where and what you have displayed, and what kind of cookie_js_loaded rule is (I don’t remember such in GTM).
In general, you can do this:
1. Create a new macro, for example, with the name my_cookie
2. Select the macro type as "1st party cookie"
3. Save, publish and boldly use it in JS as a variable {{my_cookie}}
For example:
console.log({{my_cookie}});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question