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 b01e263  UNOMI-610: base tracker first draft
b01e263 is described below

commit b01e26371eaddd03a5623d56f287ae7be322aaeb
Author: Kevan <[email protected]>
AuthorDate: Tue Sep 6 14:55:41 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, 32 insertions(+)

diff --git a/dist/apache-unomi-tracker.cjs.js b/dist/apache-unomi-tracker.cjs.js
index fb6aedd..f437cdb 100644
--- a/dist/apache-unomi-tracker.cjs.js
+++ b/dist/apache-unomi-tracker.cjs.js
@@ -131,6 +131,14 @@ var newTracker = function newTracker() {
     getFormNamesToWatch: function getFormNamesToWatch() {
       return wem.formNamesToWatch;
     },
+
+    /**
+     * Get current session id
+     * @returns {null|*}
+     */
+    getSessionId: function getSessionId() {
+      return wem.sessionID;
+    },
     convertUrlParametersToObj: function 
convertUrlParametersToObj(searchString) {
       if (!searchString) {
         return null;
diff --git a/dist/apache-unomi-tracker.esm.js b/dist/apache-unomi-tracker.esm.js
index 757535d..6ade886 100644
--- a/dist/apache-unomi-tracker.esm.js
+++ b/dist/apache-unomi-tracker.esm.js
@@ -127,6 +127,14 @@ var newTracker = function newTracker() {
     getFormNamesToWatch: function getFormNamesToWatch() {
       return wem.formNamesToWatch;
     },
+
+    /**
+     * Get current session id
+     * @returns {null|*}
+     */
+    getSessionId: function getSessionId() {
+      return wem.sessionID;
+    },
     convertUrlParametersToObj: function 
convertUrlParametersToObj(searchString) {
       if (!searchString) {
         return null;
diff --git a/dist/apache-unomi-tracker.umd.js b/dist/apache-unomi-tracker.umd.js
index cfbc8fc..3e4b2fe 100644
--- a/dist/apache-unomi-tracker.umd.js
+++ b/dist/apache-unomi-tracker.umd.js
@@ -1773,6 +1773,14 @@
       getFormNamesToWatch: function getFormNamesToWatch() {
         return wem.formNamesToWatch;
       },
+
+      /**
+       * Get current session id
+       * @returns {null|*}
+       */
+      getSessionId: function getSessionId() {
+        return wem.sessionID;
+      },
       convertUrlParametersToObj: function 
convertUrlParametersToObj(searchString) {
         if (!searchString) {
           return null;
diff --git a/src/tracker/tracker.js b/src/tracker/tracker.js
index f2e2785..c36d7e2 100644
--- a/src/tracker/tracker.js
+++ b/src/tracker/tracker.js
@@ -118,6 +118,14 @@ export const newTracker = () => {
             return wem.formNamesToWatch;
         },
 
+        /**
+         * Get current session id
+         * @returns {null|*}
+         */
+        getSessionId: function () {
+            return wem.sessionID;
+        },
+
         convertUrlParametersToObj: function (searchString) {
             if (!searchString) {
                 return null;

Reply via email to