Skip to content

Instantly share code, notes, and snippets.

@kylefox
Last active December 16, 2015 03:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kylefox/5367257 to your computer and use it in GitHub Desktop.
Save kylefox/5367257 to your computer and use it in GitHub Desktop.
How to integrate Granify onto any website using the JavaScript API. (1 of 3)
<script type="text/javascript">
Granify.trackCart({
items: [
{
id: "1",
quantity: 1,
price: 100.00,
title: "My Product Title"
},
{
id: "2",
quantity: 1,
price: 50.00,
title: "Another Product Title"
}]
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment