angulartics-optimizely
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "angulartics-optimizely", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "An angulartics plugin for optimizely", | ||
@@ -5,0 +5,0 @@ "main": "bundle.js", |
@@ -10,3 +10,3 @@ export default [ | ||
const trackEvent = (what, value) => { | ||
const evt = ['trackEvent', what.replace(/\s+\|\s+/g, '_').replace(/\W+/g, 'X')] | ||
const evt = ['trackEvent', what.replace(/\s?\|\s?/g, '_').replace(/\W+/g, 'X')] | ||
if (value) { | ||
@@ -13,0 +13,0 @@ evt.push({revenue: value}) |