I have added Google Tag Manager to our site, and using the data layer inserted several custom dimensions, including 'user_id' Data Layer with user_id shown
The Google Analytics variable in Tag Manager is configured to pass these data layer variables into the coresponding dimensions: Tag Manager Variable & Dimensions in Analytics
I know this is working as I am able to add this as a secondary dimension in Analytics when viewing reports: Analytics with Dimension Shown
However, the user view that is created when I have set up the User-Id isnt showing anything: Creating the User View
We installed Tag Manager using the recommended steps: Installation of Tag Manager
Do we also need to add the 'Global Site Tag Tracking Code'? How to Implement the User-ID in your tracking code
If not, what am I doing wrong?
You're actually REALLY close. You actually don't need to create the custom dimension.
The correct way is to set the userId
field in your GA tag (I did it through a GA variable so it is applied everywhere).