We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb3b969 commit 1d37a25Copy full SHA for 1d37a25
functions/index.js
@@ -125,6 +125,9 @@ exports.track = functions.https.onRequest(async (req, res) => {
125
event_label: req.body.label,
126
displayProductName: 'FireWeb',
127
});
128
+
129
+ // Send a success response to prevent 502 Bad Gateway error
130
+ res.status(200).send('Event tracked successfully');
131
132
133
exports.webhook = functions.https.onRequest(async (req, res) => {
0 commit comments