Solved

How to save total order value of 1 customer?

  • 21 October 2021
  • 1 reply
  • 22 views

Badge

Hi everyone,

I’m Mike Brother from TXG Corp. I'm having a bit of a problem, hope you can help.


1. I have created a new property: "Order value" to save the order value of 1 customer in each purchase. However I don't know how to save that value when using flow. I can only save the values that I enter myself @@


2. If problem 1 above is solved, I want to have an attribute that stores the total order value of 1 customer who purchased on my website. I don't know how to add it up. Please help me

Thank you very much !!!!

icon

Best answer by alex.hong 21 October 2021, 21:36

View original

1 reply

Userlevel 4
Badge +4

Hi there @mikebrother95.txg,

Welcome to the Community and thanks for posting your question here! Hope I can offer some info and assistance with your question.

  1. The first part of this question is interesting because you shouldn’t have to create a custom order value to manually update. When integrating with Shopify, you should see that there is already a pre-made $value property that you can call and have updated on a customer’s order. This documentation looks into what metrics are pulled from each event. 
  2. After finding that you can call $value to be used in a Flow (see example below), everything should be settled.  

    As a note, for dynamic tags, you can only pull data from the event that is triggering the flow, so if the customer's total order value is in the event data for the current event, you could use it. Otherwise, you would need to add the customer's total order value as a profile property on the profile, which you could then pull into the flow or a campaign. This guide walks through event data and template tags. If you are using the $value, you can typically use the tag:  {{ event|lookup:'$value' }}

I would advise double checking your integration to see if you can call the $value property for your Flows and user profiles as well.

I hope this was helpful and have a great day!
Alex

Reply