Skip to content

Recommended events ​

Any lower_snake_case name works. Using these names and shapes keeps data consistent across clients and lets future reports and recommendations work without configuration.

Items: anything a user can view, watch or buy. Always send item_id, and send item_type when a site has more than one kind of item. Recommendations depend on it.

Content and commerce ​

EventPropertiesNotes
page_view(automatic context)Sent automatically with autoPageviews: true
item_vieweditem_id, item_typeDetail page or player opened
item_clickeditem_id, rail_id?, position?Click from a list/rail
add_to_cartitem_id, price, currency, quantity
purchaseorder_id, value, currency, items: [{item_id, price, quantity}]Send from your backend with the secret key: browser events can be blocked or forged
EventProperties
search_performedsearch_id, query, result_count, page?
search_result_clickedsearch_id, position (1-based), result_id

With the npm SDK, track() returns the event id, which you can use as search_id. With the loader snippet, generate your own id. Search queries are free text and get PII-scrubbed.

Video ​

EventPropertiesNotes
video_starteditem_id, play_session_id, duration_s
video_progressitem_id, play_session_id, seconds_watchedHeartbeat every 10–15 s while playing; seconds_watched is the time actually played since the last heartbeat (not the playhead)
video_milestoneitem_id, play_session_id, pct (25/50/75/100)
video_completeditem_id, play_session_id

A trackVideo() plugin will automate these later.

Experiments ​

js
vectelle.track('experiment_exposure', { experiment: 'checkout_v2', variant: 'B' })
vectelle.register({ 'exp.checkout_v2': 'B' }) // attached to every later event

Recommendation rails (future) ​

EventProperties
rail_shownrail_id, rail_type, item_ids: [...]
rail_item_clickedrail_id, item_id, position

Don't send ​

Emails, names, phone numbers, addresses, card or bank details, passwords, tokens, or health, religion, sexuality or political data. The server scrubs common patterns as a safety net. It is not a reason to send them.