From 0a927b387ddcacc3db5082bf813b72b014320738 Mon Sep 17 00:00:00 2001 From: Greg Leonard <45019882+greg-el@users.noreply.github.com> Date: Wed, 22 Nov 2023 13:14:11 +0000 Subject: [PATCH] Move buildButtonClick to plugin - export `removeEmptyProperties` --- libraries/tracker-core/src/core.ts | 38 +------------------ .../src/core.ts | 37 ++++++++++++++++++ 2 files changed, 38 insertions(+), 37 deletions(-) create mode 100644 plugins/browser-plugin-button-click-tracking/src/core.ts diff --git a/libraries/tracker-core/src/core.ts b/libraries/tracker-core/src/core.ts index f5920a4cb..ff4c0cda2 100644 --- a/libraries/tracker-core/src/core.ts +++ b/libraries/tracker-core/src/core.ts @@ -851,42 +851,6 @@ export function buildLinkClick(event: LinkClickEvent): PayloadBuilder { return buildSelfDescribingEvent({ event: eventJson }); } -/** - * A Button Click event - * - * Used when a user clicks on a