Forum Moderators: martinibuster
[ADSENSE AD HERE]
Contents:
<a href="#section1">Section 1</a><br />
<a href="#section2">Section 2</a><br />
<a href="#section3">Section 3</a><br />
<a href="#section4">Section 4</a><br />
[ADSENSE AD HERE]
...
<a id="section1">This is Section 1</a>
blah blah
<a id="section2">This is Section 2</a>
blah blah
<a id="section3">This is Section 3</a>
blah blah
<a id="section4">This is Section 4</a>
blah blah Most of my visitors come from the Google search results, directly to the internal links that are shown in such search results:
http://example.com/mypage#section3
I wondered if Google could penalize me for this technique (because they understand I'm changing the contents somehow).
how are you "changing the contents somehow"?
(i assume using javascript...)
this means the http://example.com/mypage document is requested from the server and rendered by the browser and then the browser tries to resolve/find the #section3 document fragment identifier.
That is not how I read it.
The link is on the http://example.com/mypage and clicking it simply scrolls to the fragment identified by the fragment identifier, no JS just standard html and no requests.
Most of my visitors come from the Google search results, directly to the internal links that are shown in such search results:
http://example.com/mypage#section3
Sometimes developers decide to use fragments with JavaScript to load different content than what is on the page without the fragment. That is not what fragments are meant for and won't work with Googlebot.
If fragment URLs "#" sometimes called hashbangs is being used than that is a problem, not in terms of AdSense but in terms of Google search, because it is obsolete and not supported by Googlebot.
[edited by: phranque at 5:55 am (utc) on Mar 2, 2022]
you may be thinking of hashbang (#!) urls,
won't work with Googlebot.