How to integrate with Shoplazza

Here's a quick guide to perform the integration with Shoplazza

Thanks to our latest update, we have connected our service with Shoplazza's API so the integration got simpler as it follows:


First, look for our app at Shoplazza's App Store and install it.


Once the app is installed, we will need to insert the code from the integration page on your Affiliatly account to your Shoplazza store's checkout page.



Code for the Checkout page:

<!-- affiliatly code start -->
<script>
var affi_id_order = window.ORDER.id;
var affi_order_price = window.ORDER.total;
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;
var script_affi = document.createElement("script");
script_affi.type = "text/javascript";
script_affi.src = url_affi;
document.getElementsByTagName("head")[0].appendChild(script_affi);
</script>
<!-- affiliatly code end -->

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)


Copy the code you need to go to your store's admin dashboard and navigate to Settings -> Checkout Page -> Additional scripts




Important considerations

  • Tracking is done only on pages loaded by/hosted on Shoplazza's servers, if your homepage or other pages are hosted on different framework/server, the tracking is not installed and its not working there.

    To be able to track visits on those pages too, please copy this code and paste it into your pages footer:

<script type="text/javascript" src="https://static.affiliatly.com/shoplazza/v3/shoplazza_subdomain.js?affiliatly_code=AF-1073317"></script>

Those pages must be using the same domain as your store, for example your-site.com (your front site) and store.your-site.com (your Shoplazza store).

  • The purchases will not be tracked, if you are not using the standard Shoplazza checkout page i.e. you are using some app which has its own checkout (such are recurring/subscription orders/upsell apps). If you are using such app we can track referred orders only via the coupon code/email method (and Royalties).


  • For the orders to be tracked, the referred visitors must land on the same domain as the one on which they will checkout i.e. if they checkout on domain.com they must also land on domain.com

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.

To test your integration, open your site with parameter "?aff=1" (the ID of the test affiliate):

https://affapp.myshoplaza.com/?aff=1

Then make a test purchase. You should see your visit and purchase (with around of 5 minutes delay) in your Admin panel.


Everything you need to do now is setup the settings of your affiliate program. To do that go to page "Settings"

Before that you can check this FAQ entry describing the different options.


After you have finished the setup, you can start promoting your affiliate program!


That's it for this integration. If you have any more questions and the answers are not available here, please contact us. Out top tier support team will gladly assist you.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us