Actions
- ravg_lead_captured ( $email, $first_name, $visitor_id, $site_key, $via ): a visitor left their email in the chat.
- ravg_chat_message ( $visitor_id, $site_key, $direction, $body, $id, $kind ): every chat message, both ways.
- ravg_sale_recorded ( $event_id, $event, $sale ): a sale reached the globe.
- do_action( 'ravg_family_sale', array( 'email' => ..., 'name' => ..., 'amount' => ..., 'currency' => ..., 'product' => ..., 'source' => ..., 'ref' => ... ) ): report a sale from your own code.
Filters
- ravg_identity_by_email, ravg_identity_by_token, ravg_identity_by_ip: teach Pulse to recognise people from your own system. Return an array with first_name, ltv, tags and source.
- ravg_enrich_event ( $event, $ip, $visitor_id ): add to or change an event before it is stored.
- ravg_beacon_config: the tracker's settings before they reach the page.
JavaScript
window.RAVG.openChat() opens the chat from your own button or link.
REST
Everything lives under /wp-json/pulse/v1/. On a site with plain permalinks Pulse switches to the ?rest_route= form by itself.