Integrating Curebit on Your Site
Displaying Curebit Offers
Subscription offers can be shown:
- Inside an IFRAME somewhere on your site (default)
- Javascript popup overlay method
Inside an IFRAME on your site (default)
- Add the below <iframe> element on the page you would like to show the offer (eg your 'Refer-a-Friend page'). The width and height dimensions should match those found on your campaign settings page.
- Replace the 'CUSTOMER-EMAIL' parameter with the customer's email address and 'CUSTOMER-ID' with a unique customer identifier (you can use email address again if you do not have one).
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.
<iframe src='https://www.curebit.com/public/YOUR-CUREBIT-SITE-ID/subscriptions/CUSTOMER-ID/offer?email=CUSTOMER-EMAIL' width='780' height='600' scrolling='no' frameborder='0'></iframe>
Javascript popup overlay method
- Add the below <script> element on the page where you'd like to have the offer appear as an overlay.
- Replace the 'CUSTOMER-EMAIL' parameter with the customer's email address and 'CUSTOMER-ID' with a unique customer identifier (you can use email address again if you do not have one).
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 integration code --> <script type="text/javascript" src="https://www.curebit.com/public/YOUR-CUREBIT-SITE-ID/subscriptions/create.js?subscription[email]=CUSTOMER-EMAIL&subscription[customer_id]=CUSTOMER-ID&v=0.5&popup=1"> </script> <!-- End Curebit integration code -->