Can I track net profit in Shopify by subtracting product cost?

newseller2020
Tourist
5 1 1

Hey everyone,

I'm new to shopify and hoping you might be able to help...

 I m tracking my shopify conversions using voluum tracker.

I have pasted this code into the order status page and it is tracking sales and revenue perfectly

<!-- clickid pixel: {{ landing_site_ref }} -->
{% if landing_site_ref %}
<!-- custom lander pixel: {{ landing_site_ref }} -->
<!-- clickid Code -->
<img src="https://mytrackerdomain/conversion.gif?cid={{ landing_site_ref }}&payout={{total_price|money_without_currency}}" width="1" height="1"/>
{% endif %}

However, I wonder if there is a way to track total price- minus cost of the product and add it to this code, so i can see the real net profit in my tracker.

I'm guessing i need to make a change to this part - 

{{total_price|money_without_currency}}

but not sure what?

I have added the price of the product into my product, so shopify knows this cost- I just need to find a way to pass it back to my tracker?

Thanks a lot for taking the time to read this.

Cheers

 

Replies 5 (5)

newseller2020
Tourist
5 1 1

I'm guessing I need a liquid tag like {{unit_cost|money_without_currency}} but that's not working

BeProfit_App
Shopify Partner
75 1 4

Hi NewSeller2020 - judging by your question, I think you'll find great value by adding the BeProfit - Profit Tracker app to your Shopify store. BeProfit takes into account a broad array of data points to help you track and analyze your business's profits, expenses, and more. Give it a try, it might be your new favorite app!

klavorar
New Member
9 0 0

Hey,

I would recommend my application Income Tracker and Predictor where you can clearly generate any kind of report , track the income/tax/shipping in real time and can see real time predictions regarding your sales data!

Please if you are interested, give a try( there is a trial period 😉

https://apps.shopify.com/income-tracker-and-predictor

drakedev
Shopify Partner
685 148 229

Product cost item cannot be accessed in the frontend. Anyway it wouldn't be a good idea show your products margins to smart customers and competitors.

The field is available if you use the Admin API, in the InventoryItem

If my answer was helpful click Like to say thanks
If the problem is solved remember to click Accept Solution
Shopify/Shopify Plus custom development: You can hire me for simple and/or complex tasks.

OneCommerce
Shopify Partner
253 19 108

Hello @newseller2020 ,

We are OneCommerce - an eCommerce Solution Platform.

 

To track the net profit in your tracker, you will need to subtract the cost of the product from the total revenue in your code. You can do this by accessing the cost of the product using the product.cost liquid variable in your code. Here's an example of how you could modify your code to include the net profit:

<!-- clickid pixel: {{ landing_site_ref }} -->
{% if landing_site_ref %}
<!-- custom lander pixel: {{ landing_site_ref }} -->
<!-- clickid Code -->
{% assign net_profit = total_price | minus: product.cost %}
<img src="https://mytrackerdomain/conversion.gif?cid={{ landing_site_ref }}&revenue={{ total_price | money_without_currency }}&net_profit={{ net_profit | money_without_currency }}" width="1" height="1"/>
{% endif %}

 

Or you can choose to use a third-party app that can track profit for you. We have TrueProfit that can assist you, we can import all your products and calculate your profit in real-time.

 

Have a nice day.

OneCommerce team.

OneCommerce - The Ultimate eCommerce Solution Platform
We offer 12+ solutions to help increase traffic, maximize conversion rates and generate better revenue for more than 500,000 eCommerce merchants worldwide.

Get know us at: Website | Blog | FAQ | Contact us