KISSmetrics track visits to each domain separately

KISSmetrics track visits to each domain separately

Have KISSmetrics installed on multiple domains? Want to see visits and conversion rate for each domain? Now you can this script fires an event whenever a user visits one of your domains. Will showup in KM as an event: Visited Visited and so on...

// Segment Visitors by hostname
    var refKm = document.referrer;
    var hostKm = document.location.hostname;
    // checks if visitor is from a different referrer
    if((hostKm.length > refKm.length && hostKm.indexOf(refKm) === -1) ||
      refKm.indexOf(hostKm) === -1)
        _kmq.push(['record', 'Visited '+ hostKm]);

This comes in handy when you want to see stats for each domain separately or want to calculate conversion rate for visitors who have visited a particular site area. For example comonversion rate for people who visited blog.

Remember more granularity always comes in handy :).

Hussain Mehmood

Hey I am Hussain Principal Analytics Consultant @ MarketLytics focusing on measurement strategy and analytics implementation. I started marketlytics in 2010 to turn my passion for understanding user behaviour into my day job. I use & extend google analytics, tag manager and kissmetrics everyday to deliver performance measurement & data driven insights.