Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Fix #1724, add ua (user-agent) to GA events
Browse files Browse the repository at this point in the history
  • Loading branch information
ianb committed Oct 11, 2016
1 parent e5fccfb commit ee265f0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,9 @@ app.post("/event", function (req, res) {
ev: bodyObj.eventValue
}
);
if (req.headers["user-agent"]) {
params.ua = req.headers["user-agent"];
}
userAnalytics.event(params).send();
simpleResponse(res, "OK", 200);
}).catch((e) => {
Expand Down

0 comments on commit ee265f0

Please sign in to comment.