Skip to content

Instantly share code, notes, and snippets.

@wujku
Created July 12, 2017 08:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save wujku/0e8ece6e38ae954185eddacbacc2f9ec to your computer and use it in GitHub Desktop.
Save wujku/0e8ece6e38ae954185eddacbacc2f9ec to your computer and use it in GitHub Desktop.
$.ajax({
type: "POST",
url: 'https://ssl.google-analytics.com/collect',
async: false,
data: {
v: "1",
tid: "UA-XXXXXXX-XX",
cid: "Unique Client ID",
t: "transaction",
ti: "transaction ID",
tr: "+ / - revenue value",
tt: "+ / - tax value",
ts: "+ / - shipping value",
cu: "currency code"
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment