Event name in Webhooks | Community
Skip to main content
Level 2
January 22, 2020
Question

Event name in Webhooks

  • January 22, 2020
  • 3 replies
  • 6854 views

I would like to make a single webhook to be able to handle all events from Marketo regardless of which smart campaign the webhook is attached to. Is it possible to be able to know what triggered the webhook such as a specific event? I wasn't able to find a generic token to be able to do that in the payload. Is the only solution to make a webhook for every single event that we want to track?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

SanfordWhiteman
Level 10
January 22, 2020

You could use tokens like {{campaign.name}}, {{campaign.id}}, {{program.id]}, etc.

Level 6
January 22, 2020

Hi, 

If you were to make a program token called {{my.eventTracker}} and then add that to your webhook when setting it up- I believe it will do what you would like. 

If the campaigns aren't nested in programs a folder token could potentially work.  

hope it helps!

Level 2
January 22, 2020

Thanks for the quick responses! I have one more question. What exactly would an event mean in Marketo (such as "email opened" or "email sent", etc.) and how many would be associated with a campaign?

SanfordWhiteman
Level 10
January 22, 2020

Oh, you mean "event" as in "activity."

In Marketo, "event" specifically refers a type of program, and its associated live/virtual, er, event.

You can use the {{trigger.tokens}} for activities, they're built-in: {{trigger.trigger name}} is the type and {{trigger.name}} is the description/subject.

However, I hope you're not expecting to ping a service via webhook when an Email Sent activity occurs unless your daily volume is in the 10s of thousands only.

Level 2
January 22, 2020

When I try to set up a webhook on the webhook and insert a token, I don't see any of the trigger.tokens in the dropdown. Is there something I have to do to enable that?

Thanks!