From 968ef120d217e4cc1f9b9ddd6d1650485ea69607 Mon Sep 17 00:00:00 2001 From: vvadymk Date: Tue, 18 Jul 2023 00:10:14 +0300 Subject: [PATCH] feat: add custrom event tracking --- lib/templates/plugin.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/templates/plugin.js b/lib/templates/plugin.js index 56c5a14..65937f0 100644 --- a/lib/templates/plugin.js +++ b/lib/templates/plugin.js @@ -74,6 +74,16 @@ class Fb { } + /** + * @method trackCustom + */ + track (event = null, parameters = null) { + if (!event) { + event = this.options.trackCustom + } + this.query('trackCustom', event, parameters) + } + /** * @method query * @param {string} cmd