setup for User-ID coverage reporting and User-ID view in Google Analytics
-
My objective is to see logged in users in the Google Analytics view that has User-ID feature enabled and to see all users in the “All Web Site Data” view.
Setup with the plugin to get logged in and visitors reporting into the “All Web Site Data” view was so easy! Thanks!But the GA view with User-ID enabled is showing no user activity. There is activity reporting as “Unassigned” in GA “All Web Site Data” view for Audience -> Behavior -> User-ID Coverage. And all users (logged in and visitors) are showing in “All Web Site Data”.
The GA setup instructions to enable User-ID reporting for logged in users, indicate that the following needs to be added: gtag(‘config’, ‘GA_MEASUREMENT_ID’, {‘user_id’: ‘USER_ID’});
See https://developers.google.com/analytics/devguides/collection/gtagjs/cookies-user-idDo I need to add “<script>gtag(‘config’, ‘GA_MEASUREMENT_ID’, {‘user_id’: ‘USER_ID’});</script>” outside of gwm4wp to enable User-ID feature in GA (and substitute the correct UA-XXXX for GA_MEASUREMENT_ID in the script)?
It seems that the code may need to be “<script>gtag(‘config’, ‘GA_MEASUREMENT_ID’, {‘user_id’: ‘visitorId’});</script>” ??I have Visitors enabled (all boxes are checked) in the gtm4wp “Basic data” tab, and added visitorId, visitorLoginState and visitorType Data Layer Variables in GTM,
(and verified that data is flowing and correct to google analytics). Do not track
I can see logged in and non-logged in users in GA reports for “All Web Site Data” view and have inspected the data layer variables and see the right info.
But, I am not seeing logged in user activity in a USER_ID enabled google analytics view for the same GA property… real time and history show 0 views, 0 events.My setup has gtm4wp container code placement as Custom and the code, per instructions, is placed as required. No changes are set in “Advanced” tab.
If an updated howto would be helpful to add to your site, I’m open putting one together and send to you to publish.
- The topic ‘setup for User-ID coverage reporting and User-ID view in Google Analytics’ is closed to new replies.