Skip to content
Closed
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion appengine/analytics/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function trackEvent (category, action, label, value, cb) {
};

return got.post('http://www.google-analytics.com/collect', {
form: data
...data
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This operator only works in Node v8.6+, but we strive to make sure our samples work with the oldest LTS version of Node, which until the end of April is Node v4. Can you update your PR to be Node v4 compatible?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @jmdobry,

Makes sense, updated to use Object.assign instead.

});
}

Expand Down