First, I join the leadership when a user subscribes to our application within 14 days of the 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 a 14-day trial. But, for some reason, we are extending the trial period, so we want to update the leading database with an extended validation date. How can i do this? I tried the following, but it does not 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?
source
share