In this section you can configure the requests that can be captured by logaflow. By default all requests made are captured, you can limit this by adding the specific sources you want to monitor.
Logaflow does not capture sensitive information from requests.
You can customize the trigger that opens the feedback popup. To use a customizable trigger you must first disable logaflow’s default trigger:
1
Pass useCustomTrigger prop
Copy
import React from 'react'import ReactDOM from 'react-dom/client'import { LogaflowWidget } from '@logaflow/react' // or import { LogaflowWidget } from '@logaflow/next' if you are using in a next projectimport '@/styles/globals.css'import AppRoot from './app.root.tsx'ReactDOM.createRoot(document.getElementById('root')!).render(<React.StrictMode> <> {/* Add useCustomTrigger prop */} <LogaflowWidget projectKey={YOUR_PROJECT_TOKEN} useCustomTrigger /> <AppRoot /> </></React.StrictMode>)
2
Use widget hook in your custom trigger
Copy
import { useLogaflowPopup } from "@logaflow/react" // or import { useLogaflowPopup } from '@logaflow/next'export const CustomTriggerComponent = () => { const { open, isOpen } = useLogaflowPopup() return <button onClick={open}>{isOpen ? 'Opened' : 'Can I help you?'}</button>}
You can add an identifier to know which user is providing feedback. This identifier will appear in the feedback details on the logaflow dashboard.User ID will appear on the details screen:
<!DOCTYPE html><html lang="en"> <head> ... <!-- Logaflow widget script --> <script type="module" crossorigin="true" async src="https://widget.logaflow.com/addons/logaflow-widget.umd.js?version=1.0.0" ></script> </head> <body> <!-- Logaflow widget web component --> <logaflow-widget project-key="YOUR_LOGAFLOW_PROJECT_TOKEN_HERE" trigger-text="Feedback" ></logaflow-widget> ... <!-- Identifying the user --> <script> // When importing the Logaflow script, you will have the logaflowIdentify function globally window.logaflowIdentify("[email protected]"); // this params only receive string </script> </body></html>