Initially, I associate the lead when the user signs up to our app on a 14 days trial period.
function associateMarketoLead() {
if (window.marketoKey)) {
if (typeof Munchkin !== 'undefined') {
if ('function' === typeof Munchkin.munchkinFunction) {
let leadAttributes = {
Email: user.email,
accountId: accountId,
LeadSource: 'Web'
};
Munchkin.munchkinFunction('associateLead', leadAttributes, marketoKey);
}
}
}
}
We use marketo to send email campaigns at the end of 14-days trial. But, for certain leads, we extend the trial period and so we want to update the lead's database with trial extended date. How can I do that ? I tried the following, but it doesn't work
function notifyMarketoOnTrialExtension(accountId, trialExtendedDate) {
if (window.marketoKey) {
if (typeof Munchkin !== 'undefined') {
if ('function' === typeof Munchkin.munchkinFunction) {
var leadAttributes = {
Email: user.email,
accountId: accountId,
trialExtendedDate: trialExtendedDate
};
Munchkin.munchkinFunction('associateLead', leadAttributes, window.marketoKey);
}
}
}
}
Any suggestions ?