Hot answers tagged

5

There are a number of reasons why Google Analytics may not be showing the traffic your database shows... Your Code Is Positioned Poorly Your GA tracking code should be in the head section of the document, some webmasters put it in the bottom to improve load times however this can sometimes mean that the user has come to your site and then bounced right ...


2

You have no control over the headers of the Google Analytics javascript file, as it is not served by your server. The .htaccess rules you mentioned can only apply to your own files. You'll just have to ignore that particular error, and hope Google make the file a bit more cache friendly in future.


1

I've started using the following code: RewriteCond %{HTTP_REFERER} ^http://.*[bad_referrer]\.com/ [NC] RewriteRule ^(.*)$ – [F,L] This looks for the referrer, in your case semalt.com, and creates a bad request. If you want to add more conditions use [NC,OR] until you get to the last item. If mod_rewrite isn't available, this technique will not work. You ...


1

This isn't a direct answer to your question but to your problem: Try a hostname filter on your Analytics account instead. Filter only for your domain. The only situation in which you'll get views without your domain being the hostname is if you're serving content on other domains - such as via an iFrame. When it comes to crawlers, there's many techniques. ...


1

@TC Dani, Please note I have no personal experience with this issue yet. I have a project coming up that will be multi-lingual... A quick google search brought me to this discussion: Here their discussion indicates you will need two different tracking codes and you could implement this as follows, noting the code is in PHP format: <script> <?php ...



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