Embeddable feedback widget for games and web applications
The BetaHub widget is now active on this page. You can open it in two ways:
Note: This demo is connected to a real BetaHub project. Your submissions will be received!
// Basic Usage <script src="betahub-widget.js"></script> <script> BetaHubWidget.init({ projectId: 'your-project-id', authToken: 'tkn-your-auth-token', // Optional configuration apiBaseUrl: 'https://app.betahub.io', position: 'bottom-right', // button position buttonText: 'Feedback', // Contact information options userEmail: 'user@example.com', // pre-filled email (optional) requireEmail: false, // require email for bugs/suggestions showEmailField: 'auto', // 'auto', 'always', 'never' // Custom fields (metadata sent with every submission) customFields: { gameVersion: '1.0.0', platform: 'web', userLevel: '15' } }); </script>
The widget renders on top of your game canvas without interfering with game rendering. Users can submit feedback without leaving the game!
Required:
projectId - Your BetaHub project IDauthToken - Your authentication token (format: tkn-...)Optional:
apiBaseUrl - API endpoint (default: https://app.betahub.io)position - 'bottom-right', 'bottom-left', 'top-right', 'top-left' (default: 'bottom-right')buttonText - Custom button text (default: 'Feedback')customFields - Object with custom metadata to include with submissionsuserEmail - Pre-filled user email (creates virtual user)requireEmail - Require email for bugs/suggestions (default: false, tickets always require)showEmailField - 'auto', 'always', 'never' (default: 'auto')To use this widget with your BetaHub project: