Custom Product Score Trigger | Community
Skip to main content
November 3, 2015
Solved

Custom Product Score Trigger

  • November 3, 2015
  • 3 replies
  • 3411 views

Hey

We have 3 very different products in our portfolio and I would like to add a product score to leads in my database to better understand which product they are interested in.

My idea is to fire a custom trigger when customer reads a blog post or whitepaper which is dedicated to specific product.

Given the amount of content we prepare each month, it is not future-friendly just to keep URL list up to date, I would like to fire the trigger automatically on backend.

Is there any solution? I tried searching the Marketo Nation, but haven`t found any solution.

Thanks

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 Stijn_Heijthuij

Hi Jakub,

At my previous company we used Munchkin to create a new page on certain locations on the website. Assuming you tag your pages with the products or businessline in your CMS, you can have Munchkin create a new page with a query parameter for those pages.

Biggest drawback here is that it creates a new page, so you can't trigger forms on that page as none are technically submitted. Take a look at the sample code below

jQuery.ajax({ url: '//munchkin.marketo.net/munchkin.js', dataType: 'script', cache: true, success: function() { Munchkin.init('XXX-XXX-XXX'); Munchkin.munchkinFunction('visitWebPage', {url: '/', params: 'product=product1&location=Blog'}); } });

This will help you drive up the score, but you won't be able to trigger off other activites that happen on the same page.

Let me know if you need some help?

3 replies

November 3, 2015

Hey! Thank you both!

Grégorie - you solution is correct, but it won`t work as we don`t always include product name in URL (for example when blog post is talking about more products...).

Stijn - that seems like the solution we are looking for! Only part I don`t understand is "you can`t trigger forms" - does it mean, that I can`t submit this javascript after the form is submitted?

Thank you!

Stijn_Heijthuij
New Participant
November 3, 2015

Hi Jakub,

When someone visits a real page about your products, the Munchkin code creates a fake entry into the activity log.

The real page will be for www.x.com/product1 and have no querystring parameters.

The fake page will be for www.x.com/product1 and have &product=product1 as a querystring parameter.

The problem occurs when you try to trigger of a form on the real page, with a querystring constraint on the fake page. Because they're 2 separate pages for Marketo.

An example would be: Send an alert to the sales team for product 1 when a lead fills out a contact request form on any page that has the hidden querystring &product=product1.

Since Marketo logs 2 pages, the querystring will be on the fake page and the form will have triggered off the real page.

If you have any questions, let me know or shoot me a PM and I'll show you an example.

SanfordWhiteman
New Participant
November 3, 2015

No need for a redundant "fake" hit if the intent is to manipulate the logged URL.  If you want to add additional information such as META tags or other identifying marks about the page, set the document hash before running Munchkin.init().*

Alternately, you can replace the query string on the fly before Munchkin.init(), but this won't work in IE8/9.

* Obvs. if your page uses hash-bang navigation you'll have to extend your existing logic.

Stijn_Heijthuij
Stijn_HeijthuijAccepted solution
New Participant
November 3, 2015

Hi Jakub,

At my previous company we used Munchkin to create a new page on certain locations on the website. Assuming you tag your pages with the products or businessline in your CMS, you can have Munchkin create a new page with a query parameter for those pages.

Biggest drawback here is that it creates a new page, so you can't trigger forms on that page as none are technically submitted. Take a look at the sample code below

jQuery.ajax({ url: '//munchkin.marketo.net/munchkin.js', dataType: 'script', cache: true, success: function() { Munchkin.init('XXX-XXX-XXX'); Munchkin.munchkinFunction('visitWebPage', {url: '/', params: 'product=product1&location=Blog'}); } });

This will help you drive up the score, but you won't be able to trigger off other activites that happen on the same page.

Let me know if you need some help?

SanfordWhiteman
New Participant
November 3, 2015

FYI: I can't recommend loading the Munchkin bootstrapper (munchkin.js or munchkin-beta.js) asynchronously. The actual Munchkin library (/{version}/munchkin.js) is already loaded async, as is the tracking hit itself, so it can be another worry point when you have missing hits.

In general, while it can be tempting to treat analytics functions as disposable tasks in the browser, when reporting is disrupted it's better safe than sorry (and "safe" should probably include my Munchkin reliability extension, which you can contact me about if you're interested).

Grégoire_Miche2
New Participant
November 3, 2015

Hi Jakub,

You can use a "contains" in your "visits web page" trigger and filter on portions of the URL. For instance, containts /productname1/

This supposes that your URL indeed contains this information, which would be a good practice anyway on a SEO perspective.

I had written an Idea a long time ago in the previous on using meta title, meta description or meta keywords in visits web page tigger or visited web page filter for that precise need, but it has been discarded when migrating to the new community.

I may rewrite it again, then

-Greg