ããã«ã¡ã¯ãããããã¡ãã§ãã
ä½ããGoogle Adsenseåºåãå©ç¨ãã¦ãã人ã®ä¸ãããAdsenseåºåã®åæ¢æªç½®ãåãã人ãç¶åºãã¦ããããã§ããããããæ®æ®µç¢ºèªãã¦ãããã¼ã¸ã ãã§ã
- ã°ã¼ã°ã«ã¢ãã»ã³ã¹åæ¢ã¨ãã¤ã«ããªããºãè¬Â
- 寿å½ã縮ãï¼ã°ã¼ã°ã«ã¢ãã»ã³ã¹é ä¿¡åæ¢ãå°ããã¼ããæãããã¨ã
- ã°ã¼ã°ã«ã¢ãã»ã³ã¹ãåæ¢ãããï¼ ã¦ã¼ã¶ã¼ã«å ±é ¬ãæä¾ãã¦èªå°ããã³ã³ãã³ãã£ã¦ä½ãï¼
ãã¼ãããªãã ãã¯ã¦ãªããã¬ã¼ã®è¦æ¬å¸ãåºæ¥ããã ãã¯ã¦ãªããã°ã®ãããã¯ã¹ã«ãå ¥ã£ãããã§ããã
ãã¦GoogleAdsenseã§ã¯ãè¦ç´ã«ãã£ã¦ããããªãã¼ã¸ã«åºåè¼ãã¡ããã¡ãããã¨ãããã¨ãã«ã¼ã«ã¨ãã¦æ±ºã¾ã£ã¦ãã¾ããä»åã¯ãGoogle Analyticsã®ã¹ã¯ãªã¼ã³ã·ã§ãããã¢ãããã¼ããããã¨ãåå ï¼ã¨ãã説ãããããã§ããããããªè¦ç´ãã£ãããªãã¨æãèªã¿ãªããã¦ã¿ãã¨ãããã®é¨åã該å½ããã®ã§ã¯ï¼ãã¨ããé¨åããã¡ãã
å ±é ¬ããã°ã©ã ãæä¾ãããµã¤ãï¼ãå ±é ¬æä¾ããµã¤ãï¼
ããªã·ã¼ã«ã¤ãã¦
ãå ±é ¬æä¾ããµã¤ãã¨ã¯ãåºåã®ã¯ãªãã¯ãã¦ã§ã ãµã¼ãã£ã³ãã¡ã¼ã«ã®è³¼èªã¨ãã£ãä½æ¥ãè¡ã£ãã¦ã¼ã¶ã¼ã«å¯¾ãã¦æ¯æããå ±é ¬ãç´æãããµã¤ãã®ãã¨ã§ãããã®ãããªãã¼ã¸ã¸ã® Google åºåã®æ²è¼ã¯ãç¡å¹ãªè¡¨ç¤ºåæ°ãã¯ãªãã¯ã®çºçã«ã¤ãªãããã¨ããããããç¦æ¢ããã¦ãã¾ããåæ§ã«ãå ±é ¬ãæä¾ãããµã¼ãã¹ã«ã¢ã¯ã»ã¹ãèªå°ãããããããããµã¼ãã¹ãç´¹ä»ããããããã¨ã主ãªç®çã¨ãããµã¤ãã§ã¯ãåºåæ²è¼ã許å¯ããã¾ããã
 ãã¼ãããã£ã±ããä½æ Google Analyticsã®ã¹ã¯ãªã¼ã³ã·ã§ããããã¡ãªã®ãã¯ããåããã¾ãããï¼ç¬ï¼ãã¨ã«ãããGoogleããããæ©å«ãæãã¦ããã¨ããã®ã§ããã°ããã®ãã¼ã¸ã«åºåãè¼ãããã¨ã¯æ§ããã»ããè¯ãããã§ãã
ã§ãåºåã¤ããããããï¼
 ã¯ã¦ãªããã°ã«Google Adsenseã®åºåãåºãã¦ãã人ãã¡ã£ã¦ãåºæ¬çã«å ¨ã¦ã®ãã¼ã¸ã«èªåçã«åºåãæ¿å ¥ãããããã«ããã¶ã¤ã³ãã«ã¹ã¿ãã¤ãºãã¦ãããã¨ãå¤ããã§ãããããããããã¡ãã®è¨äºã§ãç´¹ä»ãããã¾ããããèªåçã«åºåã表示ãã¦ããããã«è¨å®ãã¦ãã¾ãã
å¥ã«ããã£ã¡ãè¨äºããã¤ãªã¬ã³ã¹ãªè¨äºãæ¸ããã¨ã«èå³ã¯æãã¾ããããä½æ ãããé ããNGé ç®ã«å ¥ã£ã¦ãããã§ããããããã§ãããã¯ããç¹å®ã®è¨äºã ãAdsenseåºåã表示ãããªãããããã¶ã¤ã³ã«ç´°å·¥ããã¦ãã¾ããåèã«ããã®ã¯ãã¡ãã
 ãã®ããããã£ãã説æããã¨ã
- ç¹å®ã®URLã®æã ãçºåããJavaScriptãç¨æã
- åScriptãæå¹ã«ãªã£ãéã«ã¯ãGoogleAdsenseã®å½ä»¤ãç¡å¹åããã
ã¨ããæãã§ãã便å©ã«ä½¿ããã¦é ãã¦ãã¾ããã
ã¿ã°ä¸ã¤ã§åºåãªã³ãªãã§ããã楽ãããªãï¼
ã²ã¨ã¤ä¸æºãããã¾ãããããã¯ãã対象ã¨ãªããã¼ã¸ãå¢ãããã³ããªã¹ãã«è¿½å ããªããã°ãªããªããã¨ããç¹ããããããããPCãµã¤ãçã¨ã¹ããçã®ï¼ç®æä¿®æ£ããªããã°ãªããªãã®ã§ãä»ã¯æ°ãå°ãªãã®ã§ããã®ã§ãããå°æ¥çã«å¢ãã¦ããæãèããã¨çµæ§é¢åããã(^_^;)
ã¨ããããã§ãã¡ãã£ã¨æ¸ããªããã¦è¦ã¾ããã½(=´â½`=)ï¾
ã¾ãã¯ããã©ãããã®ãã¼ã¸ãè¦ã¦ãå¿ è¦ãªè¨å®ããã¦ããã¦ãã ãããããã¦æå¾ã«ãã6.追å ããJavaScriptã³ã¼ããã®é¨åã ããä¸è¨ã«ç½®ãæãã¾ããPCã®å ´åã¨ãã¹ããã®å ´åã§ãã³ã¼ããéãã¾ãã®ã§æ³¨æãã¦ãã ããã
PCç
<script>
/*
* AdSense Filter v1.0.0
* Date: 2014-12-10
* Copyright (c) 2014 http://hapilaki.hateblo.jp/
* Released under the MIT license:
* http://opensource.org/licenses/mit-license.php
*/
noAdsTag="åºåä¸è¦"; //åºåãè¨ç½®ããªãã¿ã°ãæå®
var pageTags=document.getElementsByTagName("meta");
function adsFilter(){
for(var i=0;i<pageTags.length;i++){
if( ("article:tag"==pageTags[i].getAttribute("property")) && (noAdsTag == pageTags[i].getAttribute("content") ) ){
document.write('<!--');
break;
}
}
}
adsFilter();
</script>
ã¹ããç
<script>
/*
* AdSense Filter v1.0.0
* Date: 2014-12-10
* Copyright (c) 2014 http://hapilaki.hateblo.jp/
* Released under the MIT license:
* http://opensource.org/licenses/mit-license.php
*/
noAdsTag="åºåä¸è¦"; //åºåãè¨ç½®ããªãã¿ã°ãæå®
var pageTag=document.getElementById("body");
function adsFilter(){
if(pageTag.getAttribute("class").indexOf("category-"+noAdsTag)!=-1){
document.write('<!--');
}
}
adsFilter();
</script>
ããã§ãè¨äºã«ãåºåä¸è¦ãã¨ããã¿ã°ãä»ããæã ããAdsenseåºåã表示ãããªãããã«ãªãã¾ãã
種æãã
ãã¯ã¦ãªããã°ãã§ã¯ãPCçã®å ´åãè¨äºã®ã«ãã´ãªã示ãæ å ±ã¨ãã¦ãpropertyå±æ§ãarticle:tagã¨æå®ãããmetaã¿ã°ã«ãcontentã¨ããå±æ§ã§ãã¿ã°ãã示ããã¾ããã¹ããçã®å ´åãbodyã¿ã°ã®ä¸ã®classå±æ§ã®ä¸ã«ã"category-ã¿ã°å"ã®å½¢å¼ã§ãã¿ã°ãè¨è¼ããã¾ãã
ã§ãã®ã§ãPCçã®å ´åä¸è¨ã®ã¿ã°ãæ¢ãåºããcontentããåºåä¸è¦ãããªããã確èªãããã¹ããçã®å ´åãIDæå®ã§ã¿ã°ãæãåºãã"category-ã¿ã°å"ã®å½¢å¼ã§è¦ç´ ãåå¨ããªãã確èªãããããã¦ãããããã該å½ã¿ã°ããããã¨å¤æãããå ´åãadsenseåºåãç¡å¹ã«ããããã«ç½®ãæãããã¨ããããããã«ãªãã¾ãã
ã²ã¨ã¤ã注æãã¦æ¬²ããã®ã¯ãã¹ããçã®å ´åå®å ¨ã«ã¿ã°åã¨ä¸è´ãããã§ã¯ãªããåæ¹ä¸è´ã§å¤æãããã¨ã«ãªãã®ã§noAdsTagããåºåä¸è¦ãã«ããå ´åã
- åºåä¸è¦
- åºåä¸è¦ï¼
- ããã¯åºåä¸è¦
ã®ï¼ã¤ã®ãã¿ã¼ã³ããã£ãã¨ãã¦ãï¼ã»ï¼ã®ã¿ã°ã¯ãåºåä¸è¦ãã¨ãã¦å¦çããã¾ãã
ã¡ãªã¿ã«ãµã³ãã«ã¯ãããªæãã
ã¿ã°ã¯ãå¿ è¦ã«å¿ãã¦æ¸ãæãã¦é ãã¦OKã§ãããè¤æ°ç¨®é¡ã«ã¯å¯¾å¿ãã¦ãã¾ãããå¿ è¦ãªäººãããã°ããé£çµ¡ããããã°ãã®ãã¡ããããã»ã»ã»ãæ®æ®µãjavascriptãªãã¦æ¸ããªãã®ã§ãå¤ãªã¨ããããã£ãããææãã ããâª
ã¡ãªã¿ã«ããã¯ã¦ãªããã°ãéå®ã§ãã
ã§ã¯ã§ã¯ã誰ãã®ãå½¹ã«ç«ã¦ã°å¹¸ãã§ãã
Â