This is an automated email from the ASF dual-hosted git repository. poorejc pushed a commit to branch FLAGON-339 in repository https://gitbox.apache.org/repos/asf/incubator-flagon-useralejs.git
commit 3072caa2231ba634a65fd599453b098108e4cbbc Author: poorejc <[email protected]> AuthorDate: Sat Jun 22 14:22:39 2019 -0400 initial commit for broken tests with new fields --- build/UserAleWebExtension/content.js | 6 ++++++ build/userale-2.0.0.js | 6 ++++++ build/userale-2.0.0.min.js | 2 +- src/packageLogs.js | 6 ++++++ 4 files changed, 19 insertions(+), 1 deletion(-) diff --git a/build/UserAleWebExtension/content.js b/build/UserAleWebExtension/content.js index 223a5d3..e7df05a 100644 --- a/build/UserAleWebExtension/content.js +++ b/build/UserAleWebExtension/content.js @@ -267,6 +267,9 @@ function packageLog(e, detailFcn) { var log = { 'target' : getSelector(e.target), 'path' : buildPath(e), + 'pageUrl': window.location.href, + 'pageTitle': document.title, + 'pageReferrer': document.referrer, 'clientTime' : timeFields.milli, 'microTime' : timeFields.micro, 'location' : getLocation(e), @@ -334,6 +337,9 @@ function packageIntervalLog(e) { intervalLog = { 'target': intervalID, 'path': intervalPath, + 'pageUrl': window.location.href, + 'pageTitle': document.title, + 'pageReferrer': document.referrer, 'count': intervalCounter, 'duration': timestamp - intervalTimer, // microseconds 'startTime': intervalTimer, diff --git a/build/userale-2.0.0.js b/build/userale-2.0.0.js index b69900f..cac6cf8 100644 --- a/build/userale-2.0.0.js +++ b/build/userale-2.0.0.js @@ -246,6 +246,9 @@ var userale = (function (exports) { var log = { 'target' : getSelector(e.target), 'path' : buildPath(e), + 'pageUrl': window.location.href, + 'pageTitle': document.title, + 'pageReferrer': document.referrer, 'clientTime' : timeFields.milli, 'microTime' : timeFields.micro, 'location' : getLocation(e), @@ -313,6 +316,9 @@ var userale = (function (exports) { intervalLog = { 'target': intervalID, 'path': intervalPath, + 'pageUrl': window.location.href, + 'pageTitle': document.title, + 'pageReferrer': document.referrer, 'count': intervalCounter, 'duration': timestamp - intervalTimer, // microseconds 'startTime': intervalTimer, diff --git a/build/userale-2.0.0.min.js b/build/userale-2.0.0.min.js index caed367..c8c399a 100644 --- a/build/userale-2.0.0.min.js +++ b/build/userale-2.0.0.min.js @@ -15,4 +15,4 @@ * limitations under the License. * @preserved */ -var userale=function(n){"use strict";var a,i,u,l,s,c,d,f,t="2.0.0";function e(n,o){Object.keys(o).forEach(function(t){if("userFromParams"===t){var e=function(t){var e=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)"),n=window.location.href.match(e);return n&&n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):null}(o[t]);e&&(n.userId=e)}n[t]=o[t]})}var o,r,m,p=null,v=null;function g(t,e){if(!i.on)return!1;var n=null;e&&(n=e(t));var o=function(t){return{milli:Math.floor(t),micro:Number((t%1).toFixed( [...] \ No newline at end of file +var userale=function(n){"use strict";var a,i,u,l,s,c,d,f,t="2.0.0";function e(n,o){Object.keys(o).forEach(function(t){if("userFromParams"===t){var e=function(t){var e=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)"),n=window.location.href.match(e);return n&&n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):null}(o[t]);e&&(n.userId=e)}n[t]=o[t]})}var o,r,m,p=null,g=null;function v(t,e){if(!i.on)return!1;var n=null;e&&(n=e(t));var o=function(t){return{milli:Math.floor(t),micro:Number((t%1).toFixed( [...] \ No newline at end of file diff --git a/src/packageLogs.js b/src/packageLogs.js index 439e816..81553cf 100644 --- a/src/packageLogs.js +++ b/src/packageLogs.js @@ -87,6 +87,9 @@ export function packageLog(e, detailFcn) { var log = { 'target' : getSelector(e.target), 'path' : buildPath(e), + 'pageUrl': window.location.href, + 'pageTitle': document.title, + 'pageReferrer': document.referrer, 'clientTime' : timeFields.milli, 'microTime' : timeFields.micro, 'location' : getLocation(e), @@ -154,6 +157,9 @@ export function packageIntervalLog(e) { intervalLog = { 'target': intervalID, 'path': intervalPath, + 'pageUrl': window.location.href, + 'pageTitle': document.title, + 'pageReferrer': document.referrer, 'count': intervalCounter, 'duration': timestamp - intervalTimer, // microseconds 'startTime': intervalTimer,
