I am having the same problem as the original user. I want to track user-ids, but nothing seems to be registering in the user explorer view. I have followed the advice given here (which is also what Google suggests, about using
gtag('config', 'GA_MEASUREMENT_ID', { 'user_id': 'USER_ID' });
but nothing registers. Here is my code:
<!-- Google tag (gtag.js) -->
<script async src='https://www.googletagmanager.com/gtag/js?id=G-L3ZPB6S5H6'></script>
<script>window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}gtag('js', new Date());
gtag('config', 'G-L3ZPB6S5H6', {'user_id': 'DRCUSASK'})
</script>
What am I doing wrong? Is there some kind of mismatch between GA code and gtag code?