How to Measure User Interactions with Metrics (legacy)

This How-To assumes you have completed the quick start and have an exhibit connected to Gumband Cloud

Measure User Interactions

Recording events to measure user interaction is easy with the Gumband SDK. Simply use the GumbandSDK.event.create(eventName: string, data: any) function to dispatch new events to the Gumband Cloud. For example, the following will dispatch 16 fake button press events:

// A function to mock up fake events using the real call. createFakeButtonPressEvents() { for (let i=0; i<10; i++) { await gb.event.create("Blue Button Press", {}); } for (let i=0; i<5; i++) { await gb.event.create("Red Button Press", {}); } await gb.event.create("Yellow Button Press", {}); };

which would result in the following events in the Gumband UI:

Fake button press events in the Exhibit Reports tab of the Gumband UI.