Track PURLs with Kissmetrics

KISSmetrics is a very robust analytics tool that has the ability to track individual visitors. As their tagline says – Google analytics tells you what’s happening. Kissmetrics tells you who’s doing it.

Kissmetrics does this by assigning a random identifier to each visitor.  This way, you can see that visitor_XYZ123 visited the pricing page and watched the video. But, you won’t know who visitor_XYZ123 actually is.  However, by integrating Kissmetrics into your Personalized URL (PURL) landing pages, we can tell KISSmetrics exactly WHO the person is by name.  Doing this, KISSmetrics will tell you the activity of “Bob Jones” or “Sally Anderson.”  Way better!

Another good application for this is to track people after they visit their PURL.  Say, for example, that “Bob Jones” visits his Personalized URL – Purlem will be able to track that Bob visited his PURL.  But if Bob later returned to the home page, you would not know that it’s still Bob.  Unless you previously installed Kissmetrics and told them It’s Bob. If you did that, any time Bob visits the site, views a video, or downloads a whitepaper, you’ll know that it’s him. This is extremely valuable information that opens up a world of possibilities.

Here is the step-by-step for tracking PURLs with Kissmetrics:

1. Sign up for a Kissmetrics account

Screen Shot 2014-04-07 at 5.51.14 PM

2. Install Kissmetrics on your website

Kissmetrics has some great documentation on installing here. I’d recommend using the Javascript Library.

3. Match the Kissmetrics Identity code to the PURL visitor

You can do this by adding the following to your PURL landing page.

<!-- Kissmetrics Id -->
<?php if(isset($visitor->email) && $visitor->email != '') { ?>
 <script type="text/javascript"> _kmq.push(['identify', '<?= $visitor->email; ?>']);</script>
<?php } ?>

4. Assign a Kissmetrics event to the page visited

You may also want to let Kissmetrics know which PURL page the visitor is on.  You can do that with the code here:

<!-- Kissmetrics Event -->
<script type="text/javascript"> _kmq.push(['record', 'PURL Visit - <?= $visitor->landingpage_name; ?>', '',redirect]);</script>

5. View Results

With Kissmetrics now installed and integrated into your PURL landing page, your Kissmetrics results will now show identify each user by their email.  This is much more valuable than random identifier!

Kissmetrics PURL Results