*

Anonymous

  • ****
  • 200 posts
google analytic ga('set', 'userId', {{USER_ID}});
« on: July 26, 2017, 08:33:02 PM »
hi frosticek,

how r u doing?

am seeking for help!

am getting a error, pic attached below,
somehow I know, if I delete  ga('set', 'userId', {{USER_ID}}); THEN this could little bit be effective, but unfortunately this will not the soln.

  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-ANONYMOUS', 'auto');
  ga('send', 'pageview');
  ga('set', 'userId', {{USER_ID}}); // Set the user ID using signed-in user_id.</script>


for further assistance, take a look link...  https://davidsimpson.me/2014/04/20/tutorial-send-user-ids-google-analytics/

well, how can we create-- Custom User ID , osclass or veronica......  so that we could track our visitor... 'userId', {{USER_ID}});

I hope! you will help us in this regard,


Innovation is change that unlocks new value  ;)

*

MB Themes

Re: google analytic ga('set', 'userId', {{USER_ID}});
« Reply #1 on: July 26, 2017, 10:34:52 PM »
@Anonymous
You need to get this ID from google.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots