Set user id without event


(Ruchit) #1

I want to update user id on click of a button on my form with email in the form using javascript. I am calling _paq.push([‘setUserId’, ‘ruchit6’]), but it does not set the user id unless i raise and event(any event) or call trackpageview. So setUserId is not called right away. It is posted once any event or page tracking is raised. Is there any way to use setUserId alone?


(Matthieu Aubry) #2

No it’s not possible to use setUserId alone you must then call a track* function


(Ruchit) #3

Thanks matt. Would be better if event if not required.