콘텐츠로 바로가기
WordPress.org

한국어

  • 테마
  • 플러그인
  • 소식
    • 문서
    • 포럼
  • About
    • WordPress 6.9
    • 워드프레스 6.8
    • 워드프레스와 40% 웹을 위한 여정
    • 워드프레스 번역 핸드북
  • 워드프레스 한국팀
  • 워드프레스 받기
워드프레스 받기
WordPress.org

Plugin Directory

Mercury – Auto Height for Pardot Forms

  • 플러그인 제출하기
  • 내 즐겨찾기
  • 로그인
  • 플러그인 제출하기
  • 내 즐겨찾기
  • 로그인

Mercury – Auto Height for Pardot Forms

작성자: pragmasoftwares
다운로드
  • 세부사항
  • 평가
  • 설치
  • 개발
지원

설명

Important: this plugin, on its own, cannot make forms auto-height. A browser will not let one domain read the content of an iframe from another domain, and this is not really a limitation of Pardot, WordPress, or this plugin, it is simply the same-origin policy that every browser enforces. Auto-height works only once a small companion script (generated for you, please see Installation below) has also been added to your Pardot Form Layout Template. If that step is skipped, this plugin has nothing to listen for, and forms will simply keep their normal height.

Marketing Cloud Account Engagement forms, still widely known by their original product name, Pardot, are usually embedded on external sites inside a fixed-height iframe. Since the form itself lives on a different domain, the parent page genuinely has no way of knowing its real content height, so tall forms get clipped, and shorter forms leave behind empty space or an unnecessary scrollbar.

Mercury addresses this with a small, two-part messaging mechanism:

  1. A short script, generated by this plugin for your own domain, is added once to your Pardot Form Layout Template’s header. It measures the actual rendered height of the Pardot form page and reports it to the parent window whenever it changes, on load, on window resize, and whenever validation errors expand the form.
  2. This plugin listens for that message on your WordPress site and applies the reported height, plus an optional buffer, to the matching iframe.

Requirements

  • A Pardot or Account Engagement account with access to edit Form Layout Templates.
  • The exact tracker (“go.”) domain your Pardot forms are served from, entered once on this plugin’s settings screen.

What this plugin does not do

  • It does not create, host, or modify Pardot forms.
  • It does nothing until the generated code snippet has also been added to your Pardot Form Layout Template. The settings screen explains this and includes a checkbox so you can keep track of whether that step is done.

Privacy

This plugin makes no external HTTP requests and does not collect any data. The only communication involved is a postMessage between the Pardot iframe and the parent page, two pages you already control, carrying nothing more than a height in pixels and a form ID parsed from the form’s own URL.

스크린샷

The settings form: enable auto-height, set the trusted Pardot domain and buffer, and confirm the Pardot-side code once it is in place.
The settings form: enable auto-height, set the trusted Pardot domain and buffer, and confirm the Pardot-side code once it is in place.
Once saved, the how-it-works steps and the generated code block, ready to copy into your Pardot Form Layout Template.
Once saved, the how-it-works steps and the generated code block, ready to copy into your Pardot Form Layout Template.

설치

  1. Install and activate the plugin through the “Plugins” screen in WordPress, or upload the plugin folder to /wp-content/plugins/.
  2. Go to Settings → Pardot Auto Height.
  3. Tick Enable auto-height.
  4. Enter your Trusted Pardot domain, the “go.” tracker domain your forms are served from (for example https://go.example.com).
  5. Leave Extra height buffer at its default of 200px, or adjust it as needed. This is the amount we would generally recommend, mainly to prevent a scrollbar flash when a form expands to show validation errors.
  6. Copy the generated code block into your Pardot account, under Marketing → Forms → Layout Templates, into the Header section of the layout template your embedded forms use.
  7. Once that code is live on the Pardot side, tick Pardot code added to confirm, then save.
  8. If auto-height does not seem to be applying, kindly tick Enable debug logging, save, then open a page with an embedded form and check your browser console. Please see the FAQ below for what to look for.

FAQ

Why do I need to add code to Pardot as well as installing this plugin?

A page cannot see into an iframe from a different domain, as per the browser’s own same-origin policy, and this is not a limitation of Pardot or WordPress. The Pardot-side code is what tells the parent page how tall the form actually is, and this plugin is what listens for that and resizes the iframe. Both halves are genuinely required for this to work.

Where do I find my “Trusted Pardot domain”?

This is the domain your Pardot forms load from in the browser address bar when you open a form directly, typically your Pardot account’s own tracker domain, for example https://go.yourcompany.com.

Does this work with multiple forms on the same page?

Yes. Each form reports its own height along with an ID parsed from its own URL, and the plugin matches that ID against the src of each iframe on the page. If only one matching iframe is present and no ID is available, that single iframe is used.

Does this send any data externally?

No, it does not. Please see the Privacy section above.

What if I have not added the Pardot-side code yet?

The plugin’s settings screen shows a warning while auto-height is enabled but not yet confirmed. Nothing breaks in the meantime, forms simply keep their default height until the Pardot-side code is actually added.

Auto-height does not seem to be working, how do I debug it?

Kindly tick Enable debug logging on the settings screen, save, then open a page that has an embedded form on it and check your browser console. There is no need to wait around or keep refreshing, since this gives an instant answer either way:

  • If you see a received height= line in the console, everything is working as expected.
  • If there is no such line, the code has generally not reached the Pardot side yet. It would be worth rechecking that it is in the correct Layout Template, that it has been saved, and that it is actually used by the form you are testing.

This setting can only be switched on by an admin from the settings screen. There is deliberately no URL trigger for it, so a visitor cannot turn on debug logging without your approval.

What happens to my settings if I uninstall the plugin?

By default, nothing. Deleting the plugin leaves your saved settings in place, so if you install it again later, everything comes back exactly as it was. If you would genuinely like every setting removed for good, kindly tick Delete all plugin data on uninstall on the settings screen first, this is off by default and needs to be turned on deliberately.

후기

이 플러그인에 대한 평가가 없습니다.

기여자 & 개발자

“Mercury – Auto Height for Pardot Forms”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자
  • pragmasoftwares

자국어로 “Mercury – Auto Height for Pardot Forms”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록을 RSS로 구독하세요.

변경이력

1.0.0

  • Initial release.

기초

  • 버전 1.0.0
  • 최근 업데이트: 2일 전
  • 활성화된 설치 10보다 적음
  • 워드프레스 버전 6.0 또는 그 이상
  • 다음까지 시험됨: 7.1
  • PHP 버전 7.4 또는 그 이상
  • 언어
    English (US)
  • 태그:
    account engagementformsiframePardotsalesforce
  • 고급 보기

평점

아직 제출된 리뷰가 없습니다.

Your review

모든 리뷰 보기

기여자

  • pragmasoftwares

지원

할 말 있으신가요? 도움이 필요하신가요?

지원 포럼 보기

  • 소개
  • 뉴스
  • 호스팅
  • 개인정보
  • 쇼케이스
  • 테마
  • 플러그인
  • 패턴
  • 배우기
  • 지원
  • 개발자 도구
  • WordPress.tv ↗
  • 참여하기
  • 이벤트
  • 기부하기 ↗
  • Swag ↗
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

한국어

  • X(이전 트위터) 계정 방문하기
  • 블루스카이 계정 방문하기
  • 마스토돈 계정 방문하기
  • 스레드 계정 방문하기
  • 페이스북 페이지 방문하기
  • 인스타그램 계정 방문하기
  • LinkedIn 계정 방문하기
  • 틱톡 계정 방문하기
  • 유튜브 채널 방문하기
  • 텀블러 계정 방문하기
코드는 詩다
The WordPress® trademark is the intellectual property of the WordPress Foundation.