WordPress Personal Plan blocking iframe embeds from external sources

I’m using a WordPress Personal Plan and trying to embed an analytics dashboard into one of my pages. Here’s the embed code I’m working with:

<iframe width="800" height="450" src="https://datastudio.google.com/embed/reporting/2BSGDlSwa1InU_qMLmU9opxKmJOT99faa/page/mSfu" frameborder="0" style="border:0" allowfullscreen></iframe>

The weird thing is that when I’m in the WordPress editor, the dashboard shows up perfectly in the HTML preview. But as soon as I switch to the actual page preview or publish the page, the iframe completely disappears. I tested the same embed code on CodePen and it works fine there, so I know the iframe itself isn’t broken.

I also tried using WordPress shortcodes like [embed] but got the same result. It seems like WordPress might be stripping out iframes when the page goes live. Has anyone else run into this issue with Personal Plan accounts? Is there a workaround or do I need to upgrade my plan to get iframe support?

WordPress Personal Plan iframe blocking is a nightmare I’ve hit so many times. The editor preview straight up lies about what’ll actually work.

Don’t waste time with different blocks or shortcodes - they all fail the same way.

What works: skip the iframe fight entirely. Pull your analytics data directly from Google Analytics API and show it as regular WordPress content.

I’ve built this for several projects. Data updates automatically, looks way better than Google’s ugly default styling, and works on any WordPress plan. You can style the charts however you want.

Live data, no iframe mess, no upgrade fees. Set it once and forget it.

Latenode has Google Analytics and WordPress connectors ready to go - makes the whole thing dead simple. Beats being stuck with iframe limits.

WordPress Personal Plan blocks iframes for security reasons - that’s why your embed vanishes after you publish even though it looks fine in the preview. Happened to me too the first time. Before upgrading, check if Google Data Studio has any WordPress plugins or widgets that work around Personal Plan limits. Some services offer different embedding methods that get past WordPress restrictions. You could also try hosting the dashboard on a subdomain or separate page outside WordPress, then just link to it from your main site. You’d keep all the interactive features without hitting WordPress’s iframe blocks. If the dashboard is crucial and these workarounds don’t work for you, then yeah, you’ll need to upgrade to Business Plan. Really comes down to whether embedded analytics are worth the extra cost.

Had the same issue with a client site last year. WordPress Personal Plan blocks iframes on the frontend even though they show up fine in the editor preview - super misleading. I found a few workarounds though. First, try pasting just the URL without iframe tags. WordPress can sometimes auto-embed stuff through oEmbed. For Google Data Studio specifically, I’d skip embedding entirely. Create a shareable link and use a button or text link instead. You could also take periodic screenshots of your dashboard and link those to the full version. Not as smooth, but it works on Personal Plan. Honestly though, if analytics integration is crucial for your site, upgrading to Business is your cleanest bet.

Been there with the same headaches. WordPress Personal Plan blocks iframes for security - super annoying that the editor preview lies to you about it working.

Skip the upgrade. Set up automation to pull your analytics data and display it however you want. No iframe restrictions.

I’ve done this exact thing before. Pull data from Google Analytics API, format it, and push it to WordPress as regular content. Updates automatically, looks however you want, works on any plan.

Way more flexible than Google’s dashboard styling. Add your own branding and make it match your site.

Latenode makes this straightforward with their Google Analytics and WordPress integrations. Set it once, forget it.

totally feel ya! i had the same prob with my embeds too. its annoying how the editor shows it but then poof, gone on the page. upgrading to business plan is the best fix if you want to keep the iframes.

ugh this wordpress iframe thing is such a pain! try using the ‘custom html’ block instead of just pasting the code directly. sometimes that bypasses the stripping issue on personal plans.

Indeed, the limitation you’re facing with the WordPress Personal plan is a common issue due to security restrictions. While it’s frustrating that the iframe works in the editor but not on the live site, it’s a measure to prevent potential vulnerabilities. I encountered a similar situation when trying to embed a chart. The options available mainly involve either upgrading to the Business plan, which allows for full embed capabilities, or finding alternative solutions. You might consider using static images of your analytics, though it would mean sacrificing interactivity. If your dashboard is critical, the upgrade might be worthwhile.