New
Are you ready for Agentforce? Take our assessment to find out today!
    • Expertise
          • Product

          • Sales Cloud
          • Service Cloud
          • Account Engagement
          • Marketing Cloud Next
          • Revenue Cloud
          • Agentforce
          • Data 360 (Data Cloud)
          • CRM Analytics
          • Tableau Next
          • Experience Cloud
          • Industry

          • Manufacturing
          • Healthcare
          • High Tech
          • Financial Services
          • Media & Entertainment
    • Solutions
      • Consulting
      • Implementation
      • Managed Services
      • Health Check
      • Training
    • About Nebula
      • We Are Nebula
      • Meet the Team
      • Join Our Team
    • Resources
    • Login
    • Get in Touch
Share:

Solving Iframe Blocking

by Nebula Consulting
20th May 2019 • 2 min read
Nebula Consulting
Share:

Last year, Matt shared some of the common questions we get about integrating Google Analytics with Pardot. Today, I’m going to share an issue I’ve come across since then, concerning iframe blocking the UTM parameters from passing.

The problem

If you have set your Google Analytics Connector up properly, and are still finding that your UTM parameters are not passing through properly, then you may be experiencing a case of iframe blocking.

Sometimes, when you place a Pardot form on a webpage using an iframe, the parent page’s URL parameters are not automatically passed to the iframe. This can cause issues, primarily with tracking.

The fix

Luckily, there is a fairly simple JavaScript fix.

All you have to do is insert the following code on your webpage. Be sure to replace both instances of PARDOT_FORM_URL with your form’s URL.

<noscript>
 <iframe src="PARDOT_FORM_URL" width="100%" height="500" type="text/html" frameborder="0" allowTransparency="true" style="border: 0"></iframe>
</noscript>

<script type="text/javascript">
 var form = 'PARDOT_FORM_URL';
 var params = window.location.search;
 var thisScript = document.scripts[document.scripts.length - 1];
 var iframe = document.createElement('iframe');

 iframe.setAttribute('src', form + params);
 iframe.setAttribute('width', '100%');
 iframe.setAttribute('height', 500);
 iframe.setAttribute('type', 'text/html');
 iframe.setAttribute('frameborder', 0);
 iframe.setAttribute('allowTransparency', 'true');
 iframe.style.border = '0';

 thisScript.parentElement.replaceChild(iframe, thisScript);
</script>

This code will make the iframe load with the same parameters of the parent page, allowing you to capture those all important UTM parameters.

If you need any advice on this, or anything else regarding the Google Analytics Connector, please get in touch.

Find related resources by topic

Marketing

You may also be interested in

Learning Marketing Cloud Advanced in one week
Blog
Marketing Salesforce Platform User Experience

Learning Marketing Cloud Advanced in one week

Do you ever think that learning a new skill or product can take a lifetime? In the Salesforce Ecosystem the products are ever changing, ever…

3 min read Read Blog
Laying the Right Foundations
Success Story
Account Engagement Sales Cloud

Laying the Right Foundations

Complex processes and cautious stakeholders hindered Redwheel's CRM adoption. Nebula's Account Engagement and Salesforce audits mapped the journey, restoring confidence and delivering a strategic roadmap for a powerful, sales-enabled CRM.

May 27, 2025 Read Customer Story
Get Started with Marketing Cloud for Account Engagement
Video
Account Engagement Marketing Cloud Next

Get Started with Marketing Cloud for Account Engagement

Salesforce is providing Account Engagement (Pardot) customers access to Marketing Cloud for FREE. Watch this video to learn how to get started!

Jan 2, 2025 Watch Video
Resolving Account Engagement Sync Errors: Top 5 Issues and Solutions
Blog
Marketing

Resolving Account Engagement Sync Errors: Top 5 Issues and Solutions

In marketing automation, maintaining a seamless flow between Marketing Cloud Account Engagement and Salesforce CRM is critical. When the sync queue accumulates errors, it directly…

6 min read Read Blog
Aligning Marketing and Sales for a Global Insurer
Success Story
Account Engagement Sales Cloud

Aligning Marketing and Sales for a Global Insurer

Poor email deliverability and disconnected data misaligned Lockton's sales and marketing. Nebula's Salesforce and Account Engagement integration established governance, delivering a 97% delivery rate, 25 empowered users, and transparent insights.

Apr 30, 2025 Read Customer Story
Fix the Foundations: Success in the Agentic Era Marketing Edition
Blog
Marketing

Fix the Foundations: Success in the Agentic Era Marketing Edition

We hear the announcements and on repeat about how the Agentic Era is here to transform the B2B and B2C landscapes. These changes will enable…

4 min read Read Blog
Creating a seamless membership experience
Success Story
Account Engagement Sales Cloud Service Cloud

Creating a seamless membership experience

Data silos and disparate systems hindered the World Travel and Tourism Council's membership experience. Nebula's Cvent integration, record cleansing and automated invoicing delivered rapid efficiency, unified data, and a 10-year partnership.

Jan 30, 2025 Read Customer Story
How to Avoid Completion Action Limits in Account Engagement (Pardot) Using Engagement Studio
Blog
Marketing

How to Avoid Completion Action Limits in Account Engagement (Pardot) Using Engagement Studio

Conditional completion actions and completion actions, while powerful, can quickly consume the available limits on your forms and form handlers. If you’ve been creating and managing…

3 min read Read Blog
Targeted Sales Enablement for Users
Success Story
Account Engagement CRM Analytics Sales Cloud

Targeted Sales Enablement for Users

Stale opportunities and missing data delayed Clarion Events' pipeline. Nebula's Einstein Next Best Action delivered intuitive guidance, surging stage moves by 132%, doubling activities, capturing crucial VAT details, and boosting CRM adoption.

Jan 3, 2025 Read Customer Story
Upgrade Your Form UX with Toggle Switches
Blog
Marketing

Upgrade Your Form UX with Toggle Switches

If you would like to modernise your forms, provide a slicker user experience, and match contemporary web design, follow our mini guide that helps you…

2 min read Read Blog
Nebula

Our journey started in 2012 with a clear vision and core values. Nebula is dedicated to empowering our customers through fostering relationships founded on collaboration, flexibility, and trust.

  • We Are Nebula
  • Resources
  • Join Our Team
  • Terms and Conditions
  • Privacy Policy
The White Chapel Building
10 White Chapel High Street
E1 8QS
+44 207 112 8026
Get in Touch
Copyright © 2026 Nebula Consulting. All Rights Reserved.