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
To implement our example above, we will be using the `ICustomerJourneyService`. To modify the customer journey step scoring, we need to know the ID or Key of the step we are trying to score. For your implementation you could hardcode the IDs/Keys (since they are unlikely to change), we can also fetch them by name through the `ICustomerJourneyGroupRepository`.
21
+
To implement the example above, the `ICustomerJourneyService` will be used. To modify the customer journey step scoring, the ID or Key of the step being updated must be known. For an implementation, the IDs/Keys can be hardcoded (since they are unlikely to change), or they can be fetched by name through the `ICustomerJourneyGroupRepository`.
22
22
23
23
To resolve the required services, we will use Dependency Injection:
We can now inspect the step **Do** variable and find its `Id` or `Key`. To score the step, we provide either the numeric ID or GUID Key and the score to the `CustomerJourneyService`:
53
+
Inspect the step **Do** variable and find its `Id` or `Key`. To score the step, provide either the numeric ID or the GUID Key and the score to the `CustomerJourneyService`:
54
54
55
55
```csharp
56
56
// Using numeric ID (legacy approach)
@@ -64,10 +64,11 @@ We have now added a **score of 100** to the Customer Journey step "**Do**". It i
64
64
65
65
Since the user is no longer (shifting away) from that step of the Customer Journey the implementation strategy is the same for personas.
66
66
67
-
Another, more advanced, example could be on how to reset the score of a persona for a given visitor. We can use the same approach as above to fetch the **persona** instead of the Customer Journey for the current visitor. We can get the visitor's current score based on the Persona ID or Key, and subtract that exact score from said visitor.
67
+
Another, more advanced, example could be on how to reset the score of a persona for a given visitor. Use the same approach as above to fetch the **persona** instead of the Customer Journey for the current visitor. Get the visitor's current score based on the Persona ID or Key, and subtract that exact score from said visitor.
68
68
69
69
{% hint style="info" %}
70
-
When scoring outside of a regular HttpContext request (e.g., in background jobs or external integrations), you must use the overload that includes `PersonalizationScoreType`. The `PersonalizationScoreType` enum specifies whether the score is `Implicit` (behavior-based) or `Explicit` (direct assignment).
70
+
71
+
When scoring outside of a regular HttpContext request (for example, in background jobs or external integrations), use the overload with `PersonalizationScoreType`. The `PersonalizationScoreType` enum specifies whether the score is `Implicit` (behavior-based) or `Explicit` (direct assignment).
71
72
{% endhint %}
72
73
73
74
```csharp
@@ -113,7 +114,13 @@ public IActionResult ResetPersonaScoreToZero(Guid personaKey)
113
114
```
114
115
115
116
{% hint style="info" %}
116
-
The simpler overloads `ScorePersona(long personaId, int score)`, `ScorePersona(Guid personaKey, int score)`, `ScoreCustomerJourneyStep(long customerJourneyStepId, int score)`, and `ScoreCustomerJourneyStep(Guid stepKey, int score)` should only be used within the context of a regular HttpContext request, as they automatically resolve the current visitor.
117
+
The following overloads should only be used within the context of a regular HttpContext request, as they automatically resolve the current visitor.
118
+
119
+
-`ScorePersona(long personaId, int score)`,
120
+
-`ScorePersona(Guid personaKey, int score)`,
121
+
-`ScoreCustomerJourneyStep(long customerJourneyStepId, int score)`, and
122
+
-`ScoreCustomerJourneyStep(Guid stepKey, int score)`
Copy file name to clipboardExpand all lines: 17/umbraco-engage/getting-started/for-developers/system-requirements.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ See the [Troubleshooting](../../installation/troubleshooting-installs.md) sectio
42
42
43
43
## Umbraco Cloud Compatibility
44
44
45
-
Umbraco Engage is compatible with Umbraco Cloud (Standard, Professional and Enterprise plan).
45
+
Umbraco Engage is compatible with Umbraco Cloud (Standard, Professional, and Enterprise plans).
46
46
47
47
{% hint style="info" %}
48
48
If you want to run an Umbraco Cloud site locally, point the connection string to a (local) SQL Server database. SQLite is not supported.
@@ -54,7 +54,7 @@ Umbraco Deploy is currently not supported for the Umbraco Engage features.
54
54
55
55
If you are developing custom extensions for Umbraco Engage (such as custom segment parameters or external profile data components), the following additional requirements apply:
56
56
57
-
***Node.js 22+**
58
-
***npm 10.9+**
57
+
*`Node.js 22+`
58
+
*`npm 10.9+`
59
59
60
60
These are only required for developers building custom frontend components, not for standard Umbraco Engage usage.
0 commit comments