How to Add Hyperlink in Tooltip in Tableau

Cody Schneider8 min read

Want to make your Tableau dashboards more interactive and useful? Adding a hyperlink directly into a tooltip is a fantastic way to give your audience a direct path to more information without cluttering your view. This article will show you exactly how to add both static and dynamic hyperlinks to your tooltips, turning your visualizations into gateways for deeper exploration.

GraphedGraphed

Build AI Agents for Marketing

Build virtual employees that run your go to market. Connect your data sources, deploy autonomous agents, and grow your company.

Watch Graphed demo video

Why Is Adding Hyperlinks to Tooltips a Good Idea?

At its core, a good dashboard answers questions. But sometimes, the best answer is a link to an even more detailed resource. Adding hyperlinks to your tooltips transforms a passive chart into an active, helpful tool. It's a simple feature that significantly boosts the user experience.

Imagine these scenarios:

  • E-commerce Dashboard: You have a chart showing your top-selling products. By hovering over a product, a user can click a link in the tooltip that takes them directly to that item's page on your Shopify store. This allows them to quickly see product details, check inventory, or view customer reviews.
  • Sales Performance Report: You’re looking at a bar chart of sales performance by representative. A hyperlink in each tooltip could lead directly to that specific rep's record in Salesforce, showing their entire pipeline and activity history.
  • Marketing Campaign Analysis: Your dashboard displays key metrics for various ad campaigns. A tooltip link could take your team straight to the live campaign in Google Ads or Facebook Ads Manager for immediate adjustments or further analysis.

In each case, the hyperlink provides immediate, relevant context. It bridges the gap between seeing an insight ("this product is selling well") and taking an action ("let's see why and order more").

The Key: Understanding Tableau URL Actions

The "magic" behind adding clickable links in tooltips is a feature in Tableau called URL Actions. An Action is an interactive element that you can add to your views. When a user interacts with a mark on your chart (by hovering, selecting, or clicking a menu item), an Action can be triggered.

A URL Action, specifically, allows you to create a hyperlink to a web page, file, or other web-based resource outside of Tableau. By configuring this Action to run from a tooltip menu, you can create the clickable link we're aiming for. It's much simpler than it sounds, and we'll walk through it step-by-step.

Free PDF · the crash course

AI Agents for Marketing Crash Course

Learn how to deploy AI marketing agents across your go-to-market — the best tools, prompts, and workflows to turn your data into autonomous execution without writing code.

Method 1: The Simple (But Limited) Approach

The quickest way to add a URL to a tooltip is to simply type it directly into the tooltip editor. However, this method has a major limitation: the link is static and won't be clickable. The user will have to manually copy and paste it into their browser. While not ideal, it's worth knowing how it works for situations where you just need to display a URL for reference.

  1. Open your Tableau workbook and navigate to the worksheet you want to edit.
  2. On the Marks card, click on Tooltip. This will open the Edit Tooltip window.
  3. In the text editor, you can type the full URL, for example, https://www.yourcompany.com.
  4. Click OK.

Now, when you hover over a mark, the tooltip will display the URL as plain text. This isn't interactive, but it gets the information across. For true interactivity, we need to use a URL Action.

Method 2: The Right Way - Creating a Dynamic URL Action

This is where things get powerful. A URL Action lets you create dynamic links that change based on the data point you are interacting with. For example, the link can automatically pull in the product name, employee ID, or campaign handle from your data.

Let’s walk through setting one up. Imagine we have a bar chart showing website traffic from different marketing campaigns. We want to create a link that performs a Google search for each campaign name when clicked.

Step 1: Open the Actions Menu

With your worksheet active, go to the top menu bar and click Worksheet > Actions.... If you're working on a dashboard, you would click Dashboard > Actions.... This will open the Actions window.

Step 2: Add a URL Action

In the Actions window, click the Add Action > button and select URL... from the dropdown menu. This will bring up the Add URL Action configuration window.

GraphedGraphed

Build AI Agents for Marketing

Build virtual employees that run your go to market. Connect your data sources, deploy autonomous agents, and grow your company.

Watch Graphed demo video

Step 3: Configure the URL Action

This dialogue box is where you define exactly how your hyperlink will work. Let's break down the important settings:

Name: This is what users will see as the clickable text in the tooltip. Be descriptive! Instead of leaving it as "Hyperlink1," change it to something intuitive like "Search Campaign on Google." Whatever you type here becomes your link text.

Source Sheets: Make sure the correct worksheet (or worksheets) are selected. This tells Tableau where the action should be active.

Run action on: This is the most critical setting for this purpose. Change it from "Select" to Menu. This ensures the link appears as a clickable menu item directly within the tooltip upon hovering - exactly what we want.

Note: If you choose "Select," the user would have to first click the mark (e.g., a bar in your chart) and the action would execute then. "Hover" would trigger the action immediately on mouseover, which can be disruptive. "Menu" is the best option for this use case.

URL: Here, you will construct the dynamic link. You can type a static URL, but the real power comes from embedding field values from your data.

  • To add a field value, click the arrow icon to the right of the URL text box. This will display a list of all available fields in your data source.
  • For our example, we want to create a Google search link. The base URL for a Google search is http://www.google.com/search?q=.
  • After the equals sign, we will insert our campaign name field. So, we’ll select the Campaign Name field from the dropdown list.

Your final URL will look something like this: http://www.google.com/search?q=<Campaign Name>

Step 4: Test Your New Hyperlink

That's it! Go back to your worksheet and hover over one of the marks. You should now see the tooltip appear, and at the bottom, there will be a blue, clickable hyperlink with the text you entered in the "Name" field.

Clicking the "Search Campaign on Google" link for the "Summer Sale 2024" campaign will open a new browser tab with Google results for "Summer Sale 2024." You've successfully created an interactive, data-driven hyperlink!

Free PDF · the crash course

AI Agents for Marketing Crash Course

Learn how to deploy AI marketing agents across your go-to-market — the best tools, prompts, and workflows to turn your data into autonomous execution without writing code.

Practical Use Cases for Business Dashboards

The Google Search example is great for learning, but here are a few more business-focused ideas to inspire you:

  • Internal Wiki or SharePoint: If you have internal documentation on projects, acronyms, or team responsibilities, you can link directly to those pages. Create a URL like http://your-internal-wiki/<Project Code>.
  • CRM Profiles: For a list of customer accounts, you could build a link that goes directly to their contact page in your CRM. The URL might look like https://your-hubspot.com/contacts/<Contact ID>.
  • Transactional Email Systems: Link from an email campaign name to its performance report in a tool like Klaviyo or Mailchimp. The structure could be https://klaviyo.com/campaigns/<Campaign ID>.

The key is to think about the user’s next logical question. If they see a data point, what additional information would help them most? Use a URL action to provide a direct path to the answer.

Troubleshooting Common Problems

Sometimes things don't work on the first try. Here are a few common issues and how to fix them:

The link doesn't seem clickable or doesn't appear at all.

The most common cause is the "Run action on:" setting. Double-check your URL Action and make sure it is set to Menu. If it's set to "Select," you'll only see the action execute after clicking the mark.

My URL is broken or goes to a 404 error page.

This is almost always a typo in the URL itself. Go back into your URL Action configuration and carefully check the following:

  • Make sure the static part of the URL is correct (e.g., https://, subdomain, etc.).
  • Confirm that the field name you inserted (like <Campaign Name>) is spelled exactly as it appears in your data source, including capitalization and spacing.
  • Some web applications require URL encoding for spaces or special characters. If your field names contain spaces (e.g., "Project A"), you may need to ensure they are encoded properly as %20 for the link to work. Tableau usually handles this automatically, but it's something to check with more complex URLs.

Final Thoughts

Integrating hyperlinks into your tooltips is a straightforward way to elevate your Tableau dashboards from static reports to dynamic, interactive tools. By using URL Actions, you can provide users with invaluable context and shortcuts, enabling them to explore data and find answers more efficiently.

Creating these interactive elements in Tableau is powerful, but it's one part of a reporting process that can still feel slow, especially when you need to pull data from many different marketing and sales platforms. For our own analysis, we often struggled with the first step: just getting all our data from Google Analytics, Shopify, Facebook Ads, and Salesforce into one place. That's why we created Graphed. We wanted a tool that connects to all our data sources in a few clicks and lets us use natural language to ask questions, create reports, and build dashboards in seconds, so we can focus on acting on the insights, not just setting them up.

Related Articles