Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

Commit

Permalink
braze NPS survey (#15)
Browse files Browse the repository at this point in the history
* braze NPS survey

* readme

* readme
  • Loading branch information
davidbielik authored Jan 28, 2022
1 parent 37ac0ff commit 1437e71
Show file tree
Hide file tree
Showing 5 changed files with 520 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"tabWidth": 2,
"useTabs": false,
"singleQuote": true,
"semi": true,
"trailingComma": "es5",
"bracketSameLine": true,
"htmlWhitespaceSensitivity": "ignore"
}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ The following templates are all mobile and desktop responsive! Simply swap out t
| [Braze Survey Modal][103] | :iphone: :computer: | A survey templates which logs custom attributes for retargeting. | [<img alt="screenshot" src="braze-templates/3-braze-dashboard-survey-modal/mobile.png" height="300"/>][103] |
| [Braze SMS Modal][104] | :iphone: :computer: | Collect phone numbers to use with Braze SMS. | [<img alt="screenshot" src="braze-templates/4-sms-capture-modal/screenshot.gif" width="300"/>][103] |
| [Braze Email Capture Modal][105] | :iphone: :computer: | Collect email addresses to use within Braze. | [<img alt="screenshot" src="braze-templates/5-email-capture-modal/screenshot.gif" width="300"/>][103] |
| [Braze NPS][106] | :computer: | NPS Survey for quantitative and qualitative feedback. | [<img alt="screenshot" src="braze-templates/6-braze-nps/screenshot.gif" width="300" />][106]

## Community Gallery

Expand All @@ -61,3 +62,4 @@ To view our legacy templates which used `.zip` files, [click here][5].
[103]: braze-templates/3-braze-dashboard-survey-modal
[104]: braze-templates/4-sms-capture-modal
[105]: braze-templates/5-email-capture-modal
[106]: braze-templates/6-braze-nps
17 changes: 17 additions & 0 deletions braze-templates/6-braze-nps/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Instructions

Replace the following variables to customize your NPS Survey:

| variable | description | required? |
| ---------------- | --------------------------------------------------------------------------------------- | --------- |
| `SURVEY_ID` | This ID will be used to log a custom event and custom attribute upon survey submission. | Yes |
| `QUANT_QUESTION` | The initial question presented in the survey. | Yes |
| `QUAL_QUESTION` | The followup question presented with a feedback textarea. | No |
| `AVATAR_IMAGE` | An optional image to display on top of the survey. | No |
| `THANKYOU_TEXT` | The "Thank You" message displayed after completing the survey. | No |
| `SUBHEADER_TEXT` | An optional smaller text to display underneath the initial question. | No |
| `CHOICES` | An ordered list of choice names. You can remove choices for fewer options. | No |

# Demo

<img alt="screenshot" src="screenshot.gif" height="500"/>
Loading

0 comments on commit 1437e71

Please sign in to comment.