Where can we find the generic JavaScript code snippet InSided wants us to use to award points for an action - like a survey in TypeForm or add details to their profile?
Hey Eddie me again, so as Typeform is a 3rd party survey the taking of it doesn’t influence the user points directly. To do this you’ll need to build a 3rd party solution to detect if / when a user has taken a Typeform survey and then send this data to the API.
You’ll need to use this specific API endpoint again to achieve this: https://api2-us-west-2.insided.com/docs/gamification/#operation/assignPoints
Bare in mind that a connection the API can’t be made in the platform directly due to security concerns - to go down this route you’ll have build some sort of middleware layer that’s hosted somewhere online. Then once a user takes a Typeform survey, you could use a 3rd party script to detect this and then to contact the middleware layer, which then in turn will contact our API, authorises with it and then increments the points of the user who just took the survey.
Hope this makes sense, please let me know if anything isnt clear!
Reply
Sign up
If you ever had a profile with us, there's no need to create another one.
Don't worry if your email address has since changed, or you can't remember your login, just let us know at community@gainsight.com and we'll help you get started from where you left.
Else, please continue with the registration below.
Welcome to the Gainsight Community
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.