diff --git a/16/umbraco-engage/developers/profiling/external-profile-data.md b/16/umbraco-engage/developers/profiling/external-profile-data.md index 718e709759d..b1c60d0a5c1 100644 --- a/16/umbraco-engage/developers/profiling/external-profile-data.md +++ b/16/umbraco-engage/developers/profiling/external-profile-data.md @@ -22,29 +22,40 @@ When this component is registered a new tab will be rendered in the Profiles sec ### Register custom components -To render this External Profile Tab with a custom component, you have to create your component and register it with Umbraco Engage. The following code will show how to do both. Add the below code in a JavaScript file in the `App_Plugins` folder and load it using a `package.manifest` file. If you have your own custom module, you can use this: - -```javascript -// angular.module("myCustomModule", ["Engage"]); -// angular.module("umbraco").requires.push("myCustomModule"); -// angular.module("myCustomModule").run([ ... ]) -// Create a component. We create a component named "myCustomExternalProfileDataComponent" here: - -angular.module("umbraco").component("myCustomExternalProfileDataComponent", { - bindings: { visitorId: "<" }, - template: "
Current profile id: ${this.#profileId}
`; + } +} +export { EngageProfileInsightElement as element } +customElements.define("profile-insight-demo", EngageProfileInsightElement); +``` + +Then, load your component using a `manifest.ts` file. The extension type must be `engageExternaldataComponent`. + +```json +{ + "type": "engageExternalDataComponent", + "alias": "EngageDemo.ExternalProfileData", + "name": "External Profile Data Demo", + "weight": 100, + "js": "/path/to/my-javascript.js" +} ``` This is all that is required to render your custom component.