Sales Tracker: Track Shopify sales using LiveChat

3 min. readlast update: 10.17.2023

The Sales Tracker can show you which chats, agents and products have the biggest impact on your revenue. Add the Sales Tracker to your Shopify store and watch the revenue flow after chats with agents!

What is a Sales Tracker? It’s a piece of code that tracks which chats end with sales. You add it to a page that passes a sale property, for example, your shopping cart or thank-you page.Whenever a customer who has chatted with you or one of your agents reaches that page, the Sales Tracker will pick up on it and attribute that chat with the sale’s value. This way, you know which chats led to purchases.
For the Sales Tracker to work, you need to install Customer Insight for Shopify from the Shopify App Store. See this article for installation steps.

Installation

1) To set it up, go to Settings>E-commerce>Sales Tracker.

undefined

2) Next, name your Sales Tracker. Pick a name you’ll be able to easily recognize later on in your Archives and Reports.

3) Check Values from sales may vary (dynamic).

4) Enter value parameter: order_sum and chose your sales currency.

undefined

5) Tick Add order number to the chat details and insert Order ID parameter: order_id.

6) Decide how long you wish to track conversion. If you leave 30 days of sales tracking, LiveChat will track any sales within 30 days from your conversation.

7) Click Generate sales tracker code.

undefined

8) In the next step, click Copy to clipboard.

9) Now, open your text editor and paste the Sales Tracker code over there. You will need to add two lines of code to the Sales Tracker code to make it work with Shopify.

10) Copy the two lines below:

var order_id = {{order.order_number}}; var order_sum = {{order.total_price | money_without_currency }};

undefined

11) Paste the two lines into your Sales Tracker code right after the opening script tag.

12) This is how the code should now look:

undefined

13) Now, log in to your Shopify account and go to Settings>Checkout.

undefined

14) Go to Order processing>Additional scripts section.

15) Paste the previously created code in the Additional Scripts field and click “Save”.

undefined

Done! You have just installed Sales Tracker in your Shopify store. Start tracking the conversion of your LiveChat chats.

undefined

To monitor the tracked sales go to Reports>Ecommerce>Tracked sales in the LiveChat Agent app. Now, you can observe how much you sell using real-time live chat conversations on your website and optimize your customer support to sell even better with Customer Insight for Shopify.

By design, LiveChat code is added to every page in your Shopify store, including the Thank you page, where the sales are tracked.Shopify does not allow to add code to the Checkout page.
Shopify Plus users can manually edit the code on the Checkout page and add LiveChat code there as well.

 

 

Was this article helpful?