Using the munchkin click link tracking function to target a class name

John_Wallace
Level 4

Using the munchkin click link tracking function to target a class name

Hi there, on our site we have a link/button that fires a signup form which is contained in an iframe.  There isn't a href associated with the link but there is a class that our javascript looks for to fire the iframe.  I was wondering if it is possible to use the munchkin click link function to record everytime a link or button with this class is clicked on?   In the documentation it mentions you can use a url that doesn't even exists.  So could id something like this

Munchkin.munchkinFunction('clickLink', {
    href: '/signup-form'}
);

Thanks

-John

Tags (1)
1 REPLY 1
Anonymous
Not applicable

Re: Using the munchkin click link tracking function to target a class name

@John, this is possible. You would probably have to create your own custom event handler that listens for clicks to a button with this class. When this event is fired, call the munchkinFunction clickLInk with href:'button-with-class' or any convention that the Marketo users will be comfortable with.