We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There is minor bug in the analytics example that stops the request to be posted correctly.
According to the got documentation https://www.npmjs.com/package/got#form, form is a boolean and the formdata should be added as the body property.
form
boolean
body
that means that https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/master/appengine/analytics/app.js#L50 should be
return got.post('http://www.google-analytics.com/collect', { form: true, body: data, });
not
return got.post('http://www.google-analytics.com/collect', { form: data });
The text was updated successfully, but these errors were encountered:
This was fixed in #585.
Sorry, something went wrong.
No branches or pull requests
There is minor bug in the analytics example that stops the request to be posted correctly.
According to the got documentation https://www.npmjs.com/package/got#form,
form
is aboolean
and the formdata should be added as thebody
property.that means that https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/master/appengine/analytics/app.js#L50
should be
not
The text was updated successfully, but these errors were encountered: