Skip to content

Commit e4b1a31

Browse files
authored
Added Raptor doc (#3200)
1 parent 83a0f6c commit e4b1a31

6 files changed

Lines changed: 18 additions & 2 deletions

File tree

code_samples/recommendations/config/packages/ibexa_connector_raptor.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ ibexa:
1111

1212
# Raptor Recommendations API URL, optional, set by default
1313
recommendations_api_url: '%ibexa.connector.raptor.recommendations.api_url%'
14+
15+
# Cookie lifetime in days for server-side tracking identifier
16+
# Default: 365 days. Minimum: 1 day.
17+
cookie_id_lifetime_days: 365
1418
ibexa_connector_raptor:
1519
# When enabled, tracking exceptions are thrown instead of being silently handled
1620
strict_exceptions: true

docs/recommendations/raptor_integration/connector_installation_configuration.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ composer require ibexa/connector-raptor
2626
To configure the Raptor connector, use the `ibexa.system.<scope>.connector_raptor` configuration key in the `config/packages/ibexa_connector_raptor.yaml` file:
2727

2828
``` yaml
29-
[[= include_file('code_samples/recommendations/config/packages/ibexa_connector_raptor.yaml', 0, 13) =]]
29+
[[= include_file('code_samples/recommendations/config/packages/ibexa_connector_raptor.yaml', 0, 17) =]]
3030
```
3131

3232
- `enabled` - enables or disables the connector for a given scope. Default value: `true`. If set to `false`, no tracking or recommendation requests are executed.
@@ -36,6 +36,7 @@ To configure the Raptor connector, use the `ibexa.system.<scope>.connector_rapto
3636
- `server` - tracking is handled on the backend, with events sent directly to the tracking API. It's not affected by ad blockers.
3737
- `recommendations_api_key` - an API key used to authenticate requests to the Recommendations API. This key allows the connector to retrieve personalized recommendations from the recommendation engine. You can find this value as ["API key"](connector_installation_configuration.md#recommendations-api-key) in Raptor Control Panel.
3838
- `recommendations_api_url` (optional) - overrides the default Raptor address, do not set it unless a custom endpoint is required.
39+
- `cookie_id_lifetime_days` (optional) - the lifetime in days of the server-side tracking identifier cookies. Default value: `365` days. Minimum value: `1` day.
3940

4041
By default, `tracking_type` is set to `client` as client-side tracking is the standard Raptor mode.
4142
To understand the differences between client and server tracking types, including their advantages and disadvantages, refer to the [Raptor documentation](https://content.raptorservices.com/help-center/client-side-vs.-server-side-tracking).
@@ -73,6 +74,6 @@ The following settings are global and apply to the entire application (they are
7374

7475
This value can be overridden in `config/packages/ibexa_connector_raptor.yaml` file, for example:
7576

76-
``` yaml hl_lines="14-17"
77+
``` yaml hl_lines="18-20"
7778
[[= include_file('code_samples/recommendations/config/packages/ibexa_connector_raptor.yaml') =]]
7879
```

docs/recommendations/raptor_integration/raptor_connector_guide.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ Recommendation blocks are organized into dedicated categories, each grouping blo
6868
- [Most popular content]([[= user_doc =]]/recommendations/raptor_integration/raptor_recommendation_blocks/#most-popular-content-block)
6969
- [Other customers have also seen this content]([[= user_doc =]]/recommendations/raptor_integration/raptor_recommendation_blocks/#other-customers-have-also-seen-this-content-block)
7070
- [Personalized content recommendations]([[= user_doc =]]/recommendations/raptor_integration/raptor_recommendation_blocks/#personalized-content-recommendations-block)
71+
- [User’s content history]([[= user_doc =]]/recommendations/raptor_integration/raptor_recommendation_blocks/#users-content-history-block)
7172
- **Recommendations: Product** - displays product suggestions based on visitors’ browsing history:
73+
- [Items associated with the given Content]([[= user_doc =]]/recommendations/raptor_integration/raptor_recommendation_blocks/#items-associated-with-the-given-content-block)
7274
- [Most popular products]([[= user_doc =]]/recommendations/raptor_integration/raptor_recommendation_blocks/#most-popular-products-block)
7375
- [Most popular products in category]([[= user_doc =]]/recommendations/raptor_integration/raptor_recommendation_blocks/#most-popular-products-in-category-block)
7476
- [Other customers have also seen]([[= user_doc =]]/recommendations/raptor_integration/raptor_recommendation_blocks/#other-customers-have-also-seen-block)

docs/recommendations/raptor_integration/recommendation_blocks.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ In the toolbar, corresponding categories for recommendation blocks are available
2323
- [Most popular content]([[= user_doc =]]/recommendations/raptor_integration/raptor_recommendation_blocks/#most-popular-content-block)
2424
- [Other customers have also seen this content]([[= user_doc =]]/recommendations/raptor_integration/raptor_recommendation_blocks/#other-customers-have-also-seen-this-content-block)
2525
- [Personalized content recommendations]([[= user_doc =]]/recommendations/raptor_integration/raptor_recommendation_blocks/#personalized-content-recommendations-block)
26+
- [User’s content history]([[= user_doc =]]/recommendations/raptor_integration/raptor_recommendation_blocks/#users-content-history-block)
2627
- **Recommendations: Product** - displays product suggestions based on visitors’ browsing history:
28+
- [Items associated with the given Content]([[= user_doc =]]/recommendations/raptor_integration/raptor_recommendation_blocks/#items-associated-with-the-given-content-block)
2729
- [Most popular products]([[= user_doc =]]/recommendations/raptor_integration/raptor_recommendation_blocks/#most-popular-products-block)
2830
- [Most popular products in category]([[= user_doc =]]/recommendations/raptor_integration/raptor_recommendation_blocks/#most-popular-products-in-category-block)
2931
- [Other customers have also seen]([[= user_doc =]]/recommendations/raptor_integration/raptor_recommendation_blocks/#other-customers-have-also-seen-block)

docs/recommendations/raptor_integration/tracking_php_api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ For more information, see the same arguments of the Twig function [`ibexa_tracki
2828
| `EventType::BUY` | `ProductInterface` | `EventContext::SUBTOTAL`,<br>`EventContext::CURRENCY`,<br>`EventContext::QUANTITY`,<br>(optional) `EventContext::CATEGORY_IDENTIFIER`,<br>(optional) `EventContext::WEBSITE_ID` |
2929
| `EventType::BASKET` | `ProductInterface` | `EventContext::BASKET_CONTENT`,<br>`EventContext::BASKET_ID`,<br>(optional) `EventContext::CATEGORY_IDENTIFIER`,<br>(optional) `EventContext::QUANTITY`,<br>(optional) `EventContext::WEBSITE_ID` |
3030
| `EventType::ITEM_CLICK` | `string` (product code) | `EventContext::MODULE_NAME`,<br>`EventContext::REDIRECT_URL` |
31+
| `EventType::PAGEVIEW` | `string` (URL) | `EventContext::URL` (required),<br>(optional) `EventContext::WEBSITE_ID` |
3132

3233
Check the following example:
3334

docs/templating/twig_function_reference/recommendations_twig_functions.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@ ibexa_tracking_track_event(
7878

7979
The following events are supported and can be triggered from Twig templates:
8080

81+
### `pageview` event
82+
83+
The `ibexa_tracking_script()` Twig function automatically sends a [`pageview`](https://content.raptorservices.com/help-center/tracking-events-parameters-reference#:~:text=Event%20Specifications%20%28Full%20Reference) event to Raptor for every incoming GET request, in both `client` and `server` tracking types.
84+
85+
Use it for basic page metrics and debugging the Live Tracking Stream.
86+
8187
### Product `visit` event
8288

8389
This event tracks product page visits by users.

0 commit comments

Comments
 (0)