Tag Info

Hot answers tagged

2

If Google isn't indexing words contained within scripts, then the words need to be added to the HTML where Googlebot does pick up on them. So that all the data isn't duplicated, it can be removed from the script. The JavaScript can pull the text out of the HTML document and use it. The text in the page can be hidden via CSS. This should not be ...


1

This should not result in any spam penalties from Google. You are not creating duplicate content - the post still exists only once on the site - so the only issue will be how Google recalculates the page based on the republished content.


1

Instead of using just the canonical tag on both pages, use the annotations for desktop and mobile URLs. On the desktop page, add: <link rel="alternate" media="only screen and (max-width: 640px)" href="http://example.com/?mobile=1" > and on the mobile page, add the canonical tag: <link rel="canonical" href="http://www.example.com/" > ...


1

Google does not reliably index text contained in JavaScript or CSS, even if it is visible to users on the page. I found out about the JavaScript part recently when I asked How can I get Google to index content that is written into the page with JavaScript? I also use text in css before on that site. If I search for the text that is in the CSS, Google ...



Only top voted, non community-wiki answers of a minimum length are eligible