Skip to content

Commit dc83deb

Browse files
committed
Bugfix: error with string interpolating undefined parameters
1 parent e03944d commit dc83deb

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-metrics-service",
3-
"version": "0.0.6-beta",
3+
"version": "0.0.7-beta",
44
"description": "React adapter for metrics services like Google Analytics, Tealium or Comcast.",
55
"main": "dist/index.js",
66
"scripts": {

src/dispatchers/google-analytics-legacy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const googleAnalyticsLegacy = ({
2-
trackingID,
2+
trackingID = '',
33
}) => ({
44
componentDidMount: () => {
55
if (document) {
@@ -20,7 +20,7 @@ const googleAnalyticsLegacy = ({
2020
document.head.appendChild(elem)
2121
}
2222
},
23-
gaPush: (...args) => {
23+
2: (...args) => {
2424
window._gaq.push(...args)
2525
},
2626
gaPageView: () => {

src/dispatchers/google-analytics.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const googleAnalytics = ({
2-
trackingID,
2+
trackingID = '',
33
}) => ({
44
componentDidMount: () => {
55
if (document) {

src/dispatchers/google-tag-manager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable quotes, camelcase */
22

33
const googleTagManager = ({
4-
containerID,
4+
containerID = '',
55
dataLayer = {},
66
}) => ({
77
componentDidMount: () => {

src/dispatchers/tealium.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/* eslint-disable quotes, camelcase */
22

33
const tealium = ({
4-
account,
5-
profile,
6-
env,
4+
account = '',
5+
profile = '',
6+
env = '',
77
utag_data = {},
88
url,
99
}) => ({

0 commit comments

Comments
 (0)