MT4の<MTIF>活用法、個別ページのアクセスのアシアトを追うアシアトログにMTタグを使いフッターに自動埋め込み
アクセス解析ソフトの中には個別ページのアシアトを追うことができるものもある。そのひとつがアシアトログ。アシアトログはフリーソフトで、ver2以降は文字化けも少なく、機能も豊富なのでおすすめ。ただし、アシアトログを設定するにはすべてのページに特定できる独自の名前を入れたタグを埋め込む必要がある。この手間がかかる作業もMT4(ムーバブルタイプ)ならフッダに埋め込むだけでOK。MT4の<MTIF>を使えば簡単に設置できる。
▼ここからフッターモジュールのタグに埋め込むアシアトログのタグの例
(<$MTBlogURL$>cgi-bin/access/にアシアトログのシステムがある場合はこのままコピーでOK)
<MTIf name="entry_template">
<script type="text/javascript">
<!--
document.write("<img src='<$MTBlogURL$>cgi-bin/access/accimg.cg?id=<$MTEntryPermalink$>&img=1&scr=", screen.width, "x", screen.height, "x", screen.colorDepth, "&ref=", escape(parent.document.referrer), "' border=0 width=1 height=1>");
//-->
</script>
<noscript>
<img src="<$MTBlogURL$>cgi-bin/access/accimg.cg?id=<$MTEntryPermalink$>&img=1&ref=noScript" border=0 width=1 height=1>
</noscript>
</MTIf>
<MTIf name="Category_archive">
<script type="text/javascript">
<!--
document.write("<img src='<$MTBlogURL$>cgi-bin/access/accimg.cg?id=<$MTCategoryArchiveLink$>&img=1&scr=", screen.width, "x", screen.height, "x", screen.colorDepth, "&ref=", escape(parent.document.referrer), "' border=0 width=1 height=1>");
//-->
</script>
<noscript>
<img src="<$MTBlogURL$>cgi-bin/access/accimg.cg?id=<$MTCategoryArchiveLink$>&img=1&ref=noScript" border=0 width=1 height=1>
</noscript>
</MTIf>
<MTIf name="search_results_template">
<script type="text/javascript">
<!--
document.write("<img src='<$MTBlogURL$>cgi-bin/access/accimg.cg?id=[search]<$MTBlogURL$>&img=1&scr=", screen.width, "x", screen.height, "x", screen.colorDepth, "&ref=", escape(parent.document.referrer), "' border=0 width=1 height=1>");
//-->
</script>
<noscript>
<img src="<$MTBlogURL$>cgi-bin/access/accimg.cg?id=[search]<$MTBlogURL$>&img=1&ref=noScript" border=0 width=1 height=1>
</noscript>
</MTIf>
<MTIf name="main_index">
<script type="text/javascript">
<!--
document.write("<img src='<$MTBlogURL$>cgi-bin/access/accimg.cg?id=<$MTBlogURL$>&img=1&scr=", screen.width, "x", screen.height, "x", screen.colorDepth, "&ref=", escape(parent.document.referrer), "' border=0 width=1 height=1>");
//-->
</script>
<noscript>
<img src="<$MTBlogURL$>cgi-bin/access/accimg.cg?id=<$MTBlogURL$>&img=1&ref=noScript" border=0 width=1 height=1>
</noscript>
</MTIf>
タグが改行などで切れていたら修正してください。
念のため「asiatomt.txt」
を用意しましたので、必要な方はダウンロードください。
上記と同じタグがテキストで手に入ります。
▼ここからフッターモジュールのタグに埋め込むアシアトログのタグの例(tohda.jpの例)
<MTIf name="entry_template">
<script type="text/javascript">
<!--
document.write("<img
src='http://www.tohda.jp/cgi-bin/access/accimg.cg?id=<$MTEntryPermalink$>&img=1&scr=",
screen.width, "x", screen.height, "x", screen.colorDepth,
"&ref=", escape(parent.document.referrer), "' border=0 width=1
height=1>");
//-->
</script>
<noscript>
<img
src="http://www.tohda.jp/cgi-bin/access/accimg.cg?id=<$MTEntryPermalink$>&img=1&ref=noScript"
border=0 width=1 height=1>
</noscript>
</MTIf>
<MTIf name="Category_archive">
<script type="text/javascript">
<!--
document.write("<img
src='http://www.tohda.jp/cgi-bin/access/accimg.cg?id=<$MTCategoryArchiveLink$>&img=1&scr=",
screen.width, "x", screen.height, "x", screen.colorDepth,
"&ref=", escape(parent.document.referrer), "' border=0 width=1
height=1>");
//-->
</script>
<noscript>
<img
src="http://www.tohda.jp/cgi-bin/access/accimg.cg?id=<$MTCategoryArchiveLink$>&img=1&ref=noScript"
border=0 width=1 height=1>
</noscript>
</MTIf>
<MTIf name="search_results_template">
<script type="text/javascript">
<!--
document.write("<img
src='http://www.tohda.jp/cgi-bin/access/accimg.cg?id=[search]<$MTBlogURL$>&img=1&scr=",
screen.width, "x", screen.height, "x", screen.colorDepth,
"&ref=", escape(parent.document.referrer), "' border=0 width=1
height=1>");
//-->
</script>
<noscript>
<img
src="http://www.tohda.jp/cgi-bin/access/accimg.cg?id=[search]<$MTBlogURL$>&img=1&ref=noScript"
border=0 width=1 height=1>
</noscript>
</MTIf>
<MTIf name="main_index">
<script type="text/javascript">
<!--
document.write("<img
src='http://www.tohda.jp/cgi-bin/access/accimg.cg?id=<$MTBlogURL$>&img=1&scr=",
screen.width, "x", screen.height, "x", screen.colorDepth,
"&ref=", escape(parent.document.referrer), "' border=0 width=1
height=1>");
//-->
</script>
<noscript>
<img
src="http://www.tohda.jp/cgi-bin/access/accimg.cg?id=<$MTBlogURL$>&img=1&ref=noScript"
border=0 width=1 height=1>
</noscript>
</MTIf>
ここまで
※太字の部分はアシアトログのURLに変更すること(注意)
アシアトログ(最新100件の個別アクセス記録ページ)
http://www.tohda.jp/cgi-bin/access/accview.cgi?dn=0-100
を見ると、
個別エントリー、カテゴリ、メインページ、検索ページの記録が取れていることがわかる。
記録をURL名としているところがポイント。URL名が記録に残るとアシアトをたぐりやすくなる。
フェイスブックの「いいね」を…よろしければクリックしてください。
@tohdamikioがツイッターのツイナビ公認になりました。

ツイナビには有用な情報がたくさんあります。いつも新しい発見があり、参考になると思いますので参考にするとよいです。
人気ブログランキングに参加しています。
よろしければ1票クリックください。おねがいします。ペコリ m(__)m
さて、今日は何位かな?※クリックすると人気ブログランキングの北陸ページのランキング一覧にジャンプします。 powered by
感動のビジネスを支援する 株式会社ドモドモコーポレーション
株式会社ドモドモコーポレーション代表取締役 遠田幹雄(中小企業診断士,ITコーディネータ)
〒929-1171 石川県かほく市木津ロ64-1
電話076-285-8058 IP電話:050-1462-8058
遠田幹雄です。どもども、ドモドモ(^^)v 中小企業診断士ブログ
トラックバック
この記事のトラックバックURL:
http://app.cocolog-nifty.com/t/trackback/24396/17160117
この記事へのトラックバック一覧です: MT4の<MTIF>活用法、個別ページのアクセスのアシアトを追うアシアトログにMTタグを使いフッターに自動埋め込み:
» MT4ではアシアトログのタグを<MTIF>を使ってフッターに埋め込むことが可能 トラックバック 遠田.jpブログ
MT4ではアシアトログのタグをMTIFを使ってフッターに埋め込む... [続きを読む]
受信: 2007/11/23 12:16:42












コメント