Interaction tracking allows you to record how users engage with search results, enabling personalized ranking, relevance improvement, and usage analytics.
Overview
In Mixpeek, interactions represent how users engage with search results. By tracking these interactions, you can gather valuable data to improve search relevance, personalize results, and gain insights into user behavior and content performance.User Engagement Data
Record how users interact with search results, including clicks, views, and conversions
Relevance Signals
Use interaction data as signals to improve search relevance and personalization
Types of Interactions
Mixpeek supports several types of user interactions that you can track:Click Interactions
Click Interactions
Track when users click on or select search results.Use cases:
- Determine which results users find most relevant
- Calculate click-through rates (CTR)
- Build personalized result rankings
View Interactions
View Interactions
Track when users view or engage with content after clicking.Use cases:
- Measure content engagement depth
- Identify abandoned content
- Evaluate post-click relevance
Conversion Interactions
Conversion Interactions
Track when users take valuable actions like purchases, signups, or downloads.Use cases:
- Understand which content drives business outcomes
- Optimize for conversion-driving content
- Calculate conversion rates by result position
Custom Interactions
Custom Interactions
Define and track interactions specific to your application.Use cases:
- Track domain-specific engagement metrics
- Collect specialized feedback signals
- Measure application-specific user behaviors
Recording Interactions
There is no dedicated public Interactions API in the OpenAPI spec. Track interactions in your application (e.g., analytics or your backend), then use those signals with supported endpoints like Retriever Execute.Apply interaction signals at query time
Use exclusion or boosting via filters/sorts when calling Execute Retriever:Recommended fields to log in your app
Field | Type | Description |
---|---|---|
type | string | Interaction type such as click, view, conversion |
document_id | string | Document the user interacted with |
user_id | string | The end-user identifier (pseudonymous recommended) |
Using Interactions in Search
Interactions can be used to personalize and improve search results: Use interaction history to pre-filter or post-process results on the client or your server. When using the API directly, prefer supported features like filters and sorts.User-based filtering example
Tracking Interactions Client-Side
For web applications, capture interactions in your app and send them to your backend or analytics system. Use those signals to inform subsequent Mixpeek queries.Analytics and Reporting
Use your existing analytics stack (e.g., Segment, Snowflake, BigQuery, ClickHouse) to store and analyze interaction events. Mixpeek does not expose analytics endpoints in the OpenAPI spec.Best Practices
1
Track Consistently
Implement interaction tracking consistently across your application to collect comprehensive data.
2
Include Context
Capture relevant contextual information in the metadata field to make interactions more valuable for analysis.
3
Balance Privacy
Respect user privacy by anonymizing user identifiers where appropriate and complying with relevant regulations.
4
Optimize Volume
For high-traffic applications, consider batching interaction records or sampling to manage data volume.
Interaction data can grow rapidly in high-traffic applications. Consider implementing data retention policies and monitoring storage usage.
Implementation Strategies
Basic Implementation
- Track clicks on search results
- Use document position data
- Include user and session IDs
- Store basic query information
Intermediate Implementation
- Track clicks, views, and conversions
- Measure view duration and engagement depth
- Include device and page context
- Implement client-side tracking with JS SDK
Advanced Implementation
- Track custom interaction types
- Implement personalized ranking based on history
- Use interaction data for A/B testing
- Analyze interaction patterns for recommendations
Enterprise Implementation
- Integrate with data warehouses
- Implement comprehensive reporting
- Use interaction data for model training
- Create personalized content recommendations