/algolia-search:algolia-events-insightsfrom algolia-search
Algolia event instrumentation guidance for Insights, analytics, personalization, Dynamic Re-Ranking, Recommend, and merchandising feedback loops. Use for search, autocomplete, browse, ecommerce, personalization, recommendations, or analytics instrumentation. Makes event decisions explicit before an Algolia UI is considered ready. Use when implementing or auditing clickedObjectIDsAfterSearch, convertedObjectIDsAfterSearch, viewedObjectIDs, addedToCartObjectIDsAfterSearch, purchasedObjectIDsAfterSearch, userToken, queryID, eventName, eventSubtype, or frontend/backend event pipelines. Do NOT use for live analytics retrieval, top-query inspection, or account-aware diagnostics; use algolia-mcp. Do NOT use for framework-specific InstantSearch or Autocomplete APIs; use the official instantsearch skill alongside this planning and validation skill.
Ships in algolia-search. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use this skill whenever user behavior needs to power analytics, personalization, Recommend, dynamic re-ranking, or measurable search quality.
academy.algolia.com for learning alignment and public algolia.com/doc for current implementation guidance when source-backed context is needed.title, url, course, module, learning_objectives, and updated_at fields for structure. If it is stale or no match exists, fall back to live Academy/docs lookup. Do not treat cached metadata as course content or implementation authority.algolia-mcp for live analytics signals such as top searches, no-result rates, click positions, no-click searches, and outcome metrics.instantsearch when event wiring belongs in InstantSearch or Autocomplete implementation code.If the task includes a search results page, autocomplete, browse page, recommendations, personalization, Dynamic Re-Ranking, or ecommerce search:
Required output:
userToken strategy.index, objectID, queryID, and position where the event type requires them.For demos and prototypes, still produce a lightweight event table with planned events, deferred production concerns, and validation steps.
AfterSearch method unless the interaction is explicitly attributable to an Algolia search or browse response and has a valid queryID.queryID, decide whether Algolia can infer attribution from a prior click. If not, use the non-AfterSearch method and state the analytics or feature limitation.references/events-guide.md before adding or changing event code.references/example-output.md when producing an event taxonomy or customer-facing event setup plan.references/search-event-taxonomy.md when producing a search, browse, autocomplete, recommendations, or ecommerce event taxonomy.queryID, objectIDs, positions when required, index, and the same user token used for the search.Use this order unless the app has unusual constraints:
userToken, then decide how it maps after login.objectID, index, queryID, and displayed position.Prefer a minimum viable event setup over a large taxonomy. For most customers, the first useful milestone is one validated result-click event and one validated primary conversion event with the same userToken, correct objectID, correct index, and queryID when search attribution applies.
Two failure modes appear repeatedly in real implementations. Both pass demos and settings checks; both corrupt or kill the event pipeline.
insights: true) is enabled, it auto-sends a click event for clicks inside a hit. Sending a manual clickedObjectIDsAfterSearch on the same click double-counts every CTR datapoint. A manual conversion (convertedObjectIDsAfterSearch / addedToCartObjectIDsAfterSearch) does NOT suppress the automatic click either — an add-to-cart button inside a hit produces one auto click plus your conversion, which is correct; a manual click handler on top of that is not. Expected totals per add-to-cart interaction: exactly one click event and one conversion event. Use the hit template's sendEvent for custom click semantics rather than a parallel manual pipeline, and never hardcode the index field — read the live index name (sort replicas change it), and treat data-index="undefined" in a payload as a failed implementation even if the call returns 200.window.aa; a plain script tag does not. Loading search-insights via a bare <script src> and then calling aa('init', ...) throws ReferenceError: aa is not defined — and because that aborts the entire surrounding inline script, the typical result is a completely blank search page, not a missing event. Always use Algolia's documented async queue snippet (or bind explicitly on script load), and smoke-test page startup: the page must render and queue events with the insights script throttled or blocked.Validation for both: capture the actual outbound payloads to the Insights endpoint (network tab, sendBeacon/fetch intercept) and count and inspect them. Reading the source is not verification — both of these failure modes look correct in source.
userToken assigned before and after login?queryID and hit position from the search response?userToken per event or page load.eventName values that business teams can read in reports.clickedObjectIDsAfterSearch on top of the InstantSearch insights middleware's automatic click event — every click counts twice.search-insights with a plain script tag and calling aa() without the documented async queue snippet — the resulting ReferenceError can blank the entire page.index field in event payloads instead of reading the live index name (sort replicas change it), or shipping events whose payload was never actually captured and inspected.objectID, queryID, position, index, or stable userToken.objectID returned in the hit.Before calling an implementation ready, or when handing off a prototype with follow-ups, state whether these checkpoints are satisfied, deferred, or unknown:
userToken strategy status.queryID, objectID, index, and displayed position.When source-backed guidance is needed, search public Academy sources for Insights, analytics, and AI-readiness learning objectives and public Algolia docs for queryID, userToken, event methods, personalization, Recommend, and dynamic re-ranking details. Use source guidance to build a customer-appropriate event taxonomy, maturity plan, and validation path.
userToken.Return a prioritized Event Plan, Connector Recommendation, Developer Handoff Sheet, code changes or owner handoff steps, and a validation plan. For audits, report missing attribution, identity inconsistencies, duplicate-event risks, weak-signal overinvestment, connector mapping risks, and downstream feature blockers first. Make the first recommendation small enough that a team can implement it in one sprint.
What SKILL.md sets; muted values are Claude Code's defaults
6 skills in this plugin
/algolia-data-modelingAlgolia data modeling and indexing guidance. Use before or alongside indexing records or building Algolia search UI for net-new search, browse, autocomplete, ecommerce, personalization, Dynamic Re-Ranking, recommendations, or analytics-aware implementations. Also use to audit or review an EXISTING implementation's record shape and data contract. Makes record shape, objectID, display fields, facets, ranking fields, and event attribution explicit decisions. Use for records, variants, SKUs, indices, replicas, searchable and faceting attributes, denormalization, merchandising fields, timestamps, inventory, event attribution, indexing pipelines, partial updates, secured data, multi-language or multi-region strategies, and migrations. Do NOT use for live imports, exports, record mutations, settings changes, or account actions; use algolia-cli or algolia-mcp. Do NOT use for frontend UI implementation; use algolia-instantsearch-ui, algolia-autocomplete, algolia-ui-libraries, or the official instantsearch skill./algolia-index-configurationAlgolia index settings and relevance configuration guidance. Use when configuring searchableAttributes, attributesForFaceting, customRanking, ranking, replicas, virtual replicas, rules, synonyms, typo tolerance, distinct, filters, optional filters, merchandising, browse/category relevance, or A/B-testable relevance changes. Also use when auditing, reviewing, health-checking, or troubleshooting an EXISTING index's settings — "is this configured correctly", inherited implementations, relevance regressions, or a settings review before launch — not only when configuring something new. Do NOT use for live settings writes, backups, copies, or operational account tasks; use algolia-cli or algolia-mcp instead. Do NOT use for record-shape or variant strategy; use algolia-data-modeling instead.Other plugins' skills for the same job
npx claudepluginhub fcakiroglu16/marketplace --plugin algolia-search