How to track which storefront an order came from

Ecwid store can be easily installed at several sites at the same time. For example, you could add the storefront to:

  • your own site
  • Facebook page
  • your blog page

Since all storefronts belong to your Ecwid store, all the orders will be listed on the My Sales → Orders page in your Ecwid admin. You can track which storefront an order came from to find out which site is more efficient.

Plan availability: Business and Unlimited.

Add special ID to the integration code

You can add your Ecwid store to any website using the integration code that you can copy from the Website page in your Ecwid admin. By adding the affiliate ID in this integration code, you can “mark” the storefront on the particular website. Worry not, you don’t have to be tech-savvy to do it.

The affiliate ID is basically a short line of code:

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

Instead of the “affiliate_id” you can add any word or phrase to mark the storefront. For example, you sell honey on Ecwid Instant Site, and honey-based cosmetic products on WordPress. You can mark the storefront on WordPress by adding the affiliate ID called “Honey cosmetics — WordPress”.

To do so, you should insert the following line:

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

between these lines of code:

<script type="text/javascript" src="http://app.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 as a result it may look like this:

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

Once you insert the code, all new orders from WordPress will be marked with the “Honey cosmetics — WordPress” line.

To add an affiliate ID to your store:

  1. From your Ecwid admin, go to Overview → Custom website → Copy code to clipboard. The integration code will be copied.
  2. Go to your website HTML-editor or ask your site programmer to insert the code.
  3. Add the <script> xAffiliate("affiliate_id"); </script> in the code you copied from your Ecwid admin like described above. Remember to change the “affiliate_id” with your word or phrase.

Now all new orders will be marked with affiliate ID.

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 to track sales coming from their sites by this ID.
Find out more about affiliate features in Ecwid →

Check out where an order came from

After you add the affiliate ID to the integration code and insert it into your website, all new orders from the certain storefront will be marked with the phrase you chose. That way, you will know where the order came from. To check it out, go to Sales → Orders and select the order you want to check out. In the Additional information section, you will see the ID:

How_to_track_which_storefront_an_order_came_from.png

The IDs also appear in a CSV file when you export orders from your store. To see the IDs, you should choose the Affiliate ID column when exporting a CSV file. After exporting the CSV file, you can open it in the spreadsheet and compare the efficiency of different storefronts.

To get more detailed statistics, use apps for data analysis. That way, you can get insights on what store categories are most popular, the best source of traffic, and so on.

You can also obtain the IDs by means of our API. You can create a custom tool that will use Ecwid API for further processing of orders data, for example, for calculating revenue from each storefront.

Was this article helpful?

Awesome! Thanks for your feedback!

Thanks for your feedback!

Sorry about that! What went wrong?
13 out of 40 found this helpful
10
We use cookies and similar technologies to remember your preferences, measure effectiveness of our campaigns, and analyze depersonalized data to improve performance of our site. By choosing «Accept», you consent to the use of cookies.
Accept cookies Decline