Square (SquareUp) integration
Powering all the ways you do business. Work smarter, automate for efficiency, and open up new revenue streams on the software and hardware platform millions of businesses trust.
The integration with Square is done using JS tracking codes placed directly in Square admin panel.
Sale tracking code
Log into your Square admin panel and navigate to Online> Settings> Tracking Tools. Edit the ‘Checkout Tracking’ section to enter the sale tracking code:
<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript">
PostAffTracker.setAccountId('Account_ID');
var sale = PostAffTracker.createSale();
sale.setTotalCost('{subtotal}');
sale.setOrderID('{orderid}');
sale.setData1('{email}');
PostAffTracker.register();
</script>
Save your changes and that is it. Your store is now integrated.
In case you wanted to use more or different variables, here’s the list of available values:
{txid} – Transaction id
{orderid} – Square Order id or order token
{storeName} – Store name
{tax} – Tax value
{shipping} – Shipping value
{subtotal} – Order subtotal value
{total} – Total order value
{name} – Customer name
{email} – Customer email
{items} – Order items
Do not forget to add the click tracking code to your site as well – you can use the same section, but instead of using the Checkout code use the Add New Code link and add the click tracking code there.