Forums
Home / Plugin: AMP / How i can get cookies ?
(@dimabobrovski)
5 years, 1 month ago
HI, How i can get cookie value in amp page ?
(@jamesosborne)
@dimabobrovski You can use this guide to find out cookie information on a per site basis. The same applies to a non AMP site.
I need get value of tacking-id cookie and put him in amp-analytics vars for tracking users with our tracking-id.
@dimabobrovski In that case you can find out more on the amp.dev website below: https://amp.dev/documentation/components/amp-analytics/#cookies
It’s not answer to my question… How i understand i can’t get values from cookies ?
(@westonruter)
It is planned to support reading cookies via amp-script which makes use of WorkerDOM. See https://github.com/ampproject/worker-dom/issues/451