This function helps you add user feedback directly into Airtable's User Feedback template once you've collected this information on your website.
- Add the User Feedback template as a base to your Airtable account.
- In the Settings Builder, make sure you add the relevant Settings as listed below, making sure the naming matches what's in the code on lines 2 and 27. You can find the Settings Builder under App Info > Settings (left hand nav).
- Copy and paste the Airtable function template code in the
index.js
file directly into the editor. - Add your relevant Airtable API Key and App ID so you can send a test event.
- You can send the following test event to validate the existing template works as expected and see the feedback populate in your table:
{
"type": "track",
"event": "Feedback Added",
"userId": "userId888",
"timestamp": "2019-04-08T01:19:38.931Z",
"email": "[email protected]",
"properties": {
"additionalNotes": "Wish the battery life was a little big longer!",
"name": "Katrina Peterson",
"otherSecurityTools": "I currently also use a Nest Cam for indoor monitoring because I've had it for 2+ years",
"recommendToAnother": "5. Very Likely",
"favoriteFeatures": "Alerts,Live video,Recording",
"email": "[email protected]",
"usage": 10,
"leastFavoriteFeatures": "Alerts,Live video,Recording"
}
}
- You're done! Feel free to modify the template to suit your organization's specific needs.
apiKey
(string)appId
(string)