Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Kissmetics is a 3rd party analytics platform.

...

After saving your Kissmetrics API key, you are ready to begin coding your buy links into your pages. In order to support domain changes during the checkout, your will need to wrap your UltraCart buy links within a script that helps track the purchase. (Please refer to our article on using the JavaScript library on more than one domain for more details).

Let's take a look at an example of encoding an item buy link with this special tracking script:

Image Modified

Here's how the script code appears for this item:

Code Block
themeDJango
languagegroovy
titleKissmetric buy link encoding script
firstline1
linenumberstrue
<script type="text/javascript">
// This block would go below the main JavaScript code we provide in kissmetrics.com/settings

_kmq.push(function()
  { document.getElementById("frm1").action = 'http://secure.ultracart.com/cgi-bin/UCEditor?merchantId=DEMO&ADD=0001&kmi=' + encodeURIComponent(KM.i());
  } );
</script>

...