Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 12 additions & 5 deletions 16/umbraco-engage/developers/profiling/external-profile-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ If you want to use external data in a custom segment you have to write the data

## Visualization

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

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.

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

### Register custom components

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:
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:

```typescript
export class EngageProfileInsightElement extends UmbLitElement {
Expand All @@ -38,8 +38,15 @@ export class EngageProfileInsightElement extends UmbLitElement {
}
render() {
return html`
<h1>This is a custom external profile data element</h1>
<p>Current profile id: ${this.#profileId}</p>`;
<table>
<tr>
<td>This is a custom profile insight element</td>
</tr>
<tr>
<td>Current profile id: ${this.#profileId}</td>
</tr>
</table>
`;
}
}
export { EngageProfileInsightElement as element }
Expand All @@ -52,7 +59,7 @@ Then, load your component using a `manifest.ts` file. The extension type must be
{
"type": "engageExternalDataComponent",
"alias": "EngageDemo.ExternalProfileData",
"name": "External Profile Data Demo",
"name": "External Data Demo",
"weight": 100,
"js": "/path/to/my-javascript.js"
}
Expand Down