-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add NPS survey * chore: array key * chore: use only free version install date
- Loading branch information
1 parent
48dea95
commit 661f2a2
Showing
2 changed files
with
87 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** | ||
* Initialize the formbricks survey. | ||
* | ||
* @see https://github.com/formbricks/setup-examples/tree/main/html | ||
*/ | ||
window.addEventListener('themeisle:survey:loaded', function () { | ||
window?.tsdk_formbricks?.init?.({ | ||
environmentId: "cltef8cut1s7wyyfxy3rlxzs5", | ||
apiHost: "https://app.formbricks.com", | ||
...(window?.visualizerSurveyData ?? {}), | ||
}); | ||
}); |