P
P
Plushka542021-05-27 12:15:29
JavaScript
Plushka54, 2021-05-27 12:15:29

What are the ways to get the contents of __utmz from a cookie?

I am currently solving the problem of collecting data about the user's visit to complete the order fields. I ran into a problem how to gracefully pull out the content from __utmz when a user enters the site. I couldn't find clear code examples. If anyone has done this, please share your experience. And given the general trend to refuse cookies, how can this data be replaced? (maybe where else can I get data on the source of the transition?)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Darkness, 2019-01-11
@AntonBrock

In the line of code sliderImages.forEach(slideImage => { .. a character was missing. I
also followed Alex 's advice and changed it. Now everything is ok! Thanks everyone!

L
Lynn "Coffee Man", 2019-01-11
@Lynn

querySelectorAll returns a collection of elements. The collection does not have a classList property.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question