Integrating Curebit on Your Site
Gleam Integration (Optional)
For a more seamless experience, you can enable the "Gleam" feature on your site
so a customer's friends can see the deal and faces of their friends who have 'liked'
the deal. The content, look, and feel are all fully customizable. An example Gleam:
-
Enabling it on your Campaign
Enable the Gleam on your campaign settings page.
-
Integrating into your site
Insert the following JavaScript code snippet in your site's template, before the closing <body> tag and replace 'YOUR-CUREBIT-SITE-ID' with your Curebit Store ID. .
Sample code: To get your personal integration code, YOUR-CUREBIT-SITE-ID needs to be replaced with your curebit store ID. To get your personalized Curebit Store ID, access integration instructions from inside your Curebit account.<!-- Begin Curebit Gleam integration code --> <script type="text/javascript"> //<![CDATA[ var _curebitq = _curebitq || []; _curebitq.push(['init', {site_id: 'YOUR-CUREBIT-SITE-ID', gleam_version: '1'}]); /* REQUIRED site_id: Set to your store id */ _curebitq.push(['gleam', {}]); (function(){function load_js(){var s=document.createElement('script');s.type='text/javascript';s.async=true; s.src='//d2jjzw81hqbuqv.cloudfront.net/assets/api/all-0.5-dcad92e5ec5c443c58622dd10eb6fe89.js'; var x=document.getElementsByTagName('script')[0];x.parentNode.insertBefore(s,x)} if(window.attachEvent)window.attachEvent('onload',load_js);else window.addEventListener('load',load_js,false)})(); //]]> </script> <!-- End Curebit Gleam integration code -->