How to integrate with Shoplazza
Here's a quick guide to perform the integration with Shoplazza
For the integration, we will need to insert the tracking code that goes on the footer and the tracking code that goes on the thank you page. Let's go!
During our research we found a quick and easy way to embed the codes using a specific app for that purpose. It is available at Shoplazza App store:
The app is called " Custom code" (direct link)
Once the app is installed, we will need to create an insertion for each of the codes.
1. For the footer:
Click on " Add new"
Set a name for it like "Affiliatly footer code" and paste your code.
Code for the footer:
<script src="https://static.affiliatly.com/v3/affiliatly.js?affiliatly_code=AF-10XXX"></script>
Please note that on the example "AF-10XXXXX" needs to be replaced with your account ID (To find out what's your account ID please enter to your Affiliatly dashboard and click on the "Account" tab. You will find your ID there)
It should look like this:
2. Next, we do the same process for the thank you page code:
Click on "Add new"
<script>
var affi_id_order = window.ORDER.id;
var affi_order_price = window.ORDER.total;
var affi_order_coupons = window.ORDER.discount_code;
var url_affi = "https://static.affiliatly.com/v3/affiliatly.js?affiliatly_code=AF-10XXXXX&conversion=1&id_order="+ encodeURIComponent( affi_id_order ) + "&order_price="+ affi_order_price +"&order_coupons=" + affi_order_coupons;
var script_affi = document.createElement("script");
script_affi.type = "text/javascript";
script_affi.src = url_affi;
document.getElementsByTagName("head")[0].appendChild(script_affi);
</script>
Please note that on the example "AF-10XXXXX" needs to be replaced with your account ID (To find out what's your account ID please enter to your Affiliatly dashboard and click on the "Account" tab. You will find your ID there)
After finishing the code embedding, you can set up Add to Cart, Checkout and Purchase (Orders purchase can be tested by the simulated transaction in the Bogus Gateway), and check for them on your Affiliatly account.
Hopefully, this will help you move forward in this project. If you have any more questions and the answers are not available here, contact us.