With User Identification you can parse through user data when feedback is submitted.

WordPress allows you to track who is logged into your WordPress site and because of this, you can also parse through this user information with feedback.

We recommend learning more about setting up User Identification, as you'll need to code this within your WordPress template.

To help get you started. Here is some example code that you can use to start identifying your WordPress Users.

<?php
// get user information from wordpress built-in function
$user_id = get_current_user_id();
$user_info = get_userdata($user_id);
$user_roles = implode(', ', $user_info->roles);

// add widget code to your theme template (header.php)
window.Userback = window.Userback || {};
Userback.access_token = '[YOUR_ACCESS_TOKEN]';

Userback.user_data = {
id: {$user_id},
info: {
email: {$user_info->user_email},
name: {$user_info->display_name},
user_type: {$user_roles}
}
};

(function(d) {
var s = d.createElement('script');s.async = true;
s.src = 'https://static.userback.io/widget/v1.js';
(d.head || d.body).appendChild(s);
})(document);

🔐 Who is this article for?

Plans

Solo ✔

Startup ✔

Company ✔

Premium ✔

User type

Client

Collaborator

Admin ✔

Owner ✔

📙 Helpful articles

User Identification

How to install Userback on WordPress

Did this answer your question?