From 98c734bc09b4e49118b335d80623bf385bf58d6a Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 17 Jan 2018 10:23:11 -0500 Subject: [PATCH] ga event for open popup --- src/background/commands.background.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/background/commands.background.ts b/src/background/commands.background.ts index 9513904108..ce206442ef 100644 --- a/src/background/commands.background.ts +++ b/src/background/commands.background.ts @@ -93,5 +93,10 @@ export default class CommandsBackground { } safari.extension.toolbarItems[0].showPopover(); + + (window as any).ga('send', { + hitType: 'event', + eventAction: 'Opened Popup From Command', + }); } }