Skip to content

Instantly share code, notes, and snippets.

@iurevych
Created December 23, 2013 11:18
Show Gist options
  • Save iurevych/8095442 to your computer and use it in GitHub Desktop.
Save iurevych/8095442 to your computer and use it in GitHub Desktop.
AdoreMe mobile integration
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>AdoreMe</title>
</head>
<body style="padding: 0; margin: 0;">
<!-- Begin Curebit integration code -->
<script type="text/javascript">// <![CDATA[
try {
curebit_email = adoremeCustomerInfo.customer.email;
} catch(err) {
curebit_email = '';
}
try {
curebit_firstName = adoremeCustomerInfo.customer.firstName;
} catch(err) {
curebit_firstName = '';
}
try {
curebit_lastName = adoremeCustomerInfo.customer.lastName;
} catch(err) {
curebit_lastName = '';
}
try {
curebit_id = adoremeCustomerInfo.customer.id;
} catch(err) {
curebit_id = '';
}
var _curebitq = _curebitq || [];
_curebitq.push(['init', {
site_id: 'adoreme', // REQUIRED - Curebit Site ID
server: 'https://www.curebit.com' // OPTIONAL - Use your own domain (enterprise only)
}]);
_curebitq.push(['new_affiliate', {
iframe: { // REQUIRED - html attributes for iframe tag to fit page design
width: "100%", // REQUIRED - width of the iframe
height: 400, // REQUIRED - height of the iframe
id: "new_curebit_affiliate_member", // OPTIONAL - any other HTML attribute
frameborder: 0 // OPTIONAL - removes border from IE
},
responsive: true,
affiliate_member: { // OPTIONAL - curebit will ask person to signup
// in case when his email is not given by merchant
//email: curebit_email, // OPTIONAL - customer email
first_name: curebit_firstName, // OPTIONAL - customer first name
last_name: curebit_lastName, // OPTIONAL - customer last name
customer_id: curebit_id // OPTIONAL - customer ID from your site
},
campaign_tags: ['mob'] // OPTIONAL - campaign tags for offer targeting
}])
//]] ></script>
<script type="text/javascript" src="//d2jjzw81hqbuqv.cloudfront.net/assets/api/all-0.6.js"></script>
<!-- End Curebit integration code -->
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment