Skip to content

Commit a4c3675

Browse files
authored
Apply suggestions
1 parent c2c603d commit a4c3675

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

17/umbraco-engage/developers/personalization/custom-scoring.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Both services support two ways to identify entities:
1818
- **Numeric IDs** (e.g., `personaId`, `customerJourneyStepId`) - Legacy approach using database IDs
1919
- **GUID Keys** (e.g., `personaKey`, `stepKey`) - Preferred approach using Umbraco's GUID-based identifiers
2020

21-
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`.
2222

2323
To resolve the required services, we will use Dependency Injection:
2424

@@ -50,7 +50,7 @@ var stepDo = customerJourneyGroup.Steps.FirstOrDefault(step => step.Title == "Do
5050
```
5151
{% endcode %}
5252

53-
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`:
5454

5555
```csharp
5656
// 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
6464

6565
Since the user is no longer (shifting away) from that step of the Customer Journey the implementation strategy is the same for personas.
6666

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.
6868

6969
{% 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).
7172
{% endhint %}
7273

7374
```csharp
@@ -113,7 +114,13 @@ public IActionResult ResetPersonaScoreToZero(Guid personaKey)
113114
```
114115

115116
{% 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)`
123+
117124
{% endhint %}
118125

119126
## Available Method Overloads

17/umbraco-engage/getting-started/for-developers/system-requirements.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ See the [Troubleshooting](../../installation/troubleshooting-installs.md) sectio
4242

4343
## Umbraco Cloud Compatibility
4444

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).
4646

4747
{% hint style="info" %}
4848
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.
5454

5555
If you are developing custom extensions for Umbraco Engage (such as custom segment parameters or external profile data components), the following additional requirements apply:
5656

57-
* **Node.js 22+**
58-
* **npm 10.9+**
57+
* `Node.js 22+`
58+
* `npm 10.9+`
5959

6060
These are only required for developers building custom frontend components, not for standard Umbraco Engage usage.

0 commit comments

Comments
 (0)