Search code examples
javascripthtmlwidgetaddthis

A random '#.XXXXXXXXXXX' string is added to my URL when I use the AddThis code?


I have added "AddThis" to my website and this is the code I have used :

        <!-- AddThis Button BEGIN -->
                <a class="addthis_button_facebook_like" addthis:url="http://facebook.com/MySpills" fb:like:layout="button_count"></a>
                <a class="addthis_button_tweet"></a>
                <a class="addthis_button_google_plusone" g:plusone:size="medium"></a>
            <script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>
            <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4fabf4922f71c398"></script>
        <!-- AddThis Button END -->

Now for some reason, every time I go to a page this happens to the URL:

http://domain/page#.T7FTDJ8ti28

The #.T7FTDJ8ti28 changes every time I refresh the page, and I am concerned that this might confuse Google or other search engines. It also just doesn't look good to have it in the URL, so how can I get rid of it?


Solution

  • That is commonly calling: a HASH and it serves to several things.

    In AddThis context, it serves to track links in a way so they know what is a direct link and a shared link.

    All is explained in their analytics article.

    This will not have any impact on Search Engine Optimization (SEO) as the rule is to track the regular link part and not the hashed part.


    If, by the way, you want to know more on how the hash part of a web address is used for, the link below is a good start point article to read.

    Are We Breaking the Web With a Hash and a Bang?