Sales Tracker: Track Shopify sales using LiveChat

Ola Górska
3 min read
updated: Apr 1, 2021

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.
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.
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.
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.
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.
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 }};
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:
13
Now, log in to your Shopify account and go to Settings>Checkout.
14
Go to Order processing>Additional scripts section.
15
Paste the previously created code in the Additional Scripts field and click “Save”.

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

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.
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?

Got it!

Thanks for your feedback.

Thank you!

We’re happy to help.

RELATED ARTICLES

SharpSpring: Connect LiveChat with SharpSpring

Follow the instructions to create a Zap adding a LiveChat contact as lead in SharpSpring cloud-based marketing automation tool after the chat is finished. Creating the SharpSpring - LiveChat Zap Creating a Zap consist of three main parts: Setting up the trigger Configuring the action Launching the Zap You can use a ready-made Zap template to set up this integration. Check it out in LiveChat Zapbook. You can use a ready-made Zap template to set up this integration.

Read the article

Highrise: grow the list of your Contacts!

Highrise LiveChat integrations gives you the possibility to manage your Contacts right during the chat! No need to switch between different tabs.

Read the article

Start using LiveChat now!

Free 14-day trial Team plan features No credit card required

Still not convinced? Discover all LiveChat features

Discover our other products