Landing Page Toggle Switch For No Index No Follow

It would save a ton of time if there were a button or toggle to automatically "disallow" thank you pages and files instead of having to go to Content Settings.


I would like to flip a switch and HubSpot know to No Index & No Follow that thank You page as well as what PDf is attached and auto hide that from search engine results.


It would make it so much easier and eliminate just one more step! 

HubSpot updates
2 Replies
New Contributor

This would be great! Save time and be so much less messy than using the content settings tool! 

Top Contributor

Hello @GeorgeBThomas and @kendallguinn , 


This is a really good idea indeed!


But I have a workaround for you in the meantime


Here's how to add a module to all your HubSpot pages so you can manage meta name robots tag for SEO and set it as you wish between, index, follow, no index and no follow.


Here is what it would look like in HubSpot:




This module set this code in your HTML page. Default is index, follow of course.


Screenshot 2019-11-14 at 10.46.51 AM.png


Here are the steps to install this module for all your HubSpot pages:


1- Go to your page's settings in HubSpot:


Settings > Pages > Templates


Screenshot 2019-11-14 at 10.37.06 AM.png


2-Copy/paste the following code into the site header HTML section



<!-- Index & Follow Selector for SEO - created with love by Louis Chausse from -->

{% choice "index_follow_selector" label='Index Follow Selector for SEO by', value='indexfollow', choices='indexfollow, noindexfollow, indexnofollow, noindexnofollow' export_to_template_context=True %}
{% if widget_data.index_follow_selector.value == 'noindexfollow' %}

<meta name="robots" content="noindex, follow">

{% elif widget_data.index_follow_selector.value == 'indexnofollow' %}

<meta name="robots" content="index, nofollow">
{% elif widget_data.index_follow_selector.value == 'noindexnofollow' %}
<meta name="robots" content="noindex, nofollow">

{% else %}

<meta name="robots" content="index, follow">
{% endif %} 

3- Go to any HubSpot pages and open the left module panel and you should now see the "Index follow selector for SEO by" module


I hope it helps!


Remember that you should also edit your robots.txt file for better control over your site's indexing. Here's an article about managing robots.txt file in HubSpot