Skip to content
This repository has been archived by the owner on Feb 23, 2021. It is now read-only.

Commit

Permalink
Don't log if no metric property id is set.
Browse files Browse the repository at this point in the history
  • Loading branch information
tamarahills committed Sep 13, 2018
1 parent d271469 commit a5cef2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command/CommandController.js
Expand Up @@ -301,8 +301,8 @@ router.get('/search', VerifyToken, async function(req, res) {
});

function logMetric(cmd, userid, agent) {
logger.info('User-Agent is: ' + agent);
if (process.env.GA_PROPERTY_ID) {
logger.info('User-Agent is: ' + agent);
var visitor = ua(process.env.GA_PROPERTY_ID, userid);
var ga_params = {
ec: cmd,
Expand Down

0 comments on commit a5cef2a

Please sign in to comment.