Portal | How to
Give Feedback

Create a segment of user

Updated on September 5, 2022

At Jimo, we think that targeting makes feedback way more qualitative.

When someone access your portal, we create a user in our system and we provide a way for you to set custom attributes on this user. You can then create segment of users based on this attributes.

Finally, when you publish your pushes, you can select one or more segment to target a specific group of users. For example, you can publish a push for only new users or paying customers or any other custom data you find relevant to segment with.

How to set custom attributes

To set custom attributes, we provide an URL Parameters called attributes. The value passed to this attribute should be a JSON object, stringified and converted to a base 64 string.

So let's resume

  • Convert your data to a JSON string
  • Convert the JSON string into base 64 string
  • Append the base 64 string into the query parameters attributes of your portal's url

Example

Let's say you want to create a segment called Premium, which will be a group of users under the Premium plan.

Here is a full example of the process written in javascript. You might want to adapt according to your language.

// Convert data to string
let data = JSON.stringify({ "plan" : "premium" });

// Convert your data to binary
data = window.btoa(data);

// Add it to the query parameter "attributes"
const finalUrl = "https://pied-piper.usesjimo.com/?attributes=" + data
You can add other custom attributes by adding properties to the original object.

Now, that the custom attributes are set, we need to create the Premium segment (see the video bellow).

How to create a segment

Troubleshooting

  • I don't see my custom attribute in the dropdown Attributes will be available as soon as you or one of your user use the new portal url

Related guides