Created
August 8, 2021 07:17
-
-
Save iamshouvikmitra/c092eb2fdc27aecba0bb3cc5446252a1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const url = "https://nvgs.com/analytics"; | |
const data = JSON.stringify({ | |
event: "checkout", | |
time: performance.now() | |
}); | |
fetch(url, { | |
method: 'POST', | |
body: data, | |
keepalive: true | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment