@eventvisor/module-ga4 0.16.0 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [0.18.0](https://github.com/eventvisor/eventvisor/compare/v0.17.0...v0.18.0) (2026-02-06)
7
+
8
+ **Note:** Version bump only for package @eventvisor/module-ga4
9
+
10
+
11
+
12
+
13
+
14
+ # [0.17.0](https://github.com/eventvisor/eventvisor/compare/v0.16.0...v0.17.0) (2026-01-10)
15
+
16
+ **Note:** Version bump only for package @eventvisor/module-ga4
17
+
18
+
19
+
20
+
21
+
6
22
  # [0.16.0](https://github.com/eventvisor/eventvisor/compare/v0.15.0...v0.16.0) (2025-11-30)
7
23
 
8
24
  **Note:** Version bump only for package @eventvisor/module-ga4
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.EventvisorGA4Integration=t():e.EventvisorGA4Integration=t()}(this,()=>(()=>{"use strict";var e={};return{166:function(e,t){var n=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function u(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,u)}c((r=r.apply(e,t||[])).next())})},r=this&&this.__generator||function(e,t){var n,r,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=u(0),i.throw=u(1),i.return=u(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(c){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.createGA4Module=function(e){var t=this;void 0===e&&(e={});var o=e.name;return{name:void 0===o?"ga4":o,transport:function(e){return n(t,[e],void 0,function(e){var t=e.eventName,n=e.payload;return r(this,function(e){return gtag("event",t.replace(/([A-Z])/g,"_$1").replace(/[^a-zA-Z0-9_]/g,"").replace(/\s+/g,"_").toLowerCase(),n),[2]})})}}}}}[166](0,e),e})());
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.EventvisorGA4Integration=t():e.EventvisorGA4Integration=t()}(this,()=>(()=>{"use strict";var e={};return{166(e,t){var n=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function u(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,u)}c((r=r.apply(e,t||[])).next())})},r=this&&this.__generator||function(e,t){var n,r,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=u(0),i.throw=u(1),i.return=u(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(c){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.createGA4Module=function(e){var t=this;void 0===e&&(e={});var o=e.name;return{name:void 0===o?"ga4":o,transport:function(e){return n(t,[e],void 0,function(e){var t=e.eventName,n=e.payload;return r(this,function(e){return gtag("event",t.replace(/([A-Z])/g,"_$1").replace(/[^a-zA-Z0-9_]/g,"").replace(/\s+/g,"_").toLowerCase(),n),[2]})})}}}}}[166].call(e,0,e),e})());
2
2
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,GACe,iBAAZC,QACdA,QAAkC,yBAAID,IAEtCD,EAA+B,yBAAIC,GACpC,CATD,CASGK,KAAM,I,uBCNLC,EAAsB,CAAC,E,miDCW3B,2BAAgCC,GAAhC,gBAAgC,IAAAA,IAAAA,EAAA,IACtB,MAAiBA,EAAO,KAEhC,MAAO,CACLC,UAHU,IAAG,QAAK,EAKlBC,UAAW,2CAAO,G,IAAEC,EAAS,YAAEC,EAAO,U,iCAEpCC,KAAK,QAAoBF,EAd1BG,QAAQ,WAAY,OACpBA,QAAQ,iBAAkB,IAC1BA,QAAQ,OAAQ,KAChBC,cAWsCH,G,SAG3C,C,GDrBoB,KAAK,EAAGL,G","sources":["webpack://EventvisorGA4Integration/webpack/universalModuleDefinition","webpack://EventvisorGA4Integration/webpack/startup","webpack://EventvisorGA4Integration/./src/index.ts"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"EventvisorGA4Integration\"] = factory();\n\telse\n\t\troot[\"EventvisorGA4Integration\"] = factory();\n})(this, () => {\nreturn ","// startup\n// Load entry module and return exports\n// This entry module is referenced by other modules so it can't be inlined\nvar __webpack_exports__ = {};\n__webpack_modules__[166](0, __webpack_exports__);\n","import type { Module } from \"@eventvisor/sdk\";\n\nexport type GA4ModuleOptions = {\n name?: string;\n};\n\nfunction underscore(str: string): string {\n return str\n .replace(/([A-Z])/g, \"_$1\")\n .replace(/[^a-zA-Z0-9_]/g, \"\")\n .replace(/\\s+/g, \"_\")\n .toLowerCase();\n}\n\nexport function createGA4Module(options: GA4ModuleOptions = {}): Module {\n const { name = \"ga4\" } = options;\n\n return {\n name,\n\n transport: async ({ eventName, payload }) => {\n // @ts-expect-error gtag is loaded from GA4 script\n gtag(\"event\", underscore(eventName), payload);\n },\n };\n}\n"],"names":["root","factory","exports","module","define","amd","this","__webpack_exports__","options","name","transport","eventName","payload","gtag","replace","toLowerCase"],"sourceRoot":""}
1
+ {"version":3,"file":"index.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,GACe,iBAAZC,QACdA,QAAkC,yBAAID,IAEtCD,EAA+B,yBAAIC,GACpC,CATD,CASGK,KAAM,I,uBCNLC,EAAsB,CAAC,E,0hDCW3B,2BAAgCC,GAAhC,gBAAgC,IAAAA,IAAAA,EAAA,IACtB,MAAiBA,EAAO,KAEhC,MAAO,CACLC,UAHU,IAAG,QAAK,EAKlBC,UAAW,2CAAO,G,IAAEC,EAAS,YAAEC,EAAO,U,iCAEpCC,KAAK,QAAoBF,EAd1BG,QAAQ,WAAY,OACpBA,QAAQ,iBAAkB,IAC1BA,QAAQ,OAAQ,KAChBC,cAWsCH,G,SAG3C,C,GDrBoB,KAAKI,KAAKT,EAAoB,EAAEA,G","sources":["webpack://EventvisorGA4Integration/webpack/universalModuleDefinition","webpack://EventvisorGA4Integration/webpack/startup","webpack://EventvisorGA4Integration/./src/index.ts"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"EventvisorGA4Integration\"] = factory();\n\telse\n\t\troot[\"EventvisorGA4Integration\"] = factory();\n})(this, () => {\nreturn ","// startup\n// Load entry module and return exports\n// This entry module is referenced by other modules so it can't be inlined\nvar __webpack_exports__ = {};\n__webpack_modules__[166].call(__webpack_exports__,0,__webpack_exports__);\n","import type { Module } from \"@eventvisor/sdk\";\n\nexport type GA4ModuleOptions = {\n name?: string;\n};\n\nfunction underscore(str: string): string {\n return str\n .replace(/([A-Z])/g, \"_$1\")\n .replace(/[^a-zA-Z0-9_]/g, \"\")\n .replace(/\\s+/g, \"_\")\n .toLowerCase();\n}\n\nexport function createGA4Module(options: GA4ModuleOptions = {}): Module {\n const { name = \"ga4\" } = options;\n\n return {\n name,\n\n transport: async ({ eventName, payload }) => {\n // @ts-expect-error gtag is loaded from GA4 script\n gtag(\"event\", underscore(eventName), payload);\n },\n };\n}\n"],"names":["root","factory","exports","module","define","amd","this","__webpack_exports__","options","name","transport","eventName","payload","gtag","replace","toLowerCase","call"],"sourceRoot":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eventvisor/module-ga4",
3
- "version": "0.16.0",
3
+ "version": "0.18.0",
4
4
  "description": "Eventvisor GA4 module",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.mjs",
@@ -38,8 +38,8 @@
38
38
  "url": "https://github.com/eventvisor/eventvisor/issues"
39
39
  },
40
40
  "devDependencies": {
41
- "@eventvisor/sdk": "0.16.0"
41
+ "@eventvisor/sdk": "0.18.0"
42
42
  },
43
43
  "license": "MIT",
44
- "gitHead": "0b880dcefaa813ab7d039310c96bc0ca80af23c1"
44
+ "gitHead": "92f2a06ffd5c212eebddd24ed5237899d5f77016"
45
45
  }