2014年12月18日 星期四
[Tool]測試網站是否被萬里長城GFW 封鎖 ??
Checks whether a site is blocked by the Great Firewall of China.
http://www.viewdns.info/chinesefirewall/
2014年11月22日 星期六
使用google analytics統計ajax內容重載
1.在js中加入
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXXX']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
2.在ajax function的success中加入
_gaq.push(['_setAccount', 'UA-XXXXXX']);
_gaq.push(['_trackPageview']);
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXXX']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
2.在ajax function的success中加入
_gaq.push(['_setAccount', 'UA-XXXXXX']);
_gaq.push(['_trackPageview']);
標籤:
javascript,
jquery,
SEO
2014年11月19日 星期三
mobile-friendly pages (defined by Google)
Google 將在行動裝置搜尋結果,加入mobile-friendly標籤。
符合以下條件會被加入標籤:
Google測試:
Mobile-Friendly Test
資料來源:
Helping users find mobile-friendly pages
符合以下條件會被加入標籤:
- Avoids software that is not common on mobile devices, like Flash
- Uses text that is readable without zooming
- Sizes content to the screen so users don't have to scroll horizontally or zoom
- Places links far enough apart so that the correct one can be easily tapped
Google測試:
Mobile-Friendly Test
資料來源:
Helping users find mobile-friendly pages
訂閱:
文章 (Atom)