Shopify
Within Clonable, we only support subdomain clones for Shopify, which is deliberately done because of some limitations in Shopify's checkout. To get Clonable fully working, you need to set up a number of things within the Shopify backend. These are listed below.
Custom pixel
The custom pixel causes a /ping/
request to be sent to Clonable on the checkout page, so Clonable knows that the user has been on the clone's checkout page. With this, Clonable thus knows which clone the customer should be on after he has checked out at Mollie for example.
Instructions
- In your Shopify backend, go to Settings > Customer events > Add custom pixel.
- Give the pixel a name (e.g. Clonable Payment Redirects).
- Under permission, set Not Required, and Data sale to Data collected quilifies as data sale.
- Under code, enter the following:
analytics.subscribe("checkout_started", (event) => {
fetch("https://conversions.clonable.net/shopify/ping", {
headers: {'x-clonable-origin': window.location.origin }
}).then(response => { /* fire and forget */ })
});
- Click save at the top right.
- Then click connect, and at the pop-up, select connect again.
Clonable payment redirect script
This script takes care of redirecting on the thank you page, aswell as check if the current user of the website has recently been on the checkout of a clone. If so, the user will be sent to the thank you page with the domain of that clone.
Instructions
- In your Shopify backend, go to Settings > Checkout.
- When you scroll down on this page, there should be a setting for Order status page.
- Enter the following into Additional scripts:
<script src="https://conversions.clonable.net/script?domain={{ YOUR_DOMAIN }}&shopify=true" async></script>
- In the scripts above, replace
{{ YOUR_DOMAIN }}
with the domain of the website. So if you were to have a clone from clonable.co.uk to de.clonable.co.uk, you would enter clonable.co.uk before{{ YOUR_DOMAIN }}
. - Then click save at the top right.
You can test if the script works, by pasting the url of the script into the browser. If you have done it right, then you will see the contents of the script. See nothing? Then you most probably haven't entered the domain correctly.
Email translations
For translating the emails, Shopify's built-in template translation can be used. It ensures that the outgoing email is automatically set based on the locale set in the checkout. The checkout on the clones will automatically get a ?locale=...
query parameter from Clonable.
Within Shopify, you only need to add the languages in Shopify's backend. These languages will just remain empty in Shopify, but they will ensure that the email is translated accordingly.
Instructions
- In your Shopify backend, go to Settings > Languages.
- This probably already includes 1 or more languages.
- Click Add language at the top right, and add the languages of the clone(s).
- If all goes well, the added languages are now listed under Unpublished languages.
- For each language, right-click the 3 dots, then click publish, then in the pop-up also click publish.
- When done correctly, the added languages are now listed under Published languages with the text No translations added.
- Now, go to Settings > Markets > {{ YOUR_MARKET }} > Languages and domain;
- If all goes well, all published languages are now listed here.
You choose the main market of your Shopify installation; you do not need to create multiple markets for this. If you already have multiple markets, you only need to validate it for 1 market.
This should translate the emails for now, but make sure to take into account that the links and products in the emails will still be wrong, meaning that the links will lead to the original website and the products will appear in the original language.