(Estimated time: 1 minute)
If you haven’t already, log in and create your site.
Enter your site’s URL and some simple configuration information.
Most of our customers add KISSmetrics directly to their production site. You may also specify that you’re setting up a staging, testing, or development environment. (Each site has its’ own unique KISSmetrics code; you may use as many sites as you need.)
(Estimated time: 2 minutes)
You can get your code here: https://www.kissmetrics.com/settings
It should go just after the opening <head> tag on every page on the site.
The KISSmetrics Javascript loads asynchronously so it will not affect site load time or uptime.
(Estimated time: 2 minutes)
Do you have registered users? If so, you’ll want to identify them on your homepage and login page.
You’ll do this using the identify call and setting the user ID as a property.
Here’s a pseudo-code example:
<script type=’text/javascript’>
//<![CDATA[
// how we identify users to KISSmetrics
_kmq.push(['identify', '$current_user.email']);
//]]>
</script>
If I logged in to your site, this would identify me as calvarez@kissmetrics.com.
You could then filter any report by a property called “Customer ID” and you would see a value of calvarez@kissmetrics.com (as well as all of your other identified customers). This allows you to see not only that 10 people completed a certain step, but to see which 10 people completed it.
Most of our customers use email address with the identify call, but you can use any unique identifier.
Installing the JavaScript automatically gives you some baseline tracking data:
Please refer to this video for setting up additional events you may be interested in.
Learn more about other API methods in API Methods.
Filed under Getting Started