Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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