Skip to content

Commit

Permalink
Merge pull request jitsi#2140 from virtuacoplenny/lenny/ie11-analytics
Browse files Browse the repository at this point in the history
fix(analytics): use string concatenation for ie11
  • Loading branch information
saghul authored Nov 8, 2017
2 parents 70d064c + c6b11ed commit b838a2b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions analytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@
value = value ? Math.round(parseFloat(value)) : null;
const label = data.label || '';

ga('send', 'event', 'jit.si',
`${action}.${data.browserName}`, label, value);
// Intentionally use string concatenation as analytics needs to work on
// IE but this file does not go through babel.
// eslint-disable-next-line prefer-template
ga('send', 'event', 'jit.si', action + '.' + data.browserName,
label, value);
};

if (typeof ctx.JitsiMeetJS === 'undefined') {
Expand Down

0 comments on commit b838a2b

Please sign in to comment.