Create custom triggers | Community
Skip to main content
March 5, 2013
Solved

Create custom triggers

  • March 5, 2013
  • 2 replies
  • 1669 views
Hello,

I would like to be able to create a custom trigger that I can call through the Munchkin API.

Currently, sending data to Marketo from our web application requires the use of the visitWebPage event with a hackish url and parameter set such as:

mktoMunchkinFunction('visitWebPage', {url: '.action', params: 'url match'});

Doing it this way lets us record the action, but there is no way to send further information in the parameter list (unless it is possible to parse the params string in Marketo). Is there a way to create a trigger in Marketo that I can call in the following way?

mktoMunchkinFunction('createdProject', {url: 'www.example.com', ranking: 1000});

Thanks,

- Dan
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Jep_Castelein2
Dan, The munchkin API is pretty limited. You can however log any string as the web page URL, as long as it starts with a "/". It doesn't actually have to be a URL. So you could log the URL "/CreatedProject:TRUE;Ranking:1000". In Marketo you could create a Smart List "visited web page, URL contains 'Ranking:1000'" to segment your data. 

2 replies

Jep_Castelein2
Jep_Castelein2Accepted solution
Level 10
March 6, 2013
Dan, The munchkin API is pretty limited. You can however log any string as the web page URL, as long as it starts with a "/". It doesn't actually have to be a URL. So you could log the URL "/CreatedProject:TRUE;Ranking:1000". In Marketo you could create a Smart List "visited web page, URL contains 'Ranking:1000'" to segment your data. 
March 6, 2013
I appreciate the answer, Jep. This looks like it will work for our purposes.