Configuring Simpo User IDs, User Details and Params
It's possible to pass different parameters into Simpo, then use them in Simpo dashboard, Audiences, and more.
Read more about parameters here.
Passing user ID to Simpo dashboard
To change the ID used to identify a user in Simpo dashboard, you'll need to pass in a separate uuid
param:
simpo.configure({
uuid: 'some-user-identifier'
});
This param can be an email, your own user id, or anything you'd like.
Passing other user details
To pass in user details into Simpo, simply add them into the user
object in the simpo configuration.
name
and email
params are only used to identify a user when the user submits a ticket.You'll need to do this before the call to simpo.load("YOUR_CLIENT_ID").
simpo.configure({
user: {
name: 'John Smith',
email: 'johnsmith@example.com',
}
});
Passing arbitrary parameters
To pass in any parameter to Simpo, simply add them into the params
object in the simpo configuration.
It's possible to add any parameter that you want in order to use in Triggers feature and other sections in Simpo:
simpo.configure({
params: {
anyParameter: true,
userType: "Free",
sectionType: 6,
}
});
simpo.load("YOUR_CLIENT_ID").
A combined call example
// simpo installation script goes here
// configure simpo
simpo.configure({
uuid: 'some-user-identifier',
user: {
name: 'John Smith',
email: 'johnsmith@example.com',
}
"params":{
"planType":"Free Plan",
"userType":506,
}
});
// simpo.load call goes here