Skip to content

Commit

Permalink
silence
Browse files Browse the repository at this point in the history
  • Loading branch information
kidGodzilla committed Apr 14, 2024
1 parent e66cfe7 commit 55f9985
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions event-layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ var EventLayer = (function EventLayer () {
},
track: function (eventName, eventProperties) {
// Send the tracked event to Beam analytics JS library
console.log('tracking (Beam Analytics custom event): ', eventName, eventProperties);
// console.log('tracking (Beam Analytics custom event): ', eventName, eventProperties);
if (window.beam && eventName) {
var sanitized = eventName.toLowerCase().replace(/[\n\t\s]/g, '_').replace(/[-._~:/?#[\]@!$&'()*+,;=]+/g, '_');
window.beam("/custom-events/" + sanitized);
Expand All @@ -207,7 +207,7 @@ var EventLayer = (function EventLayer () {
window.analytics.track(eventName, eventProperties);
},
page: function (category, name, properties) {
if (window.analytics) window.analytics.page();
if (window.analytics) window.analytics.page(category, name, properties);
},
group: function (groupId, traits) {
// Send the group call to June.so's JS library
Expand Down Expand Up @@ -241,7 +241,7 @@ var EventLayer = (function EventLayer () {
},
track: function (eventName, eventProperties) {
// Send the tracked event to Crisp.chat's JS library
console.log('tracking (Crisp): ', eventName, eventProperties);
// console.log('tracking (Crisp): ', eventName, eventProperties);
if (window.$crisp && eventName && eventProperties)
$crisp.push(["set", "session:event", [ eventName, eventProperties ] ])
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "event-layer",
"version": "0.2.30",
"version": "0.2.31",
"description": "A very simple abstraction layer for analytics code. Write your events once, then send them where ever you want.",
"main": "event-layer.js",
"types": "index.d.ts",
Expand Down

0 comments on commit 55f9985

Please sign in to comment.