SOLVED

Re: Disable page view on a Marketo Landing Page

Go to solution
Anonymous
Not applicable

Disable page view on a Marketo Landing Page

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?
Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Jep_Castelein2
Level 10

Re: Disable page view on a Marketo Landing Page

From your template, remove the following line to remove the munchkin code: 
<?php echo $mContext['endElements']; ?>

View solution in original post

2 REPLIES 2
Jep_Castelein2
Level 10

Re: Disable page view on a Marketo Landing Page

From your template, remove the following line to remove the munchkin code: 
<?php echo $mContext['endElements']; ?>
Anonymous
Not applicable

Re: Disable page view on a Marketo Landing Page

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.