Skip to content

Commit 160c40a

Browse files
Merge remote-tracking branch 'origin/main' into forms/december-release-notes
2 parents ebdf452 + 71b3db1 commit 160c40a

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

17/umbraco-engage/developers/settings/custom-goals-scoring.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ Creating the goal is similar to creating a page view or page event goal. The **g
2222

2323
To trigger the goal, execute C# code during the visitor's pageview. Inject `Umbraco.Engage.Infrastructure.Analytics.Goals.IGoalService`, which provides multiple overloads to trigger goals:
2424

25-
- `TriggerGoal(long goalId, int value)` - Using numeric ID
26-
- `TriggerGoal(Guid goalKey, int value)` - Using GUID key (preferred)
25+
* `TriggerGoal(long goalId, int value)` - Using numeric ID
26+
* `TriggerGoal(Guid goalKey, int value)` - Using GUID key (preferred)
2727

2828
An implementation looks like:
2929

@@ -56,7 +56,7 @@ The method automatically determines the current page view, linking the goal to a
5656

5757
To trigger a goal outside of an HTTP request or a valid pageview, use the overload of `TriggerGoal` that takes the GUID of the pageview.
5858

59-
Retrieve the pageview GUID in the original request using `Umbraco.Engage.Infrastructure.Analytics.Common.IPageviewGuidManager.GetPageviewGuid()`. You will need to store this pageview GUID for later use when invoking:
59+
Retrieve the pageview GUID in the original request using `Umbraco.Engage.Infrastructure.Analytics.Common.IAnalyticsPageviewGuidManager.GetPageviewGuid()`. You will need to store this pageview GUID for later use when invoking:
6060

6161
```cs
6262
// Using numeric goal ID
@@ -70,9 +70,9 @@ This custom goal can now be used like other goals and will show up in any statis
7070

7171
## Available Method Overloads
7272

73-
| Method | Parameters | Use Case |
74-
|--------|------------|----------|
75-
| `TriggerGoal` | `(long goalId, int value = 0)` | Within HttpContext/pageview, using numeric ID |
76-
| `TriggerGoal` | `(Guid goalKey, int value = 0)` | Within HttpContext/pageview, using GUID key (preferred) |
77-
| `TriggerGoal` | `(Guid pageviewGuid, long goalId, int value = 0)` | Outside HttpContext, using numeric ID |
78-
| `TriggerGoal` | `(Guid pageviewGuid, Guid goalKey, int value = 0)` | Outside HttpContext, using GUID key (preferred) |
73+
| Method | Parameters | Use Case |
74+
| ------------- | -------------------------------------------------- | ------------------------------------------------------- |
75+
| `TriggerGoal` | `(long goalId, int value = 0)` | Within HttpContext/pageview, using numeric ID |
76+
| `TriggerGoal` | `(Guid goalKey, int value = 0)` | Within HttpContext/pageview, using GUID key (preferred) |
77+
| `TriggerGoal` | `(Guid pageviewGuid, long goalId, int value = 0)` | Outside HttpContext, using numeric ID |
78+
| `TriggerGoal` | `(Guid pageviewGuid, Guid goalKey, int value = 0)` | Outside HttpContext, using GUID key (preferred) |

0 commit comments

Comments
 (0)