在marketo中更新潜在客户信息 [英] Updating Lead Info in marketo

查看:104
本文介绍了在marketo中更新潜在客户信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最初,当用户在14天的试用期内注册我们的应用程序时,我会关联销售线索.

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);
   }
  }
 }
}

我们在14天的试用期结束后使用marketo发送电子邮件广告系列.但是,对于某些潜在客户,我们会延长试用期,因此我们想使用试用期延长日期来更新潜在客户的数据库.我怎样才能做到这一点 ?我尝试了以下操作,但不起作用

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);
   }
  }
 }
}

有什么建议吗?

推荐答案

此小片段向您展示了如何使用正确的密钥(第三个参数)调用associateLead,这是与您要关联的销售线索的电子邮件.在您的示例中,您只是将私钥作为第三个参数发送.

This small snippet shows you how to invoke associateLead with the correct key (third parameter), which is an SHA1 hash of your private key concatenated with the email of the lead you are trying to associate. In your example you are just sending the private key as third parameter.

我使用此库来计算SHA1哈希//cdnjs.cloudflare.com/ajax/libs/jsSHA/2.0.2/sha1.js

I used this library for calculating the SHA1 hash //cdnjs.cloudflare.com/ajax/libs/jsSHA/2.0.2/sha1.js

var email = 'user@domain.com';
var shaObj = new jsSHA('SHA-1', 'TEXT');
shaObj.update('<your-munchkin-private-key-goes-here>' + email);
var hash = shaObj.getHash('HEX');
Munchkin.init('<your-munchkin-identifier-goes-here>');
Munchkin.munchkinFunction('associateLead', { 'Email': email }, hash);

希望有帮助.

Alejo.

这篇关于在marketo中更新潜在客户信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆