Skip to content

Commit

Permalink
Fix params sent to ga endpoint (#585)
Browse files Browse the repository at this point in the history
  • Loading branch information
oluomoniyi authored and fhinkel committed Nov 13, 2018
1 parent 8cfa75b commit ed7445f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions appengine/analytics/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ function trackEvent (category, action, label, value) {
ev: value
};

return got.post('http://www.google-analytics.com/collect', {
form: data
});
return got.post('http://www.google-analytics.com/collect', data);
}

app.get('/', (req, res, next) => {
Expand Down

0 comments on commit ed7445f

Please sign in to comment.