- DarkLight
BigCommerce - Blueprint: Installing Yotpo on Blueprint
- DarkLight
In this article, you'll learn how to integrate the Yotpo app into your BigCommerce store.
The installation process
Installing the Yotpo Reviews App
- Access your BigCommerce admin.
- Click on App.
- Click on Marketplace.
- Search for Yotpo in the search box.
- Click on the Yotpo Reviews app.
- Click on Install.
- Click Confirm.
Installing the Yotpo JavaScript
- Access your BigCommerce admin.
- Click on Storefront Design.
- Click on My Themes.
- Click on Edit HTML/CSS.
- Click Other Template Files.
- Access the file HTMLHead.html which is located under Panels.
- Add the following code after the last line of the file, just above </head> section:
<script type="text/javascript">
(function e(){var e=document.createElement("script");e.type="text/javascript",e.async=true,e.src="//staticw2.yotpo.com/###YOUR-APP_KEY###/widget.js";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)})();
</script>
Replace the ###YOUR-APP_KEY### portion of the code above with your Yotpo API Key.
Can't find your API key? Click here
- Click Save.
Installing Reviews Widget
- Access your BigCommerce admin.
- Click on Storefront Design.
- Click on My Themes.
- Click on Edit HTML/CSS.
- Click Other Template Files.
- Access the file ProductDetails.html which is located under Panels.
- Add the following code after the last line of the file:
<div class="yotpo yotpo-main-widget"
data-product-id="%%GLOBAL_ProductId%%"
data-price="%%GLOBAL_RawProductPrice%%"
data-currency="%%GLOBAL_CurrentCurrencyCode%%"
data-name="%%GLOBAL_ProductName%%"
data-url=document.URL
data-image-url="%%GLOBAL_ThumbImageURL%%"
data-description="">
</div>
- Click Save.
Installing Star Rating on product pages
This step is optional.
- Access your BigCommerce admin.
- Click on Storefront Design.
- Click on My Themes.
- Click on Edit HTML/CSS.
- Click Other Template Files.
- Access the file ProductDetails.html which is located under Panels.
- Add the following code after this line:
<h1 itemprop="name">%%GLOBAL_ProductName%%</h1>:<div class="yotpo bottomLine" data-product-id="%%GLOBAL_ProductId%%" data-url="%%GLOBAL_ProductLink%%"> </div>
- Click Save.
Installing conversion tracking code
- Please copy the following code:
<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: "%%ORDER_ID%%", orderAmount: "%%ORDER_AMOUNT%%", orderCurrency: "USD"}</script><noscript><img src="//api.yotpo.com/conversion_tracking.gif?app_key={{APP_KEY}}&order_id=%%ORDER_ID%%&order_amount=%%ORDER_AMOUNT%%&order_currency=USD" width="1" height="1"></noscript>
Important:BigCommerce only allows USD currency in the Conversion Tracking. If your store's currency is not USD, replace it with the correct value - In your BigCommerce admin, go to Advanced Settings > Web Analytics.
- Check the box next to Affiliate Conversion Tracking.
- Click the Save button at the bottom of your screen.
- Click on the Affiliate Conversion Tracking tab paste your code into the Conversion Tracking Code box:
- Replace both {{APP_KEY}} portions of the code above with your store's Yotpo app key.
Make sure to replace the two {{APP_KEY}} portions of the code with the App Key from your account.
Can't find your App Key? Click here
- Click Save.
Installing Star Rating on category pages
This step is optional.
- Access your BigCommerce admin.
- Click on Storefront Design.
- Click on My Themes.
- Click on Edit HTML/CSS.
- Click Other Template Files.
- Access the file CategoryProductsItem.html is located under Panels.
- Add the following code where you want the Star Rating to appear - the exact location depends on your store:
<div class="yotpo bottomLine" data-product-id="%%GLOBAL_ProductId%%" data-url="%%GLOBAL_ProductLink%%"> <div>
- Click Save.
Importing reviews
The import process is done via BigCommerce API, so there is no need to export or manually handle files.
In order to import reviews from BigCommerce, you must:
- Have used the BigCommerce native reviews app, now disabled.
- Submit a ticket to Yotpo Support in here with the following message:
Please import my BigCommerce reviews into Yotpo.
-Send me a file with the data from BigCommerce to review before importing - Yes / No
-Apply Verified Buyer badge - Yes / No