Shopify Set-up

How to connect your Shopify to start tracking conversions on Lefty

Roman Berenstein avatar
Written by Roman Berenstein
Updated over a week ago

The Lefty Affiliation functionality allows you to track influencer conversions via tracked links. Please read this article to learn more about how affiliation works on Lefty.

We support all e-commerce platforms, but when it comes to Shopify, the integration is straightforward and takes less than a minute by following these simple steps:

  1. Go to your Shopify admin dashboard, then to Settings > Checkout > Additional Scripts

  2. Add the Lefty pixel so Lefty can track and attribute conversions. To do so, copy-paste the following under Additional scripts.

    <img src="https://a.lefty.io/track?type=conversion&amp;orderId={{ id | url_encode }}&amp;amount={{ total_price | minus: shipping_price | money_without_currency }}&amp;currency={{ currency }}&amp;ref={{ shop.domain }}{% for line_item in line_items %}&amp;itemId={{ line_item.key }}&amp;pId={{ line_item.product.id }}&amp;pName={{ line_item.product.title | url_encode }}&amp;itemQty={{ line_item.quantity }}&amp;itemAmount={{ line_item.line_price | money_without_currency }}{% endfor %}" height="1" width="1" />

That's it; you're all set to start tracking your affiliates' conversions on Lefty!

Adding extra pixels

With Lefty you can track conversions from several ecommerce shops. To be able to distinguish the different shops on Lefty you can create different pixels for each one of your shops. To do so go to Affiliation > Settings > Pixels and create a new Pixel.

You can now use these pixels on your script as follows (just replace YOUR_PIXEL_ID wth the id of the pixel you would like to use, for instance if we use the pixels created above, the id z360u if we are tracking conversion on My Shop 1).

<img src="https://a.lefty.io/track?type=conversion&amp;pixelId=YOUR_PIXEL_ID&amp;orderId={{ id | url_encode }}&amp;amount={{ total_price | minus: shipping_price | money_without_currency }}&amp;currency={{ currency }}&amp;ref={{ shop.domain }}{% for line_item in line_items %}&amp;itemId={{ line_item.key }}&amp;pId={{ line_item.product.id }}&amp;pName={{ line_item.product.title | url_encode }}&amp;itemQty={{ line_item.quantity }}&amp;itemAmount={{ line_item.line_price | money_without_currency }}{% endfor %}" height="1" width="1" />
Did this answer your question?