Googleアナリティクスに対応させるため、次の変更を実施した。

実施日:2012-9-22 実施者:菅野 陽一

実施内容

Googleへの申し込み

次の通りトラッキングIDを取得

コード変更

xoops/themes/ueno-x2t/theme.htmlファイルのheadタグ内に次の設定を追加。

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-35010254-1']);
  _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);
  })();

</script>

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2014-09-14 (日) 16:00:39 (3515d)