Mobile app version of vmapp.org
Login or Join
Odierno851

: Can I randomly change the page title for users while showing search engines a static title? Let's say I wanted to make a website or series of pages where the title (or at least what appears

@Odierno851

Posted in: #Javascript #Seo #Title

Let's say I wanted to make a website or series of pages where the title (or at least what appears on your browser's tab) alternates randomly each time it's loaded - just for giggles. I have a bank of random messages, for example:


(1) Donald Trump's spicy meme farm.

(2) Are you feeling it now Mr. Krabs?

(3) Put some respeck on the name.


Is there any way I can spoof a page's title during "real" browsing sessions without overwriting the actual title that a crawler would use for SEO?

I have tried JavaScript, since I assume most bots aren't going to support it. (Or has Google started doing that now?)

I've been loading a new message into an array and outputting it like so -

document.title = "This is the new page title.";




It seems to do what I want it to, but I have no idea what the ramifications will be as I go.

My inspiration was the question How to dynamically change a web page's title? and basically I'm trying to figure out if the top answer will hold true long-term and I won't be shooting myself in the foot if I launched a site like that.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Odierno851

1 Comments

Sorted by latest first Latest Oldest Best

 

@Ravi8258870

Yes, Google has started supporting javascript in their bots, this is due to the increasing popularity of javascript in the web and frameworks like Angularjs.

Taking the bigger picture, the web isn't just about urls, it is about content and user experience, every day they improve their algorithm to make it better with these goals in mind, so one hack that could work today to trick bots would be detected in the future and your site is gone.

If the content of your webpage differs from what the user sees, they will detect it, the user experience will be awful and your website will be very low in SERPs.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme