I'm wanting to track a group of users on my site by giving them a cookie or an ID that is trackable in google analytics. Does anyone know how to go about doing this? I talked to the google people for about an hour yesterday and didn't really get anywhere with them.
Asked
Active
Viewed 19 times
0
-
Possible duplicate of [How do I create and read a value from cookie?](http://stackoverflow.com/questions/4825683/how-do-i-create-and-read-a-value-from-cookie) – Björn May 12 '17 at 14:12
-
Also you posted this earlier: http://stackoverflow.com/questions/43920535/how-can-i-set-a-custom-user-id-upon-a-button-click-so-that-it-tracks-a-person-af – nyuen May 12 '17 at 18:09
1 Answers
0
Consider using user scoped custom dimension. You can set specific value for users who click on a particular link or interact in some other way e.g. ga('set','dimensionX', 'clicked link A')
and then build segment a segment in Analytics based on this value. More on custom dimension here

Дмитро Булах
- 3,697
- 1
- 14
- 23