Sorry, we don't support your browser.  Install a modern browser
This post is closed.

Provide an Easy Way to No Index Booking Site#1462

This is VERY IMPORTANT. The recent improvements to Trafft’s SEO settings are good: I can confirm that Trafft booking sites do rank on Google for targeted keywords.

However, it’s a HUGE PROBLEM for those who are trying to optimize the primary website for the same keywords and using the embedded booking forms. This could canabalize the SEO of the primary site, to have a Trafft booking site ranking.

It’s not enough to simply just not use the page title or meta description within Trafft, as the booking site could still rank for a branded keyword or a location.

In an actual client case, we want to use the primary website for SEO and embed Trafft booking forms on that. At the same time, we do want to use the Trafft booking site, but only for PPC or for existing customers, etc. In other words, we don’t want the Trafft site to rank at all.

By allowing us to no index the booking site or optimize it for SEO, you provide a way for users to use Trafft according to their needs.

@Marija Maksimovic is there a bit of code I can use to do this now? I tried using custom code from ChatGPT to do it 😆 but I’m no coder lol and it didn’t work.

2 years ago

Hi Daniel,
If you paste code below in Custom JS field you will be able to achive that

// Create a new meta element
var metaTag = document.createElement('meta');

// Set attributes for the meta element
metaTag.setAttribute('name', 'robots');
metaTag.setAttribute('content', 'noindex');

// Append the meta element to the head of the document
document.head.appendChild(metaTag);
2 years ago
1
Changed the status to
Completed
2 years ago

@Nikola Mijajlovic hi and thank you for that. Sorry it took so long to respond to this. I pasted the above code into the custom JS section in Trafft, but it doesn’t work: the site still shows up as indexable when testing with SEO browser extension tool.

2 years ago
1
?

@Daniel ODonnell add <script> tags around it. It works.

<script>
// Create a new meta element
var metaTag = document.createElement('meta');

// Set attributes for the meta element
metaTag.setAttribute('name', 'robots');
metaTag.setAttribute('content', 'noindex');

// Append the meta element to the head of the document
document.head.appendChild(metaTag);
</script>
2 years ago
?

It should really be default no-index or very least a toggle!

2 years ago