Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(specs): extend Analytics descriptions #4360

Merged
merged 6 commits into from
Jan 16, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion specs/analytics/paths/click/getAddToCartRate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ get:
By default, the analyzed period includes the last eight days including the current day.

The rate is the number of add-to-cart conversion events divided by the number of tracked searches.
A search is tracked if it returns a queryID and `clickAnalytics` is `true`.
A search is tracked if it returns a queryID (`clickAnalytics` is `true`).
This differs from the response's `count`, which shows the overall number of searches, including those where `clickAnalytics` is `false`.

**There's a difference between a 0 and null add-to-cart rate when `clickAnalytics` is enabled:**
Expand Down
2 changes: 1 addition & 1 deletion specs/analytics/paths/click/getAverageClickPosition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ get:
'200':
description: OK
headers:
x-ratelimit-limit:a
x-ratelimit-limit:
$ref: '../../../common/responses/rateLimit.yml#/x-ratelimit-limit'
x-ratelimit-remaining:
$ref: '../../../common/responses/rateLimit.yml#/x-ratelimit-remaining'
Expand Down
1 change: 0 additions & 1 deletion specs/analytics/paths/click/getClickPositions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ get:
This lets you check how many clicks the first, second, or tenth search results receive.

An average of `0` when `clickAnalytics` is enabled means Algolia didn't receive any [click events](https://www.algolia.com/doc/guides/sending-events/getting-started/) for the queries.
The average is `0` until Algolia receives at least one click event.
parameters:
- $ref: '../../../common/parameters.yml#/Index'
- $ref: '../../../common/parameters.yml#/StartDate'
Expand Down
2 changes: 1 addition & 1 deletion specs/analytics/paths/click/getClickThroughRate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ get:
- analytics
summary: Retrieve click-through rate
description: |
Retrieves the click-through rate (CTR) for all your searches with at least one click event, including a daily breakdown
Retrieves the click-through rate (CTR) for all your searches with at least one click event, including a daily breakdown.

By default, the analyzed period includes the last eight days including the current day.

Expand Down
2 changes: 1 addition & 1 deletion specs/analytics/paths/click/getPurchaseRate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ get:
By default, the analyzed period includes the last eight days including the current day.

The rate is the number of purchase conversion events divided by the number of tracked searches.
A search is tracked if it returns a queryID and `clickAnalytics` is `true`.
A search is tracked if it returns a query ID (`clickAnalytics` is `true`).
This differs from the response's `count`, which shows the overall number of searches, including those where `clickAnalytics` is `false`.

**There's a difference between a 0 and null purchase rate when `clickAnalytics` is enabled:**
Expand Down
6 changes: 3 additions & 3 deletions specs/analytics/paths/revenue/getRevenue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ get:
description: |
Retrieves revenue-related metrics, such as the total revenue or the average order value.

To retrieve revenue-related metrics, sent purchase events.
To retrieve revenue-related metrics, send purchase events.
By default, the analyzed period includes the last eight days including the current day.

Revenue is based on purchase conversion events (an `eventSubtype` of `purchase`).
The revenue is `price` multiplied by `quantity` for each object in the event's `objectData` array.
Revenue is based on purchase conversion events (a conversion event with an `eventSubtype` attribute of `purchase`).
The revenue is the `price` attribute multiplied by the `quantity` attribute for each object in the event's `objectData` array.
parameters:
- $ref: '../../../common/parameters.yml#/Index'
- $ref: '../../../common/parameters.yml#/StartDate'
Expand Down
2 changes: 1 addition & 1 deletion specs/analytics/paths/search/getNoClickRate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ get:
summary: Retrieve no click rate
description: |
Retrieves the fraction of searches that didn't lead to any click within a time range, including a daily breakdown.
It also returns the count of tracked searches and tracked searches without clicks.
It also returns the number of tracked searches and tracked searches without clicks.

By default, the analyzed period includes the last eight days including the current day.
parameters:
Expand Down
2 changes: 1 addition & 1 deletion specs/analytics/paths/search/getSearchesNoResults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
operationId: getSearchesNoResults
x-acl:
- analytics
summary: Retrieve the 1,000 most frequent searches that produced zero results.
summary: Retrieves the most popular searches that didn't return any results.
description:

Check failure on line 8 in specs/analytics/paths/search/getSearchesNoResults.yml

View workflow job for this annotation

GitHub Actions / specs

Empty mapping values are forbidden

parameters:
- $ref: '../../../common/parameters.yml#/Index'
Expand Down
12 changes: 6 additions & 6 deletions specs/analytics/paths/search/getTopHits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,24 @@ get:
description: |
Retrieves the object IDs of the 1,000 most frequent search results.

If you enable `clickAnalytics` (set it to `true`), you'll also see:
If you set the `clickAnalytics` query parameter to true, the response also includes:

- Tracked searches count. A search is tracked if it returns a queryID and `clickAnalytics` is `true`. This differs from the response's `count`, which shows the overall number of searches, including those where `clickAnalytics` is `false`.
- Tracked searches count. Tracked searches are Search API requests with the `clickAnalytics` parameter set to `true`. This differs from the response's `count`, which shows the overall number of searches, including those where `clickAnalytics` is `false`.
- Click count
- Click-through rate (CTR)
- Conversion count
- Conversion rate (CR)
- Average click position.
- Average click position

If you enable `revenueAnalytics` (set it to `true`), you'll also see:
If you set the `revenueAnalytics` parameter to `true`, the response also includes:

- Add-to-cart count
- Add-to-cart rate (ATCR)
- Purchase count
- Purchase rate
- Revenue details for each currency.
- Revenue details for each currency

**There's a difference between 0% rates and null rates when `clickAnalytics` is enabled:**
**There's a difference between 0% rates and null rates:**

- **Null** means there were no queries: since Algolia didn't receive any events, the rates (CTR, CR, ATCR, purchase rate) are null.
- **0% rates** mean there _were_ queries but no [click or conversion events](https://www.algolia.com/doc/guides/sending-events/getting-started/) were received.
Expand Down
12 changes: 6 additions & 6 deletions specs/analytics/paths/search/getTopSearches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,24 @@ get:
description: |
Returns the most popular searches. For each search, it also includes the average number of hits.

If you enable `clickAnalytics` (set it to `true`), you'll also see:
If you set the `clickAnalytics` query parameter to `true`, the response also includes

- Tracked searches count. A search is tracked if it returns a queryID and `clickAnalytics` is `true`. This differs from the response's `count`, which shows the overall number of searches, including those where `clickAnalytics` is `false`.
- Tracked searches count. Tracked searches are Search API requests with the `clickAnalytics` parameter set to `true`. This differs from the response's `count`, which shows the overall number of searches, including those where `clickAnalytics` is `false`.
- Click count
- Click-through rate (CTR)
- Conversion count
- Conversion rate (CR)
- Average click position.
- Average click position

If you enable `revenueAnalytics` (set it to `true`), you'll also see:
If you set the `revenueAnalytics` query parameter to `true`, the response also includes:

- Add-to-cart count
- Add-to-cart rate (ATCR)
- Purchase count
- Purchase rate
- Revenue details for each currency.
- Revenue details for each currency

**There's a difference between 0% rates and null rates when `clickAnalytics` is enabled:**
**There's a difference between 0% rates and null rates:**

- **Null** means there were no queries: since Algolia didn't receive any events, the rates (CTR, CR, ATCR, purchase rate) are null.
- **0% rates** mean there _were_ queries but no [click or conversion events](https://www.algolia.com/doc/guides/sending-events/getting-started/) were received.
Expand Down
4 changes: 2 additions & 2 deletions specs/analytics/spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ info:
- `x-algolia-api-key`. An API key with the necessary permissions to make the request.
The required access control list (ACL) to make a request is listed in each endpoint's reference.

Find your application ID and API key in the [Algolia dashboard](https://dashboard.algolia.com/account).
You can find your application ID and API key in the [Algolia dashboard](https://dashboard.algolia.com/account).

## Rate limits

Expand Down Expand Up @@ -62,7 +62,7 @@ info:

Algolia accepts queries on each keystroke.
To ensure you have relevant analytics data, however, the series of keystrokes is aggregated to keep only the latest (final) user query.
This is called prefix aggregation.
This is called "prefix" aggregation.

For more information, see [Query agggregation and processing](https://www.algolia.com/doc/guides/search-analytics/concepts/query-aggregation/).

Expand Down
Loading