Shopify Integration

1. Enter the administrator panel of your Shopify online store.

2. Go to Online Store> Themes> Current theme actions> Edit code

1

3. In the left browser type "header.liquid" and open the file.

2

4. Search for "</header>" and in the line above paste this code shown below at the end of the file (Before </header>).

<script type="text/javascript" src="https://[FILIATLY CLIENT URL]/integration/shopify"></script>


{% if template == 'index' %}
<script type="text/javascript">
AffTracker.setWebsiteUrl( "[ENTER YOUR DOMAIN]" );
AffTracker.generalClick( "" );
</script>
{% endif %}

Note: [FILIATLY CLIENT URL] is not the domain of your website, it's your Filiatly space. You can see it when you log in to Filiatly.
Example: https://cliente.filiatly.com
Also, in [ENTER YOUR DOMAIN] you have to put the URL of your website.

 

5. Finally go to Settings> Payment screen> Additional scripts

3

4

8. Paste this code in that field:

<script type="text/javascript" src="https://[FILIATLY CLIENT URL]/integration/shopify"></script>
<script type="text/javascript">
AffTracker.setWebsiteUrl( "{{ shop.url }}" );
AffTracker.add_order({
order_id : "{{ order_number }}",
order_currency : "{{ shop.currency }}",
order_total : "{{ subtotal_price | money_without_currency }}",
product_ids : "{% for line_item in line_items %}{{ line_item.product_id }},{% endfor %}"
})
</script>

Note: [FILIATLY CLIENT URL] is not the domain of your website, it's your Filiatly space. You can see it when you log in to Filiatly.
Example: https://cliente.filiatly.com

 

Your integration is ready! Try creating a commission to validate if the integration is working. Do you have any doubt? We are here to help you.