I am creating a widget for all the Shopify sites which uses Facebook for cart abandon etc. The widget is something like the Shopmessage. Digging through the docs of Shopify I created a basic workflow using 2 types. Please point out if there are any mistakes in my understanding.
Any help appreciated. Which methods are you guys suggest? Are there any good methods to address my scenario? Any help appreciated
That's a long one.
TYPE 1 - Where/how is your widget being injected? Does the merchant need to add a DOM hook?
userId - eventually you may want a heuristic combining several metrics to make a fingerprint to increase the confiden that id's are unique (account for things like multiple tabs, browser private mode)
product info is "/product handle".json
Type 2 - If your adding a snippet why not load your script there? Or are you trying to take advantage of scripttags load process?