How do you create a new visitor through the API?
I can pull data and interact with visitor data through the API, but I don't see how to create a new visitor?
0
I can pull data and interact with visitor data through the API, but I don't see how to create a new visitor?
コメント
Hey Daniel - new visitors in Pendo are created by the Raw Events that we capture behind the scenes. There is no way via the standard endpoints to create a Visitor in the same way that you would review their analytics.
That said, the Track Events API endpoint does require you to specify a Visitor ID and so this may be a way to manually create a Visitor ID, if this is your desire. If I may ask, however, what is your use case for creating a Visitor ID manually within your subscription, rather than waiting for utilization to come across to generate the creation of a new Visitor?
I tried to use the Track Events API but could not figure out how to get it to create a user from it... maybe i was sending bad data or something, but the only reply i would get back was:
{"overall":{},"fields":{"event":"Required","timestamp":"Required","type":"Required","visitorId":"Required"}}
The reason for creating it is because we track logged in users - when a user signs up they create and account and payment at the same time - so when we capture the payment I am trying to send Trial Start date to the user, but this is in the backend before the frontend javascript has loaded to create the first event of the user. So sending the Trial info has no record to attach to. If I can create the visitor and assign the Trial info, then after the page loads it can fill in the rest of the details.
Daniel Jones, you can use these endpoints to create visitors or accounts via the API.
To create a visitor ID:
POST https://app.pendo.io/api/v1/metadata/visitor/custom/value?create=true
To create an account ID:
POST https://app.pendo.io/api/v1/metadata/account/custom/value?create=true
Follow the format of the examples under https://help.pendo.io/resources/support-library/api/index.html?bash#set-value-for-a-set-of-agent-or-custom-fields
Here are a few things to keep in mind:
Daniel Jones, I realize I didn't fully respond to your previous comment. Sorry about that!
It is possible to create new visitors via a track event (server side) in Pendo. Just make sure you are supplying all required fields & following the formatting requirements in this article: https://support.pendo.io/hc/en-us/articles/360032294291-Track-Events-Configuration#ServerSide
A few extra things to note:
Please note this setting is NOT retroactive and won't impact track events that Pendo has already received, but it will apply going forward. Additionally, this applies to ALL track events.
Angela Holly: Where did you find the parameters for this? Is there any documentation you can point me to? I am unable to locate any.
To create an account ID:
POST https://app.pendo.io/api/v1/metadata/account/custom/value?create=true
Thanks!
Jason Alberino, we don't have this added to our official API developer docs yet (engageapi.pendo.io). If you're having any trouble or seeing any unexpected results, please reach out to our Support team.
サインインしてコメントを残してください。