Why the user variable is not passed to Google Analytics?

I'm trying to Google Analytics trying to pass a variable to then use it to create a segment in the report
I created a variable in Google tag Manager and set its transmission to Google Analytics ( Google tag Manager)
set the default value of the variable.
Now on the website with the help dataLayer trying to pass I need the value so
dataLayer.push({userGroup:'admin'})
In the end, in the debugger I see:
(guest installed by default)
f885e269f606415ab9c6f7ed25e13f8f.jpg
but then that's normal
2d735d3fa88243299e61db7ea4bbd81f.jpg
however, in the analyst falls the default value, not the one that I installed.
What am I doing wrong?
July 2nd 19 at 17:36
0 answer

Find more questions by tags Google Analytics