page last edited on 31 May 2017
Kissmetrics is a popular behavioral analytics and engagement platform. By connecting your X-Cart store to Kissmetrics, you get a mighty tool to analyze your online store and your customers’ behaviour in it.
An X-Cart 5 store can be connected to Kissmetrics using one of the following methods:
- Method 1: Paste some Kissmetrics-provided JS code into your store using X-Cart’s custom JS feature
- Method 2: Connect X-Cart to Kissmetrics by means of the free Segment Integration module
Method 1: Paste some Kissmetrics-provided JS code into your store using X-Cart’s custom JS feature
The method is supported by X-Cart versions 5.1 and later.
To connect your X-Cart store to Kissmetrics using this method, follow the steps below:
Make sure the “Use Custom JS” selector above the text area is set to “ON”.
Save the changes by clicking the Save changes button.
To make sure the tracking snippet you have just pasted works fine, verify that it is capable of logging your own activity in the store in Kissmetrics Live mode. Select the “My Activity” tab on the left-hand side menu and use the field provided there to paste the URL of your X-Cart store; click Show my activity, and your site will open in a new browser window allowing you to track your own activity. Do a few things your store visitors typically do on your site: try to find a product, add it to the shopping cart, place an order, rate a product, and so on. If you can see all your actions tracked in Kissmetrics, you’re all set!
Method 2: Connect X-Cart to Kissmetrics by means of the free Segment Integration module
The method is available for all X-Cart 5 versions. Requires a Segment Integration moduleinstalled and enabled.
Another method to connect your X-Cart 5 based store to Kissmetrics is by means of the free Segment Intergation module by Qualiteam. Segment is a powerful data aggregation tool which automatically collects information about your store’s visitors, tracks e-commerce events and can send the gathered data to over a hundred of apps for analytics, marketing, data processing and storing. Kissmetrics is among them.
To use this method, you will need to have an account with both Kissmetrics and Segment. The latter is available for free for 1 source, so it may be sufficient for you.
To connect your store to Kissmetrics via the Segment Integration module, follow the steps below:
In your X-Cart store’s Admin area, go to the Modules section and install the module Segment Integration from the X-Cart marketplace.
After installing the module, open its Settings page.
- Keeping the Segment Integration module settings page open in your web browser, open a new tab or window to go to Kissmetrics website.
- If you already have a Kissmetrics account, simply login to Kissmetrics.
- If you don’t yet have a Kissmetrics account, choose to sign up. Then, at the first step of the wizard, select the option “Enable with Segment”, and you will be redirected to Segment to sign in/sign up.
Open another browser tab or window to go to Segment website. Sign up for a free account with Segment, or, if you already have one, simply login to your Segment account.
In your Segment account back end, go to the “API Keys” page and find your “Write key”. Copy this key to clipboard.
Keeping the tab with your Segment account back end open, return to the first tab - the one with the “Segment Integration” settings page in X-Cart - and paste the “Write Key” you have copied at the previous step into the field of the same name. Save the changes. Do not close this tab yet.
Switch to the second tab - the one with your Kissmetrics account back end opened - and go to the Kissmetrics Settings page. On that page, locate your “Tracking API Key” and copy it to clipboard. And yeah, leave the tab open.
Switch to the Segment tab. On the “Integrations” page of Segment, find the Kissmetrics integration (Use the search box, as Segment has dozens of integrations aboard). Click on the integration name to open a setup window.
Insert the Tracking API key you have copied earlier in Kissmetrics into the API Key field:
- Time to run some tests. If the integration works well, and the customers are already browsing you store now, in about 30 minutes or so you will see the first reports in your Kissmetrics dashboard. But there’s a faster way to verify: you can check how it’s logging your own activity in the store in the Live mode of Kissmetrics. Select the “My Activity” tab on the left-hand side menu and use the field provided there to paste the URL of your X-Cart store; click Show my activity, and your site will open in a new browser window allowing you to track your own activity. Do a few things your store visitors typically do on your site: try to find a product, add it to the shopping cart, place an order, rate a product, and so on. If you can see it tracked by Kissmetrics, welcome to the club =)
Help make this document better
This guide, as well as the rest of our docs, are open-source and available on GitHub.