How do I know which storefront an order came from

Last updated

Since an Ecwid store can be easily installed at several locations at the same time, you'll probably prefer to create several storefronts. For example, there could be 

- the "main" store placed on your site,

- the store on your FB fan page,

- the store on your blog pages.

As they all are instances of your store, all the orders will be listed on the "Sales" page in your control panel. However, you can be interested in finding order sources, for example, in order to find out what storefront is more efficient. Ecwid allows to mark orders coming from different storefronts in a special manner. Here is how to use the feature.

1. Add a definition of special ID ('Affiliate ID') in your integration code. 

Insert the following line:

<script> xAffiliate("affiliate_id"); </script>

between these parts of the code:

<script type="text/javascript" src="http://my.ecwid.com/script.js?STORE_ID" charset="utf-8"></script>

and 

<script type="text/javascript"> xProductBrowser("categoriesPerRow=3","views=grid(3,3) list(10) table(20)","categoryView=grid","searchView=list","style="); </script>

So, for example, it may look like this:

<script type="text/javascript" src="http://app.ecwid.com/script.js?STORE_ID" charset="utf-8"></script>
<script> xAffiliate("affiliate_id"); </script>
<script type="text/javascript"> xProductBrowser("categoriesPerRow=3","views=grid(3,3) list(10) table(20)","categoryView=grid","searchView=list","style="); </script>

In the codes above, the 'affiliate_id' string should be replaced with an ID (any string you want) that you decide to mark a storefront with. For example:

xAffiliate("www.example.com");

or

xAffiliate("My blog");

2. Find corresponding storefront IDs in order details in your control panel.

All placed orders will be marked with an assigned affiliate ID. You can find this id in order details in your control panel. Also, the IDs appear in a CSV file with exported orders and, moreover, they can be obtained by means of our API. So you can use the results in different ways:

  • track order sources manually in Ecwid control panel,
  • export all your orders and process the data in an Excel or Google Docs Spreadsheets,
  • create a custom tool that will use Ecwid API for further processing of orders data, for example, for calculating revenue from each storefront.

 

By the way, the described tool can also be used for affiliate marketing in Ecwid - just give your integration code with an assigned affiliate ID to your affiliate so that your whole store will be displayed on their site. You will be able and track sales coming from their sites by this ID. Please also refer to this article for the details on affiliate features in Ecwid here.

This feature is available for paid accounts only: www.ecwid.com/pricing.html

Was this article helpful?
1 out of 1 found this helpful
Questions?
Get help
  • Presales Chat

    Need help choosing the right Ecwid plan? Our Sales team has the answer you’re looking for.

  • Forums

    Join the Ecwid community. Discuss support topics and store ideas with other Ecwid users.

  • Contact us

    Still have questions about Ecwid? Let us know! We will be glad to help you with your Ecwid store.

  • Status Monitor

    Get real time status updates on Ecwid services here, 24/7