如何使用Shopify API跟踪用户和购买?

时间:2015-07-28 05:41:39

标签: shopify

我们正在为电子商务网站开发一个独特的平台,我们现在正在创建shopify扩展。 我们的问题是:我们为每位访客提供了ID(访问ID和访客ID)。此外,我们正在跟踪订单/购买,每个订单都必须与这些ID相关联。 使用cookie跟踪和分配ID。 我们的经验和统计显示,约20%的用户禁用第三方cookie。因此,我们在两个域上保存cookie:我们的域和托管站点域(基于shopify平台的网站)。 在shopify中,当您从站点移动到结账时,您将转向shopify域,因此除非启用了第三方cookie,否则我们无法跟踪访问者。因此,我们可能会放弃在shopify中购买的约20%,因为ID与订单无关。

有没有办法将这些ID添加到购物车,并在转化跟踪代码中将其重新检索?

1 个答案:

答案 0 :(得分:0)

I think if you build your App correctly there is an easy way to do this. Every cart generates a cookie as you know, allowing you to track the customer during their spelunking through a Shopify session. Once the customer hits checkout and checks out, you lose that. The saving grace is that you get the same ID as the cookie in the final order, which you get in your App. So now you can close the loop, and connect the client side cookie to the order itself, therefore you lose nothing.

I am not sure how you missed that simple thing?