All Collections
Look and Feel
Theme Tweaker (X-Cart 5.4.x and earlier)
Integrating Kissmetrics via Custom JavaScript (X-Cart 5.4.x and earlier)
Integrating Kissmetrics via Custom JavaScript (X-Cart 5.4.x and earlier)

Learn how to add Kissmetrics JS code into your store using X-Cart’s custom JS feature.

Olga Tereshina avatar
Written by Olga Tereshina
Updated over a week ago

To connect your X-Cart store to Kissmetrics via a custom JS tool, follow the steps below:

  1. In your X-Cart store's Admin area, go to Look and Feel > Custom JavaScript. You will see a page like the following.

  2. Ensure the "Use Custom JS" toggle above the text area is enabled.

  3. In a new browser tab or window, go to the Settings page in your Kissmetrics account and copy the tracking snippet for pasting onto your site. Then, go back to the tab/window with your X-Cart store's Admin area and paste the JS code you copied into the custom JS code text area. Be sure to remove the script tags () wrapping this JS code, as X-Cart adds such tags automatically in the background.


    More information about custom JS code in X-Cart is available in the article Adding JS Code to the Site.


  4. Save the changes by clicking the Save changes button.

  5. To ensure the tracking snippet you have just pasted works fine, verify that it can log your activity in the store in Kissmetrics Live mode.

    • Select the "My Activity" tab on the left-hand side menu.

    • 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 activity.

      xc5_kissmetrics_my_activity.png

      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. Then, if you can see all your actions tracked in Kissmetrics, you're all set!

Related pages:

Did this answer your question?