Get started
Implementation instructions
<!-- API-KEY -->
can be found under Dashboard -> Project -> Project Settings
HTML
Following is instructions to implement FeedBackPack to a HTML-page.
- Copy and paste following code last in your
</body>
-tag<script defer src="https://feedbackpack.app/embed.js?apiKey=<!-- API-KEY -->"></script>
<html> <head></head> <body> <!-- Your site html --> <script defer src="https://feedbackpack.app/embed.js?apiKey=<!-- API-KEY -->"></script> </body> </html>
- Add
data-feedbackpack
to the component you want to trigger the widget on click. For example<button data-feedbackpack> Send feedback </button>
React
Do you have a React-application you have to do following step
- Install npm package
npm install @feedbackpack/react
- Then import
FeedBackPack
-component into your project where to use it.import {FeedBackPack} from '@feedbackpack/react' const Project = () => { return ( <FeedBackPack apiKey="<!-- API-KEY -->"> <button>Send feedback</button> </FeedBackPack> ) }
- You also have the opportunity to add
email
toFeedBackPack
-component to identify submitting user for later interactions.<FeedBackPack apiKey="<!-- API-KEY -->" email={currentUser?.email}> <button>Send feedback</button> </FeedBackPack>
- You also have the opportunity to add
showEmail
toFeedBackPack
-component to give the options for user to give the email for later interactions.<FeedBackPack apiKey="<!-- API-KEY -->" showEmail> <button>Send feedback</button> </FeedBackPack>