You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Adding tracking in [[= product_name_cdp =]].
3
+
edition: experience
4
+
---
5
+
6
+
# Add tracking
7
+
8
+
The final step is setting up a tracking script that identifies visitors and records their interactions.
9
+
You can set it up in two ways:
10
+
11
+
## Tracking with built-in Raptor tracking functions
12
+
13
+
If your project uses the [Raptor connector](raptor_connector.md), use the built-in [Raptor tracking functions](tracking_functions.md).
14
+
This recommended approach supports both client-side and server-side tracking, handles cookie consent, and sets the tracking cookie required for [anonymous user segmentation](cdp_configuration.md#anonymous-user-segmentation).
15
+
16
+
For setup instructions, see [Raptor tracking functions](tracking_functions.md).
17
+
18
+
## Manual setup
19
+
20
+
If you aren't using the Raptor connector, you can set up tracking manually.
21
+
22
+
It requires a head tracking script between the `<head></head>` tags on your website, a main script after the head script, and cookie consent.
23
+
24
+
For more information about setting up a tracking script manually, see [Raptor documentation](https://content.raptorservices.com/help-center/client-side-tracking).
25
+
26
+
Now, you need to add a tracker to specific places in your website where you want to track users.
27
+
For example, add this tracker to the landing page template to track user entrances.
28
+
29
+
```js
30
+
raptor.trackEvent('visit', ..., ...);
31
+
```
32
+
or purchases:
33
+
34
+
```js
35
+
//Parameters for Product 1
36
+
raptor.trackEvent('buy', ..., ...);
37
+
//Parameters for Product 2
38
+
raptor.trackEvent('buy', ..., ...);
39
+
```
40
+
41
+
For tracking to be effective, you also need to send ID of a logged-in user in the same way.
42
+
Add the user ID information of logged-in users by using below script:
43
+
44
+
```js
45
+
raptor.push("setRuid","USER_ID_HERE")
46
+
```
47
+
48
+
For anonymous visitors, Raptor's tracking script automatically sets an `rsa` cookie that uniquely identifies the visitor, without calling the `setRuid` method.
49
+
50
+
For more information on tracking events, see [the documentation](https://content.raptorservices.com/help-center/tracking-events-for-recommendation).
- `account_number` - a [number](#account-number) obtained from Accounts settings in [[= product_name_cdp =]] dashboard
37
40
- `stream_id`- stream ID generated when importing data from the stream file in Data Manage
38
41
- `activations`- activation details. You can configure multiple activations. They have to be of type `Ibexa` in [[= product_name =]] dashboard
39
42
- `client_id`and `client_secret` - client credentials are used to authenticate against the Webhook endpoint. Make sure they're random and secure
40
43
- `segment_group_identifier`- a [location](#segment-group) to which CDP data is imported
44
+
- `membership.activation_id`and `membership.api_key` - credentials for the CDP Membership API, required for [anonymous user segmentation](#anonymous-user-segmentation)
41
45
42
46
## Account number
43
47
@@ -65,3 +69,38 @@ Choose wisely, as once connected to CDP segment group cannot be changed.
65
69

66
70
67
71
Next, add a segment group identifier to the configuration.
72
+
73
+
## Anonymous user segmentation
74
+
75
+
To set up [segmentation for Anonymous visitors](cdp_guide.md#anonymous-user-segmentation), execute the following steps:
76
+
77
+
### Set up CDP API activation
78
+
79
+
Create an activation of type "CDP API" in the Raptor dashboard.
80
+
For instructions, see [CDP API activations](https://content.raptorservices.com/help-center/cdp/activations/cdp-api) in Raptor documentation.
81
+
82
+
### Configure website tracking dataflow
83
+
84
+
Set up a "website tracking" dataflow with `coid` (cookie ID) as the person identifier so that Raptor can use the tracking data in the CDP.
85
+
86
+
For more information, see [Introduction to the Data Manager](https://content.raptorservices.com/help-center/tools/datamanager/introduction-to-the-data-manager) in Raptor documentation.
87
+
88
+
### Configuration
89
+
90
+
Add the `membership.activation_id` and `membership.api_key` credentials to your [`ibexa_cdp` configuration](#configuration).
91
+
92
+
To control how long resolved segment memberships are cached per visitor, use the `ibexa_segmentation.anonymous.cache` configuration key:
Copy file name to clipboardExpand all lines: docs/cdp/cdp_guide.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
description: The Ibexa CDP product guide describes all the possibilities that the Customer Data Platform offers to help you build great customer experiences.
2
+
description: The [[= product_name_cdp =]] product guide describes all the possibilities that the Customer Data Platform offers to help you build great customer experiences.
3
3
edition: experience
4
4
---
5
5
@@ -103,6 +103,14 @@ You can also connect created audiences to the activations.
103
103
104
104

105
105
106
+
### Anonymous user segmentation
107
+
108
+
[[= product_name =]] can resolve CDP segments for anonymour users, enabling personalised content delivery for not logged-in visitors.
109
+
110
+
When an anonymous visitor accesses your site, Raptor starts building an [anonymous profile](https://content.raptorservices.com/help-center/introduction-to-person-identifiers-and-profile-unification).
111
+
112
+
You can segment these anonymous profiles into different audiences, exactly as in case of logged-in users, and use this information in [[= product_name =]] to provide personalized experiences for them.
Copy file name to clipboardExpand all lines: docs/cdp/cdp_installation.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
description: Installation of standalone Ibexa CDP package.
2
+
description: Installation of standalone [[= product_name_cdp =]] package.
3
3
edition: experience
4
4
---
5
5
@@ -10,7 +10,7 @@ First, you need to register your [[= product_name_cdp =]] account, then you can
10
10
11
11
## Register in [[= product_name_cdp =]] dashboard
12
12
13
-
If you decide to acquire [[= product_name_cdp =]] contact your sales representative, they provide you with a registration link to [[= product_name_cdp =]].
13
+
If you decide to acquire [[= product_name_cdp =]], contact your sales representative to receive a registration link to [[= product_name_cdp =]].
14
14
After registration, you get access to a separate instance where you can find data required for configuring, activating, and using this feature.
0 commit comments