Uncategorized

Why can’t I embed a Tableau dashboard on WordPress?

After you’ve uploaded your Tableau dashboard to Tableau Public, you might have had plans to upload it to your WordPress site. You try to paste the code you found under your dashboard (Embed code), into a ‘custom HTML block’ in your WordPress post.

This is an example of what your post will look like in WordPress

But once you actually press ‘publish’ and look at your website, it looks like this:

What it looks like when you post the embedded Tableau Public code

Sure, your dashboard is visible, but some code spilled onto your website for everyone to see and your dashboard isn’t interactive at all.

The only reason I have been able to find is that only WordPress sites with a ‘Business Plan’ are allowed to embed Javascript into their websites. See this WordPress documentation about code.

WordPress states the following on using Javascript:

JavaScript may be used with sites on our Business plan with plugins installed. For security reasons, sites on the Premium Plan and below are not allowed to post JavaScript.

This is because JavaScript can be used for malicious purposes. As an example, JavaScript has taken sites such as MySpace.com and LiveJournal offline in the past. The security of all WordPress.com sites is a top priority for us, and until we can guarantee scripting languages will not be harmful, they will not be permitted.

JavaScript from trusted partners, such as YouTube and Google Video, is converted into a WordPress shortcode when a post is saved.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s