Creating a cookie in Google Tag Manager is very easy.
- Create a custom HTML tag
- Insert the cookie script below and update the following values to suit your needs:
- Name (name of the cookie, which can be anything you want)
- Value (the value the cookie should hold)
- Days (how many days until the cookie expires)
- Create the trigger i.e. when should the cookie be created
- Publish and you’re done. Super Easy!
Code to create a cookie
Continue reading “Google Tag Manager: How to create a cookie”