@inploi/plugin-job-search 9.1.0 → 9.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -100,6 +100,34 @@ adds an unselected **Early Careers (0)** when the API omits it and no keyword is
100
100
  keyword, a pin appears only with matches. Zero-count pins remain visible even with `results: 'only-available'`;
101
101
  like other zero-count options, they are disabled. Existing API labels/counts win when a pinned value is present.
102
102
 
103
+ ## Search analytics
104
+
105
+ List searches send `SEARCH_RESULTS` through the injected analytics service after the first page's fresh results
106
+ return, including zero. This needs a host on `@inploi/sdk` 3.1.0 or later advertising
107
+ `analytics.supportsNoQueryPageContext: true`; otherwise SEARCH_RESULTS is silently not sent. Older hosts still
108
+ support the plugin and its existing events; the SDK peer range is unchanged.
109
+ A search is the applied query, mode, filters, geography and result order. Filter keys and multiselect values
110
+ share the results cache's sorting, with unambiguous JSON encoding for analytics only. A provided place includes its
111
+ radius and coordinates in the local signature; IP includes its radius; map bounds use only their type, so panning does not
112
+ create a search. Page and view are excluded. Signatures remain in page memory and never leave the browser.
113
+
114
+ Completed results wait 1.5 seconds to coalesce typing: only a keyword-only change replaces a pending search, even
115
+ while the next results load. Filter, place, mode or order changes and entering Saved jobs flush completed results.
116
+ A job click sends the existing click event first, then flushes with `keepalive`; `pagehide` and unmount also flush
117
+ with `keepalive`. Revalidation, paging and view changes do not count again while the search stays the same.
118
+ Returning to a search after changing its signature counts it again. Saved jobs themselves send no search event.
119
+ The untouched default landing is excluded; an interaction or an initial keyword, non-default filter, geography or
120
+ result order qualifies. Untouched URL arrivals share one count per signature across instances on the page; that
121
+ record resets when the pathname changes. Searches made by interacting with an instance belong to that instance.
122
+ Map view is a known gap because it reports no total. SEARCH_RESULTS strips URL queries and fragments from page href
123
+ and referrer and omits page title; other events retain their existing context.
124
+ The content-free payload is documented in the [SDK event catalogue](../sdk/README.md#event-catalogue-and-envelope).
125
+
126
+ Existing `SEARCH_SETTLE`, `SEARCH_PAGINATE`, `VIEW_SEARCH` and `SEARCH_JOB_CLICK` behavior is unchanged.
127
+ Embedded versus hub attribution is unchanged. The warehouse crawler ignores the new event, so it changes no
128
+ published figure. Do not release before the api production release accepts `SEARCH_RESULTS`: unknown names are
129
+ dropped with an error logged per event.
130
+
103
131
  ## Saved jobs (opt in)
104
132
 
105
133
  Set `savedJobs: { enabled: true }` on `JobSearchPluginParams` to show a bookmark beside each job-card link.