Support Center

Follow

ICS: Shopify Integration Instructions

 

  1. Log in to your Shopify admin account.
  2. Click on “Settings” to go to the Settings page
  3. Click on “Checkout” to go to checkout setting page

  1. Scroll down to the “Order Processing” section and locate the “Additional scripts” text box.

Insert ICS script here so that the ICS script will be triggered after a qualifying order is processed.

  1. Add ICS script to “Additional scripts” in the following format. See “ICS Quickstart Guide” for more information on how to customize ICS script further.

*important field. These should be enclosed in single quotes

campaignId : this number should match the campaignId on ICS admin. If you want to run a different campaign on order confirmation, you should change this value.

publicKey : universal whitelisted publicKey is d49bcd55f6954e86ab91730a5ea87d04 but an affiliate user can create and assign a unique one for each client from the ICS admin page.

 

 

<script>
(
function(i,s,r,publicKey,campaignId,a,m,frame,bodyChild){
   i['IceCreamSocialObject'] = r
;
   i[r] = i[r] || function(){(
i[r].q = i[r].q||[]).push(arguments)},   i[r].l = +new Date();
   a = s.createElement('script'), m = s.scripts[
0];
   a.async = a.src = 'https
://app.icecreamsocial.io/js/ics.js';
   m.parentNode.insertBefore(
a,m);
   frame = s.createElement('iframe'), bodyChild = s.body.firstChild
;
   frame.src = 'https
://app.icecreamsocial.io/?campaignId='+campaignId+'&publicKey='+publicKey;
   frame.id='SocialIframe', frame.style.cssText = 'position
:fixed;height:0%;width:0%;z-index:9999;border: 0';
   bodyChild.parentNode.insertBefore(
frame,bodyChild);
})(
window ,document ,'ics', publicKey, campaignId);

ics('addTransaction', {
   locale: 'en-US',
   orderId: {{ order.order_number }},
   email: '{{ order.email }}',
   revenue: {{ order.subtotal_price }},

   // the following items are optional
   name: '{{customer.name}}',
   productName: '{{ order.line_items.first.title }}',
   productUrl: '{{ order.line_items.first.url }}'
})
;
</script>

 

  1. Once the ICS script is activated, the ICS widget will pop up on the order confirmation page as shown below. You may wrap ICS script in conditional statements to only trigger if desired conditions of the purchases are met.

 

 

0 Comments

Please sign in to leave a comment.