pendulum-chain / vortex

1 stars 0 forks source link

Add unique identifiers for error messages to enable GTM tracking #169

Open ebma opened 1 week ago

ebma commented 1 week ago

In GTM, I set up a new event 'GA4 Event | form_error' that groups all possible errors caused by the user input in the swap page form. I didn't want to add different events for each error, but instead added an 'error_message' parameter to them. To ensure that each FormErrorEvent only fires once, extra logic is added to the trackEvent function.

While #143 does not define returning an error when exceeding the maximum withdrawal amount, I added it anyways because it seems related.

Closes #143.

netlify[bot] commented 1 week ago

Deploy Preview for pendulum-pay ready!

Name Link
Latest commit 049fe87eec17023f21972988c69c11183d97748c
Latest deploy log https://app.netlify.com/sites/pendulum-pay/deploys/66f1341641c26f00082f7dfa
Deploy Preview https://deploy-preview-169--pendulum-pay.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

ebma commented 1 week ago

@pendulum-chain/devs please review