snippet.js
Version:
The JavaScript snippet for Chameleon
15 lines (13 loc) • 366 B
JavaScript
// Add the snippet here with account id (i.e. config.chameleonAccountId)
// Assuming you preload your page with a current user
(function() {
if(currentUser.id) {
chmln.setup({
uid: currentUser.id,
created: currentUser.createdAt,
email: currentUser.email,
plan: currentUser.planName,
spend: currentUser.planCost
});
}
})();