A
A
Alexander Karpov2016-11-11 07:57:15
Google Analytics
Alexander Karpov, 2016-11-11 07:57:15

Why is the custom variable not being passed to Google Analytics?

I'm trying to transfer a variable to google analytics so that I can then create a segment in the report using it
. I created a variable in google tag manager and configured its transfer to google analytics (in google tag manager)
, set the default value of the variable as well.
Now on the site using dataLayer I try to pass the value I need like this
dataLayer.push({userGroup:'admin'})
As a result, in the debugger I see:
(guest is set by default)
f885e269f606415ab9c6f7ed25e13f8f.jpg
but here it’s normal,
2d735d3fa88243299e61db7ea4bbd81f.jpg
however, it is the default value that falls into the analytics, and not the one I installed.
What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question