New answers tagged

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. ...


0

I think that, if you just want to be able to see the events separately for each language version, the best approach would be to create one view in Google Analytics for each language. You can do this by adding a filter to each view, so it would register only the traffic for the proper ccTLD of your project. You will have to filter by hostname. Then, each ...


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 ...


0

Always put some query string attached to social posts like "utm_cource", "utm_campaign" and whenever user visit site, assign random identifier in session and using all these data, you can accurately track conversions from social sources. example: https://www.example.com/2016/06/04/how-to-track-social-media-campaign?utm_source=linkedin&utm_campaign=promo


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 ...



Top 50 recent answers are included