Skip to content

Commit 99d1c43

Browse files
authored
Merge pull request #7487 from umbraco/v16/engage/Adding-how-to-implement-External-Profile-Data
Minor updates on how to implement external profile data.
2 parents 0c18a33 + 1d2435b commit 99d1c43

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed
-8.71 KB
Loading

16/umbraco-engage/developers/profiling/external-profile-data.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ If you want to use external data in a custom segment you have to write the data
1414

1515
## Visualization
1616

17-
It is possible to visualize this external data alongside the Umbraco Engage profile in the backoffice by providing a custom `AngularJS` component for this purpose.
17+
It is possible to visualize this external data alongside the Umbraco Engage profile in the backoffice by providing a custom Web component for this purpose.
1818

1919
When this component is registered a new tab will be rendered in the Profiles section when viewing profile details. This will render the custom component that was provided and get passed the Umbraco Engage visitor ID.
2020

2121
![External profile data tab.](../../.gitbook/assets/External-profile-data-tab-v16.png)
2222

2323
### Register custom components
2424

25-
To render this External Profile Tab with a custom component, create your component and register it with Umbraco Engage. The following code demonstrates both steps. Add the below code in a TypeScript file:
25+
To render this External Data Demo tab with a custom component, create your component and register it with Umbraco Engage. The following code demonstrates both steps. Add the below code in a TypeScript file:
2626

2727
```typescript
2828
export class EngageProfileInsightElement extends UmbLitElement {
@@ -38,8 +38,15 @@ export class EngageProfileInsightElement extends UmbLitElement {
3838
}
3939
render() {
4040
return html`
41-
<h1>This is a custom external profile data element</h1>
42-
<p>Current profile id: ${this.#profileId}</p>`;
41+
<table>
42+
<tr>
43+
<td>This is a custom profile insight element</td>
44+
</tr>
45+
<tr>
46+
<td>Current profile id: ${this.#profileId}</td>
47+
</tr>
48+
</table>
49+
`;
4350
}
4451
}
4552
export { EngageProfileInsightElement as element }
@@ -52,7 +59,7 @@ Then, load your component using a `manifest.ts` file. The extension type must be
5259
{
5360
"type": "engageExternalDataComponent",
5461
"alias": "EngageDemo.ExternalProfileData",
55-
"name": "External Profile Data Demo",
62+
"name": "External Data Demo",
5663
"weight": 100,
5764
"js": "/path/to/my-javascript.js"
5865
}

0 commit comments

Comments
 (0)