$p("setUserId")

$p("setUserId"): (String) -> undefined

Depending on how you integrate LiftIgniter, you may want to manually set the user identifier to a form that you can recognize. For example, if you are using LiftIgniter on both mobile and web, then you want to set the user ID on the web side to match the user when he/she is on mobile so that our system can recognize that it's the same person.

Run the function after $p("init") and before the $("send") on the JavaScript beacon. This will change the randomly generated UUID on LiftIgniter to a user identifier that you have specified.

// ... Beacon
$p("init", "JS_KEY");
$p("setUserId", USER_ID); // USER_ID should be a string.
$p("send", "pageview");