Frameworks

Pick your stack and copy the snippet. Replace YOUR_PUBLIC_KEY with the key from your workspace settings.

import { useState, useEffect } from 'react'
import { initTrell } from '@trell/telemetry'

export default function LeadForm() {
  const [email, setEmail] = useState('')

  useEffect(() => {
    initTrell({
      publicKey: 'YOUR_PUBLIC_KEY', // Obtén tu clave en trell.relake.co
      autoTrackHesitation: true,
      maskSensitiveInputs: true
    })
  }, [])

  return (
    <form onSubmit={(e) => { /* Auto-capturado por Trell */ }}>
      <input
        name="email"
        type="email"
        value={email}
        onChange={(e) => setEmail(e.target.value)}
        placeholder="[email protected]"
      />
      <button type="submit">Solicitar Demo</button>
    </form>
  )
}