Discussion Forum: Telemetry Events

This document details about telemetry events generated from discussion-ui library & how to capture the event

 

Event emitted by Discussion-UI library

Interact

{ "eid": "INTERACT", "edata": { "id": "category-card", "type": "CLICK", "pageid": "discussion-category" }, "context": { "cdata": [ { "id": 13, "type": "Category" } ], "object": { "id": 13, "type": "Category", "ver": "1", "rollup": { "l1": { "id": 6, "type": "Category" }, "l2": { "id": 8, "type": "Category" } } } } }

Impression

{ "eid": "IMPRESSION", "edata": { "type": "view", "pageid": "discussion-home", "uri": "/discussion/category/13%2Fannouncements" }, "context": { "cdata": [ { "id": 13, "type": "Category" } ] } }

 

Integration in the portal:

Capturing telemetry events triggered by the Discussion-UI Library

import { DiscussionEventsService } from 'discussion-ui'; constructor(private discussionEvents: DiscussionEventsService) { } ngOnInit() { this.discussionEvents.telemetryEvent.subscribe(event => { console.log('telemetryEvent', event); }); }