Widget de feedback para JavaScript vanilla
npm install @feedget/widgetimport { Feedget } from "@feedget/widget/vanilla";
import "@feedget/widget/styles.css";
Feedget.init({
apiKey: "feedget_pk_live_abc123..."
});main.jsimport { Feedget } from "@feedget/widget/vanilla";
Feedget.init({
apiKey: "feedget_pk_live_abc123..."
});main.jsPor padrão, o widget aparece no canto inferior direito. Você pode alterá-lo para o canto esquerdo usando a propriedade orientation:
// Widget no canto esquerdo
Feedget.init({
apiKey: "feedget_pk_live_abc123...",
orientation: "left"
});
// Widget no canto direito (padrão)
Feedget.init({
apiKey: "feedget_pk_live_abc123...",
orientation: "right"
});main.js// Destruir o widget
Feedget.destroy();
// Reinicializar o widget
Feedget.init({
apiKey: "feedget_pk_live_abc123..."
});main.js// main.js
import { Feedget } from "@feedget/widget/vanilla";
import "@feedget/widget/styles.css";
// Inicializar quando o DOM estiver pronto
document.addEventListener("DOMContentLoaded", () => {
Feedget.init({
apiKey: "feedget_pk_live_abc123..."
});
});Verifique se o script está sendo carregado e se a API Key do projeto está correta.
Certifique-se de que seu domínio está configurado nas configurações do projeto.
O widget é carregado de forma assíncrona e não afeta a performance da sua página.