I need a simple example of getUserId


#1

[ANSWERED]

I needed a simple example (javascript) for getUserId().

for example, if you were to fill in the blank…

var currentUserID = what goes here?

Found the answer. (below)


#2

Found the answer after re-reading the documentation.

var currentUserID;
_paq.push([ function() { currentUserID = this.getUserId(); }]);