Elementor:如何向 webhook 添加字段值?

问题描述 投票:0回答:3

如何将 contact_phone 字段值添加到 Elementor Pro Form 小部件 webhook url?

我尝试过:

contact_phone
[contact_phone]
[field id="contact_phone"]
array["fields"]["contact_phone"]["value"]

在电子邮件模板“[field id="contact_phone"]”工作正常。但我对 webhook 的所有尝试都像纯文本,而不是字段值。

form name: contact_form
field id/name: contact_phone
webhook: https://***.intrumnet.com/onlineforms?action=fillform&formtype=9&data[def_customer][phone]=array["fields"]["contact_phone"]["value"]

webhooks elementor
3个回答
0
投票

我不清楚您的 webhook 的确切 URL,但请尝试此操作并根据需要进行调整。

  • 在提交后的表单操作中,包含重定向
  • 对于重定向 URL,输入
    webhookURL/?contact_phone=[field id="contact_phone"]

0
投票

如果其他人在搜索类似问题时发现这篇文章(就像我一样),这里是这篇文章的答案:

从 Elementor Forms 中的字段复制短代码 - 它看起来像这样:[field id="first_name"]

用它来构造 webhook url。我的 webhook url 工作正常,如下所示:

https://example.com/webhook.php?first_name=[field id="first_name"]&last_name=[field id="last_name"]&email=[field id="email"]&phone_number=[field id="phone_number"]&utm_source=[field id="utm_source"]&utm_medium=[field id="utm_medium"]&utm_campaign=[field id="utm_campaign"]&utm_term=[field id="utm_term"]&remote_ip=[field id="remote_ip"]&gclid=[field id="gclid"]

这非常有效,直到当您想要开始收集新参数时,您必须继续编辑网站上的每个表单!我一直在寻找一种方法,让 Elementor 将其在当前 url 中找到的每个参数和值添加到 webhook url。看来不可能啊


0
投票

我的目标是使用 Webhook 触发具有转化值的 Matomo 目标。但不幸的是,这种方法并不像回复中描述的那样有效。

mywebhookurl/matomo/matomo.php/?idsite=1&idgoal=1&revenue=[字段 id="revenue"]&rec=1

使用此模式,您可以在 Matomo 中触发目标,这很有效。 但是,值 [field id="revenue"] 不会被替换。

© www.soinside.com 2019 - 2024. All rights reserved.