Add behavioural analytics to your service
Flux Behaviour measures where people struggle in digital services using consented, metadata-only events. It never records what people type, who they are, or anything they did not agree to share.
Install the tag
Add this snippet to every page of your service, like you would with other analytics tags:
<script>
window.flux = window.flux || function () {
(window.flux.q = window.flux.q || []).push(arguments);
};
</script>
<script type="module"
src="https://your-flux-host/assets/flux/sdk/flux-browser.install.mjs"
data-flux-endpoint="https://your-collector.example/collect"></script>
Ask for consent, then send events
The tag drops every event until the person grants consent. Nothing is queued or stored before that point.
flux('consent', 'granted');
flux('event', 'nav', 'page.loaded', { role: 'page', element_key: 'start' });
flux('event', 'focus', 'field.blur', {
role: 'field',
element_key: 'full-name',
duration_ms: 1200,
edit_count: 3,
value_length: 12
});
What the tag will never send
- typed values or free-text content
- names, emails or other direct identifiers
- any event before consent, or after consent is revoked
- any field outside the published event contract — unknown fields are stripped before validation and invalid events are dropped, not sent