We are using the Shopify BuyButton.js to make a wordpress based website transactional.
We have installed Heap Tracking on both the wordpress site and on our Shopify store (Using the additional scripts box in the checkout settings).
The Shopify Store checkout occurs on a subdomain (shop.xxxx.com) of the domain where the main site is xxxx.com.
The Shopify and identify implementation looks good and is working as expected. This is because these users were navigated to shop.xxxx.com instead of xxxx.myshopify.com when they went through the checkout flow. We saw that in the Shopify settings redirects shop.xxxx.com are enabled, which is preferable for the Heap setup.
That said, we are still seeing some users redirect to xxxx.myshopify.com , and this is where users are being split.
In this scenarios, we know that the Shopify flow redirected from shop.xxxx.com to the myshopify.com domain. This is not ideal given the Heap identify implementation, so we want to make sure that 100% of Shopify thank you pages happen on shop.xxxx.com . Shopify seems to have an inconsistency in the domains that appear within the store.
Is there a way to correct this inconsistency and only route users to our own subdomain during checkout?