All anonymous users are assigned a Unique ID. You will see an icon next to all IDs for anonymous users:
You will be able to see all sessions from an anonymous user in their timeline and be able to filter by individual anonymous user's UserIDs. If in a future session you identify the user, that identity will be retroactively applied to all past sessions for that user.
You can identify users within the Installation script or with our SDK.
Our native WordPress plugin does not yet support identifying users. If you are using WordPress and would like to identify users, please follow these steps:
Enter the code editor for your template, or, alternatively, install the WPCode Lite plugin to do this easily and without modifying your template.
If using WPCode Lite, create a new snippet, and select "PHP Snippet" for Code Type
Paste the following and make sure to replace <your api key>
with your API key found here:
$current_user = wp_get_current_user();
if ($current_user->exists()) {
$user_email = $current_user->user_email;
$user_firstname = $current_user->first_name;
$user_lastname = $current_user->last_name;
echo "<script>window.currentUser = { userId: '$user_email', firstName: '$user_firstname', lastName: '$user_lastname'}</script>";
}
?>
<script>
!function (o) {
var w = window;
w.SessionRewindConfig = o;
var f = document.createElement("script");
f.async = 1, f.crossOrigin = "anonymous",
f.src = "<https://rec.sessionrewind.com/srloader.js>";
var g = document.getElementsByTagName("head")[0];
g.insertBefore(f, g.firstChild);
}({
apiKey: '<your api key>',
startRecording: true,
userInfo: window.currentUser || undefined
});
</script>
If using WPCode Lite, for the Insertion section, choose "Auto Insert", and Location "Site Wide Header"
If using WPCode Lite, at the top, toggle the "Active" switch to On, and click "Update"