Syncing Orders Through Conversion Tracking

      Syncing Orders Through Conversion Tracking


        Article Summary

        Products


        Reviews
        Supported plans

        Free, Starter, Pro, Premium, Enterprise

        eCommerce Platform

        Shopify, Shopify Plus, Adobe Commerce (Magento), BigCommerce, WooCommerce, Volusion, Salesforce Commerce Cloud, Custom

        Yotpo offers a few ways to sync orders info with your store. As an alternative to the API method, you may sync orders through Yotpo's conversion tracking pixel by adding the following parameters to your conversion tracking code:

         orderDate: "01-01-2016", 
          customerEmail: "johndoe@yotpo.com", 
          customerName: "John Doe", 
          products: [
            {
              productId: "",
              productUrl: "",
              productName: "",
              productImage: "",
              productDescription: "",
              productPrice: "",
              productSpecs: {
                  "isbn": "",
                  "upc": ""
            }, {
              productId: "",
              productUrl: "",
              productName: "",
              productImage: "",
              productDescription: "",
              productPrice: "",
              productSpecs: {
                  "isbn": "",
                  "upc": ""
            }
          ]

        Once the above mentioned parameters are added, your full conversion tracking code should look like this:

        <script type="text/javascript">
        (function e() {
            var e = document.createElement("script");
            e.type = "text/javascript", e.async = true, e.src = "//staticw2.yotpo.com/###APP_KEY###/widget.js";
            var t = document.getElementsByTagName("script")[0];
            t.parentNode.insertBefore(e, t)
        })();
        </script>
        <script>
        yotpoTrackConversionData = { 
          orderId: "", 
          orderAmount: "", 
          orderCurrency: "", 
          orderDate: "", 
          customerEmail: "", 
          customerName: "", 
          products: [
            {
              productId: "",
              productUrl: "",
              productName: "",
              productImage: "",
              productDescription: "",
              productPrice: "",
              productSpecs: {
                  "isbn": "",
                  "upc": ""
            }, {
              productId: "",
              productUrl: "",
              productName: "",
              productImage: "",
              productDescription: "",
              productPrice: "",
              productSpecs: {
                  "isbn": "",
                  "upc": ""
            }
          ] 
        }
        </script>
        <noscript><img src="//api.yotpo.com/conversion_tracking.gif?app_key=###APP_KEY###&order_id={{order_name|handleize}}&order_amount={{subtotal_price|money_without_currency}}&order_currency={{ shop.currency }}" width="1" height="1"></noscript>
        Important!
        Please make sure that your correct Yotpo App Key appears in the ###APP_KEY### portion of the code. Click here to find your APP Key.
        Tip:
        To learn more about Yotpo's conversion tracking and installation, click here

        Mandatory Parameters

        To avoid errors, the following orders-related parameters must be included:

        • orderDate: 
        • customerName:
        • customerEmail:

        Products: Include at least one product with the following parameters and values defined:

        • productId:
        • productUrl:
        • productName:
        Please note:

        Failure to include the aforementioned mandatory parameters may result in the following error:

        "Conversion Tracking is missing fields required to sync orders."

        Note that it may take up to eight hours for orders to be processed through the Yotpo system. 


        Was this article helpful?

        What's Next