This is an automated email from the ASF dual-hosted git repository.
jkevan pushed a commit to branch UNOMI-610-new-tracker
in repository https://gitbox.apache.org/repos/asf/unomi-tracker.git
The following commit(s) were added to refs/heads/UNOMI-610-new-tracker by this
push:
new dd61930 UNOMI-610: base tracker first draft
dd61930 is described below
commit dd61930d2badff1ddb355e8d0cca2f07e7d4c68b
Author: Kevan <[email protected]>
AuthorDate: Tue Sep 6 15:18:01 2022 +0200
UNOMI-610: base tracker first draft
---
dist/apache-unomi-tracker.cjs.js | 8 +++++---
dist/apache-unomi-tracker.esm.js | 8 +++++---
dist/apache-unomi-tracker.umd.js | 8 +++++---
src/tracker/tracker.js | 8 +++++---
4 files changed, 20 insertions(+), 12 deletions(-)
diff --git a/dist/apache-unomi-tracker.cjs.js b/dist/apache-unomi-tracker.cjs.js
index f437cdb..9d8bcdb 100644
--- a/dist/apache-unomi-tracker.cjs.js
+++ b/dist/apache-unomi-tracker.cjs.js
@@ -123,9 +123,11 @@ var newTracker = function newTracker() {
},
/**
- * In case Unomi contains rules related to HTML forms in the current page,
this will be there names/ids
- * The logic is simple, in case a rule exists for current webpage on a
form event in Unomi backend,
- * then this form will be identified as form to be watched.
+ * In case Unomi contains rules related to HTML forms in the current page.
+ * The logic is simple, in case a rule exists in Unomi targeting a form
event within the current webpage path
+ * - then this form will be identified as form to be watched.
+ * You can reuse this function to get the list of concerned forms in order
to attach listeners automatically for those form for example
+ * (not that current tracker is doing that by default, check function:
_registerListenersForTrackedConditions())
* @returns {string[]} form names/ids in current web page
*/
getFormNamesToWatch: function getFormNamesToWatch() {
diff --git a/dist/apache-unomi-tracker.esm.js b/dist/apache-unomi-tracker.esm.js
index 6ade886..1a4938a 100644
--- a/dist/apache-unomi-tracker.esm.js
+++ b/dist/apache-unomi-tracker.esm.js
@@ -119,9 +119,11 @@ var newTracker = function newTracker() {
},
/**
- * In case Unomi contains rules related to HTML forms in the current page,
this will be there names/ids
- * The logic is simple, in case a rule exists for current webpage on a
form event in Unomi backend,
- * then this form will be identified as form to be watched.
+ * In case Unomi contains rules related to HTML forms in the current page.
+ * The logic is simple, in case a rule exists in Unomi targeting a form
event within the current webpage path
+ * - then this form will be identified as form to be watched.
+ * You can reuse this function to get the list of concerned forms in order
to attach listeners automatically for those form for example
+ * (not that current tracker is doing that by default, check function:
_registerListenersForTrackedConditions())
* @returns {string[]} form names/ids in current web page
*/
getFormNamesToWatch: function getFormNamesToWatch() {
diff --git a/dist/apache-unomi-tracker.umd.js b/dist/apache-unomi-tracker.umd.js
index 3e4b2fe..e5f045f 100644
--- a/dist/apache-unomi-tracker.umd.js
+++ b/dist/apache-unomi-tracker.umd.js
@@ -1765,9 +1765,11 @@
},
/**
- * In case Unomi contains rules related to HTML forms in the current
page, this will be there names/ids
- * The logic is simple, in case a rule exists for current webpage on a
form event in Unomi backend,
- * then this form will be identified as form to be watched.
+ * In case Unomi contains rules related to HTML forms in the current
page.
+ * The logic is simple, in case a rule exists in Unomi targeting a form
event within the current webpage path
+ * - then this form will be identified as form to be watched.
+ * You can reuse this function to get the list of concerned forms in
order to attach listeners automatically for those form for example
+ * (not that current tracker is doing that by default, check function:
_registerListenersForTrackedConditions())
* @returns {string[]} form names/ids in current web page
*/
getFormNamesToWatch: function getFormNamesToWatch() {
diff --git a/src/tracker/tracker.js b/src/tracker/tracker.js
index c36d7e2..7cbe13f 100644
--- a/src/tracker/tracker.js
+++ b/src/tracker/tracker.js
@@ -109,9 +109,11 @@ export const newTracker = () => {
},
/**
- * In case Unomi contains rules related to HTML forms in the current
page, this will be there names/ids
- * The logic is simple, in case a rule exists for current webpage on a
form event in Unomi backend,
- * then this form will be identified as form to be watched.
+ * In case Unomi contains rules related to HTML forms in the current
page.
+ * The logic is simple, in case a rule exists in Unomi targeting a
form event within the current webpage path
+ * - then this form will be identified as form to be watched.
+ * You can reuse this function to get the list of concerned forms in
order to attach listeners automatically for those form for example
+ * (not that current tracker is doing that by default, check function:
_registerListenersForTrackedConditions())
* @returns {string[]} form names/ids in current web page
*/
getFormNamesToWatch: function () {