Disable page view on a Marketo Landing Page | Community
Skip to main content
February 6, 2013
Solved

Disable page view on a Marketo Landing Page

  • February 6, 2013
  • 2 replies
  • 1037 views
I have Marketo Landing Pages iFramed into a number of pages on my website to display Forms.  When a user visits a page that has a Marketo LP iFrame, the user racks up 2 page views... one for the actual page, and one for the iFramed page.

Marketo Munchkin is not contained within the Landing Page template, but when the LP is approved, it seems like the Munchkin is automatically added to the page.

Is there a snippet of code I can add to my Marketo Landing Page to block Marketo from recognizing pageviews?
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
From your template, remove the following line to remove the munchkin code: 
<?php echo $mContext['endElements']; ?>

2 replies

Jep_Castelein2
Jep_Castelein2Accepted solution
Level 10
February 7, 2013
From your template, remove the following line to remove the munchkin code: 
<?php echo $mContext['endElements']; ?>
February 7, 2013
Be sure to have a separate landing page template only used for iFrames hosted on Marketo tracked sites. That way you don't double up on page views. Be sure though not to use that iFrame on a non-mkto tracked page as you'll start having problems.