Independent and intellectual thoughts ranging from China, SEO, Analytics, and other international topics
4 Sep
Google Analytics provides those with some backend knowledge (in this case JavaScript) to modify any potential deficiencies of the web analytics program. One of the things that I’ve noticed is that sometimes Google Analytics will leave out some major international search engines such as Naver (the largest search engine in Korea) and throw it into referrals.
Fortunately, you can customize the script for having multiple search engines via the way the GA Experts and Yoast has done. I decided that it would be far more useful if I could update the script and remove unnecessary content that would be useful for both myself and my clients.
Below I have added the script and would love any help in adding additional major international search engines by country into the international search engine script.
Some things to keep in mind:
To add the script into your site I believe the correct way is to show it on the backend is as follows:
<script type=”text/javascript”>
var gaJsHost = ((”https:” == document.location.protocol) ? “https://ssl.” : “http://www.”);
document.write(unescape(”%3Cscript src=’” + gaJsHost + “google-analytics.com/ga.js’ type=’text/javascript’%3E%3C/script%3E”));
</script>
<script type=”text/javascript” src=”intl_custom_se.js”></script>
<script type=”text/javascript”>
var pageTracker = _gat._getTracker(”UA-XXXXX-X”);
get_intl_custom_se();
pageTracker._initData();
pageTracker._trackPageview();
</script>