Home Instructions for installing Convead on BigCommerce

Instructions for installing Convead on BigCommerce

https://downloads.intercomcdn.com/i/o/43678041/5d2695ef625fd70f736cd279/BigCommerce-logo-dark.png

Install the Convead app in your BigCommerce store.

Go to the control panel of your store and find Convead in the list of applications.

https://downloads.intercomcdn.com/i/o/43678145/9abc2bf89c831b932d0dc8a0/Gold-gus+-+BigCommerce+Control+Panel+2017-12-27+15-22-13.png

Click “Install” to connect your store to your Convead account.

BigCommerce will ask you to confirm the installation of the application and its rights. Click the “Install application” button. If the installation is successful, you will see a message that the installation is complete.

Install the tracking code on your website.

Go to “Storefront” > “Footer Scripts”. Paste this code and save your changes:

<script type=»text/javascript»>
  // cart
  window.cnv_cart_total = {{ cart.grand_total.value }};
  window.cnv_cart_items = [];
  {{#eachIndex cart.items}}
  window.cnv_cart_items.push({product_id: {{ item.product_id }}, qnt: {{ item.quantity }}, product_name: «{{ item.name }}», price: {{ item.price.value }} });
  {{/eachIndex}}

  // view product
  window.cnv_view_product = {{#if product}}{
    product_id: «{{ product.id }}»,
    product_name: «{{ product.title }}»,
    price: «{{ product.price.without_tax.value }}»
  }{{else}}null{{/if}};

  ConveadSettings = {visitor_info: {}, app_key: «8f427b003be874bd4f83cd7d798f9665»};

  // visitor info
  {{#if customer}}
  ConveadSettings.visitor_uid = «{{ customer.id }}»;
  {{#if customer.name}}
  var aName = «{{ customer.name }}».match(/([^ ]*) (.*)/);
  if (aName && aName[1]) ConveadSettings.visitor_info.first_name = aName[1];
  if (aName && aName[2]) ConveadSettings.visitor_info.last_name = aName[2];
  {{/if}}
  {{#if customer.email}}ConveadSettings.visitor_info.email = «{{ customer.email }}»;{{/if}}
  {{#if customer.phone}}ConveadSettings.visitor_info.phone = «{{ customer.phone }}»;{{/if}}
  {{/if}}

  window.cnv_init = function() {(function(d){var ts = (+new Date()/86400000|0)*86400;var s = d.createElement(‘script’);s.type = ‘text/javascript’;s.async = true;s.charset = ‘utf-8’;s.src = ‘https://tracker.convead.io/widgets/’+ts+’/widget-8f427b003be874bd4f83cd7d798f9665.js’;var x = d.getElementsByTagName(‘script’)[0];x.parentNode.insertBefore(s, x);})(document);};

  (function(w,d,c){w[c]=w[c]||function(){(w[c].q=w[c].q||[]).push(arguments)};
   var s = d.createElement(‘script’);s.type = ‘text/javascript’;s.async = true;s.charset = ‘utf-8’;s.src = ‘https://tracker.convead.io/integration/bigcommerce/static.js’;var x = d.getElementsByTagName(‘script’)[0];x.parentNode.insertBefore(s, x);})(window,document,’convead’);
</script>

It should look like this:

https://downloads.intercomcdn.com/i/o/43678500/7bcf5df3586922e116ab90a0/Gold-gus+-+BigCommerce+Control+Panel+2017-12-27+15-28-34.png

Make sure the plugin is installed correctly.

Make a trial purchase. The order should appear in the admin panel of your store. The order will appear on the Convead funnel within 30 minutes after you leave the website.