Skip to content

Commit 2b5f4e8

Browse files
TvGesselgitbook-bot
authored andcommitted
GITBOOK-47: Tom's Nov 28 changes
1 parent 0702770 commit 2b5f4e8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ Creating the goal is similar to creating a page view or page event goal. The **g
1818

1919
![goal id](../../.gitbook/assets/engage-custom-goal-ID.png)
2020

21-
## Trigger goal in C#
21+
## Trigger goal in C\#
2222

23-
To trigger the goal, execute C# code during the visitor's pageview. Inject `Umbraco.Engage.Business.Analytics.Goals.IGoalService`, which has a `TriggerGoal(long goalId, int value)` method. An implementation looks like:
23+
To trigger the goal, execute C# code during the visitor's pageview. Inject `Umbraco.Engage.Infrastructure.Analytics.Goals.IGoalService`, which has a `TriggerGoal(long goalId, int value)` method. An implementation looks like:
2424

2525
```cs
26-
using Umbraco.Engage.Business.Analytics.Goals;
26+
using Umbraco.Engage.Infrastructure.Analytics.Goals;
2727

2828
public class YourService
2929
{
@@ -45,7 +45,7 @@ The method automatically determines the current page view, linking the goal to a
4545

4646
To trigger a goal outside of an HTTP request, use the overload of **TriggerGoal** that takes the GUID of the pageview.
4747

48-
Retrieve the pageview GUID in the original request using **Umbraco.Engage.Business.Analytics.Common.IPageviewGuidManager**. You will need to store this pageview GUID for later use when invoking:
48+
Retrieve the pageview GUID in the original request using **Umbraco.Engage.Infrastructure.Analytics.Common.IPageviewGuidManager**. You will need to store this pageview GUID for later use when invoking:
4949

5050
```cs
5151
_goalService.TriggerGoal(pageviewGuid, goalId, value);

0 commit comments

Comments
 (0)