I need a simple example of getUserId

[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)

Found the answer after re-reading the documentation.

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