@nocs/trackalytics-behaviour-field
v1.0.17
Published
Vue 3 field widget for configuring Trackalytics behaviour conditions in an existing host page. The package is intended to be built as a browser bundle and mounted into host elements whose IDs start with `behaviour-`.
Keywords
Readme
@nocs/trackalytics-behaviour-field
Vue 3 field widget for configuring Trackalytics behaviour conditions in an existing host page. The package is intended to be built as a browser bundle and mounted into host elements whose IDs start with behaviour-.
Documentation
- Getting started — install, build, and embed the widget.
- Usage — host markup, loading behaviour data, and serialized values.
- Reference — supported behaviour types, preconditions, and output shape.
- Architecture — source map and lifecycle.
- Compatibility — runtime, browser, and integration constraints.
- Testing — available scripts and verification limits.
Quick start
npm install
npm run buildCopy the generated dist/ output into the host application, then provide a mount element and a same-form hidden input. The widget uses the host element's data-base value for its data endpoint and derives the input field name from data-field-name or the mount element ID.
<div
id="behaviour-site_behaviour"
data-base="https://example.test"
data-field-name="site_behaviour"
></div>
<input type="hidden" name="site_behaviour" value="" />This repository contains a client-side field only. It does not define PHP/Composer code, migrations, application events, jobs, queues, schedules, webhooks, or a Bruno collection.
