Shopify
  • Personalization for Shopify
  • Installing
  • Tracking & Session Management
    • Standard Shopify Storefronts
    • Custom Storefronts (Hydrogen, Headless & more)
  • Shopify International (Markets)
    • Front End addition
  • Recommendation Extensions
  • Guides
    • Quicker loading times
    • Granting Access to your Store
    • Adding/Moving Recommendations
    • Customizing Product Metadata
    • How Nosto modifies your theme
    • Version Controlled Themes
    • Implementing enhanced conversion tracking
  • Features
    • Variations (Configurable Products)
    • Managing the Cart
    • Supplier Cost & Inventory Level
    • Restore Cart Link
    • Ratings & Reviews
    • Multi Currency Support
    • Shopify Flow
    • Shopify Hydrogen
    • Marketing permission and GDPR compatibility
    • Online Store 2.0
    • Shopify Sections
    • Dynamic Bundle Discounts
    • Customer Reference
  • Integrations
    • Using Yotpo
    • Using Stamped.IO
    • Using Judge.Me
    • Using Okendo
  • Articles
    • Article: Leveraging Margin Data
  • FAQ
  • Uninstalling
  • Visit Nosto
  • Issues
  • Releases
Powered by GitBook
On this page

Was this helpful?

  1. Guides

Implementing enhanced conversion tracking

PreviousVersion Controlled ThemesNextFeatures

Last updated 11 months ago

Was this helpful?

Nosto tracks all conversions via Shopify's APIs and Webhooks. Unlike implementations on other e-commerce platforms, Nosto for Shopify doesn't require the placement of any conversion tracking scripts. However, if you are using a custom checkout gateway, the conversion tracking might not work as expected. We suggest that you liaise with our support personnel prior to proceeding with this.

In order to add the conversion tracking snippet, we recommend reading up on Shopify's guide to

In the conversion tracking box, simply paste the following snippet.

<script type="text/javascript" src="//connect.nosto.com/script/shopify/nosto.js?merchant=shopify-xxxxxxxx" async></script>
<div class="nosto_page_type" style="display:none">order</div>
<div class="nosto_purchase_order" style="display:none">
  <span class="order_number">{{ order_id }}</span>
  <div class="buyer">
    <span class="email">{{ customer.email }}</span>
    <span class="first_name">{{ customer.first_name }}</span>
    <span class="last_name">{{ customer.last_name }}</span>
  </div>
  <div class="purchased_items">
  {% for line_item in line_items %}
    <div class="line_item">
        <span class="product_id">{{ line_item.product_id }}</span>
        <span class="sku_id">{{ line_item.variant_id }}</span>
        <span class="quantity">{{ line_item.quantity }}</span>
        <span class="name">{{ line_item.title }}</span>
        <span class="unit_price">{{ line_item.price | money_without_currency }}</span>
        <span class="price_currency_code">{{ currency }}</span>
    </div>
  {% endfor %}
  </div>
</div>

Note: Remember to replace the same account id in the conversion snippet with your own. Your account id always is shopify- followed by a sequence of numbers.

adding conversion tracking to your thank you page.