Forum Moderators: Robert Charlton & goodroi

Message Too Old, No Replies

Will Google Think Duplicate Content on a Web Page Is Keyword Spamming?

         

cdblaine

1:40 pm on Feb 22, 2019 (gmt 0)

5+ Year Member



I have a website for my small business, and hope to improve the search results position for 5 landing pages. I recently modified my website to make it responsive (mobile friendly). I was not able to use Bootstrap; the layout of the pages is a bit unusual and doesn't lend itself to the options Bootstrap provides.

Each landing page has 3 main div's - one for desktop, one for tablet, one for phone.
The text content displayed in each div is the same. Only one of the 3 div’s is visible; the user’s screen width determines which div is visible.

When I wrote the HTML for the page, I didn't want each div to have identical text. I worried that
when Google indexed the page it would see the same text 3 times, and would conclude that keyword spamming was occurring. So I put the text in just one div. And when the page loads jQuery copies the text from the first div to the other two div's.

But now I've learned that when Google indexes a page it looks at both the page that is served AND the page that is rendered. And in my case the page that is rendered - after it loads and the jQuery code is executed – contains duplicate text content in three div's. So perhaps my approach - having the served page contain just one div with text content – fails to help, because Google examines the rendered page, which has duplicate text content in three div's.

Here is the layout of one landing page, as served by the server.

<style>
@media (max-width: 600px) {
#desktop { display: none; }
#tablet { display: none; }
#phone { display: block; }
}
@media (min-width: 601px) and max-width: 900px) {
#desktop { display: none; }
#tablet { display: block; }
#phone { display: none; }
}
@media (min-width: 901px) {
#desktop { display: block; }
#tablet { display: none; }
#phone { display: none; }
}
</style>

<script>
$(document).ready(function(){
$("#tablet").html($("#desktop").html());
$("#phone").html($("#desktop").html());
});
</script>

<div id="desktop">
1000 words of text goes here.
</div>

<div id="tablet">
No text. jQuery will copy the text from div id="desktop" into here.
</div>

<div id="phone">
No text. jQuery will copy the text from div id="desktop" into here.
</div>

=====================================================================================

My question is: Will Google conclude that keyword spamming is occurring because of the duplicate content the rendered page contains, or will it realize that only one of the div's is visible at a time, and the duplicate content is there only to achieve a responsive design (and therefore won't penalize the page)?

Thank you!

JesterMagic

5:28 pm on Feb 22, 2019 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



It is hard to say for sure what Google likes. One way to get an indication is to use the Google Mobile Friendly tool and Google Pagespeed tool and see the score of the pages.

Personally I don't like to duplicate content on a page though as it can create longer downloads and/or increases rendering time. I have a similar type issue where I have duplicate menu. One is for desktop and one is mobile off canvas type.

ClosedForLunch

8:05 pm on Feb 22, 2019 (gmt 0)

5+ Year Member Top Contributors Of The Month



Instead of having three divs why not have just one div ( id="text" ) already containing the text and use jQuery to write a CSS class to the div to invoke the required styling for each device.

tangor

8:29 pm on Feb 22, 2019 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Wouldn't css viewport do the same thing and leave external scripting out of the equation?

@viewport {
width: device-width;
}

tangor

8:31 pm on Feb 22, 2019 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



OP asked about keyword scamming ... no, just duplicate (or dumb?) content. But if it is all on one page, is it really duplicate content? Most times that refers to multiple pages with the same (or nearly identical) content, and not just within a site, but across the web.

NickMNS

8:39 pm on Feb 22, 2019 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Forget about Google. This is simply a bad idea, in fact a very bad idea. Duplicating content as you have, means that you need to maintain the identical content in three different places. This may seem fine to you at first, and it may well be. Add a few more pages constructed similarly and the passage of time and you wont know what goes where and why and how and then you will screw things up and you wont be able to make odds and ends of what is on your pages.

I doubt Google really cares that it appears three times on the page, but it will make you page 3x time bigger and thus load much slower than it needs to. Page speed is a ranking factor, not a big one, but why make it slow if you can make fast.

What you have shown in your code example and what @closedForLunch's suggested avoids the duplication of content problem but it still makes for needlessly complex page that will likely load slower than it needs to due to the use of jQuery. If executed incorrectly it can cause your content to be hidden from Googlebot which is the last thing you want.

Google indexes a page it looks at both the page that is served AND the page that is rendered.

Yes that is true, but indexing is immediate and rendering is not. Rendering can occur weeks after indexing and may never occur. One can not depend on the rendered view. For sites that depend on JS, such Single Page Applications (SPA's) Google stronlgy recommends to have a system to render the pages server side for Googlebot to crawl.

I was not able to use Bootstrap; the layout of the pages is a bit unusual and doesn't lend itself to the options Bootstrap provides.

I have my doubts that this actually the case, I have made many a webpages using Bootstrap some very complex and all responsive. You can do pretty much anything you want, however the result is usually a bloated code nightmare not much better than the situation you describe. My suggestion is to use a css flexbox, it is used extensively in Bootstrap 4, but by using it directly you can avoid all the useless bloat. [w3schools.com...]

I suggest that you generically explain what you are trying to achieve and I and others will gladly help you come to a solution that works and that is simple.

btw: Welcome to WebmasterWorld.

RedBar

8:59 pm on Feb 22, 2019 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



@cdblaine

IMHO I'm sorry to say however you have created yourself a nightmare scenario with your solution. There are plenty of excellent free html5 templates available which will do anything you need, once you've learnt some html5 you'll wonder why you ever bothered with what you did.

JesterMagic

9:44 pm on Feb 22, 2019 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I am sure he gave a simple example of what he is dealing with in regards to his template. I assume he has some sort of menu, header and probably a side column as is the norm for desktop. In reality he approached being responsive wrong. The content is not what moves but the stuff around the content (header, menu, etc..). In the different media view ports you should control how the menu looks where it is, etc..

cdblaine

11:20 pm on Feb 22, 2019 (gmt 0)

5+ Year Member



I want to thank everyone for their comments, suggestions, ideas. I am brand new to this forum
and don't see an icon or button that would allow me to vote on the replies. I would appreciate
information on how to vote.

Thank you.

tangor

12:39 am on Feb 23, 2019 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Top of each message is a LIKE VOTES: ... click like, adds +1. Click it again, takes it away. :)

New kids on the block are always welcome. Please bear in mind there are as many opinions as there are members, and some of us (like me) a a bit crusty and curmudgeonly.

MEANWHILE, take all the comments above and rework your css and your html. Come back if you have a problem (with your best code, remembering to use example.com instead of your website) and you will get more help than you can shake a stick at. Promise.