Refersion App and JS Buy SDK

John_Wrightson
New Member
3 0 0

Hello,

I've recently integrated the Shopify Buy SDK into an Angular frontend app (that was fun).

Now i've got that working, I wish to use the refersion shopify app to track my affilate conversions.

My question is this: How do I pass the refersion id from the custom frontend, through the Buy SDK so that it meets the refersion app at checkout? Assuming this is what I need to do.

Thanks

John

0 Likes
Mircea_Piturca
Shopify Partner
1459 39 284

I am not sure how refersion shopify app works. I assume that it will add a reff ID on the checkout link.

If so, with the Buy SDK you can create a custom checkout link, a permalink. See https://help.shopify.com/themes/customization/cart/use-permalinks-to-preload-cart

The SDK cart.checkoutUrl will return the link and from there you can pass an additional parameter: &affID=some-id.

Hope this helps.

Finally—Add variant descriptions to your products
0 Likes
John_Wrightson
New Member
3 0 0

Hi Mircea,

Thanks for your input on this.

I initially tried to add the refersion ID to the cart.checkoutUrl but to no avail. Maybe a permalink is the solution, thanks I shall look more into this!

Best,

John

0 Likes