バージョン選択

フォーラム

メニュー

オンライン状況

66 人のユーザが現在オンラインです。 (56 人のユーザが フォーラム を参照しています。)
登録ユーザ: 1
ゲスト: 65
nakamori もっと...

サイト内検索

その他 > その他 > GoogleAnalytics_pluginのテストについて

その他

新規スレッドを追加する

フラット表示 前のトピック | 次のトピック
投稿者 スレッド
ramrun
投稿日時: 2009/7/22 13:43
対応状況: −−−
仙人
登録日: 2006/11/3
居住地:
投稿: 789
GoogleAnalytics_pluginのテストについて
nanasessさんの
チケット #494 プラグイン機能
で、試したい人用にやり方を書いてみました。

・eccube-comu-r18230とGoogleAnalytics_plugin.patchを用意します。

http://downloads.ec-cube.net/nightly/eccube-comu-r18230.tar.gz
http://svn.ec-cube.net/open_trac/browser/branches/comu-ver2/patches/GoogleAnalytics_plugin.patch?format=raw

・eccubeを解凍してパッチを当てます。
  ※windowsではGNU patchとかでやってください
$ tar zxvfp eccube-comu-r18230.tar.gz
$ mv eccube-comu-r18230 eccube
$ mv GoogneAnalytics_plugin.patch eccube
$ cd eccube
$ patch -p0 < GoogleAnalytics_plugin.patch

※windows gnu patchの場合
> patch -p0 --binary < GoogleAnalytics_plugin.patch


下記はやらなければいけないわけではないですが、一応、私自身がさらに当てたパッチです。
diff -rc eccube_org/data/Smarty/templates/default/admin/main_frame.tpl eccube/data/Smarty/templates/default/admin/main_frame.tpl
*** eccube_org/data/Smarty/templates/default/admin/main_frame.tpl       2009-07-22 13:09:16.000000000 +0900
--- eccube/data/Smarty/templates/default/admin/main_frame.tpl   2009-07-22 12:57:24.000000000 +0900
***************
*** 113,120 ****
          <a><span>OWNERS STORE</span></a>
          <!--{include file="`$smarty.const.TEMPLATE_ADMIN_DIR`ownersstore/subnavi.tpl"}-->
      <li id="navi-plugin" class="<!--{if $tpl_mainno eq "plugin"}-->on<!--{/if}-->">
!       <a><span>プラグイン設定</span></a>
!       <!--{include file="`$smarty.const.PLUGIN_PATH`plugin_menu.tpl"}-->
      </li>
  </ul>
  <div style="clear: both;"></div>
--- 113,121 ----
          <a><span>OWNERS STORE</span></a>
          <!--{include file="`$smarty.const.TEMPLATE_ADMIN_DIR`ownersstore/subnavi.tpl"}-->
      <li id="navi-plugin" class="<!--{if $tpl_mainno eq "plugin"}-->on<!--{/if}-->">
!     </li>
!         <a><span>プラグイン設定</span></a>
!         <!--{include file="`$smarty.const.PLUGIN_PATH`plugin_menu.tpl"}-->
      </li>
  </ul>
  <div style="clear: both;"></div>
Only in eccube_org: GoogleAnalytics_plugin.patch
diff -rc eccube_org/html/user_data/plugins/google_analytics/sql/insert.sql eccube/html/user_data/plugins/google_analytics/sql/insert.sql
*** eccube_org/html/user_data/plugins/google_analytics/sql/insert.sql   2009-07-22 13:09:16.000000000 +0900
--- eccube/html/user_data/plugins/google_analytics/sql/insert.sql       2009-07-22 13:01:48.000000000 +0900
***************
*** 1,2 ****
  INSERT INTO dtb_bloc (bloc_name, tpl_path, filename, php_path, del_flg) VALUES ('Google Analytics', 'user_data/plugins/google_analytics/tpl/ga.tpl', 'google_analytics', 'user_data/plugins/google_analytics/ga.php', 1);
- INSERT INTO dtb_blocposition (page_id, target_id, bloc_id, bloc_row, filename, anywhere) VALUES (1, 10, (SELECT bloc_id FROM dtb_bloc WHERE filename = 'google_analytics'), 0, 'google_analytics', 1);
\ No newline at end of file
--- 1 ----
diff -rc eccube_org/html/user_data/plugins/plugin_menu.tpl eccube/html/user_data/plugins/plugin_menu.tpl
*** eccube_org/html/user_data/plugins/plugin_menu.tpl   2009-07-22 13:09:16.000000000 +0900
--- eccube/html/user_data/plugins/plugin_menu.tpl       2009-07-22 13:01:25.000000000 +0900
***************
*** 1,8 ****
  <ul id="navi-plugin-menu" class="level1">
  </ul>
  <script type="text/javascript">
  $(function(){
!       $.ajax({
      url: '<!--{$smarty.const.PLUGIN_URL}-->plugins.xml',
      type: 'GET',
      dataType: 'xml',
--- 1,9 ----
  <ul id="navi-plugin-menu" class="level1">
  </ul>
  <script type="text/javascript">
+ //<![CDATA[
  $(function(){
!     $.ajax({
      url: '<!--{$smarty.const.PLUGIN_URL}-->plugins.xml',
      type: 'GET',
      dataType: 'xml',
***************
*** 16,22 ****
              var item_path = $(this).find("path").text();

              $("<li id='navi-plugin-index'></li>")
!                 .html("<a href='java script:;'><span>" + item_text + "</span></a>")
                 .appendTo('ul#navi-plugin-menu')
                 .click(function() {
                     win03('<!--{$smarty.const.PLUGIN_URL}-->' + item_path
--- 17,23 ----
              var item_path = $(this).find("path").text();

              $("<li id='navi-plugin-index'></li>")
!                .html("<a href='java script:;'><span>" + item_text + "</span></a>")
                 .appendTo('ul#navi-plugin-menu')
                 .click(function() {
                     win03('<!--{$smarty.const.PLUGIN_URL}-->' + item_path
***************
*** 28,31 ****
--- 29,33 ----
      }
      });
  });
+ //]]>
  </script>
※必要なくなりました

・html/user_data/plugins以下、書き込み属性を付加します。
  ※windowsでは必要ありません
$ chmod -R 777 html/user_data/plugins


・ブラウザからアクセスして普通にec-cubeをインストールします。

・プラグインのデータをDBへインストールします。
  ※下記はMySQL用です
$ mysql -u eccube_db_user -p --default-character-set=utf8 eccube_db < html/user_data/plugins/google_analytics/sql/insert.sql


・eccubeの管理画面にログインします。
  ※ただしhttpで(管理画面をhttpsで設定しているとき)

・メニューにはプラグイン設定とその項目としてGoogle Analyticsが追加されています。

・デザイン管理のレイアウト設定で未使用ブロックに表示されているGoogle Analyticsをhead領域へ配置し、全ページのチェックを入れ登録します。

・フロントでhtmlソースのheadを確認し、全ページにGoogle Analytics のタグが入っていれば動作OKです。
フラット表示 前のトピック | 次のトピック


題名 投稿者 日時
 » GoogleAnalytics_pluginのテストについて ramrun 2009/7/22 13:43
     Re: GoogleAnalytics_pluginのテストについて nanasess 2009/7/22 14:31
     Re: GoogleAnalytics_pluginのテストについて seasoft 2009/7/22 16:38
       Re: GoogleAnalytics_pluginのテストについて ramrun 2009/7/22 17:32
         Re: GoogleAnalytics_pluginのテストについて ramrun 2009/7/22 18:08
           Re: GoogleAnalytics_pluginのテストについて nanasess 2009/7/22 18:22
             Re: GoogleAnalytics_pluginのテストについて ramrun 2009/7/22 19:37
               Re: GoogleAnalytics_pluginのテストについて seasoft 2009/7/22 20:16
                 Re: GoogleAnalytics_pluginのテストについて nanasess 2009/7/22 22:41
         Re: GoogleAnalytics_pluginのテストについて seasoft 2009/7/22 20:14
         Re: GoogleAnalytics_pluginのテストについて seasoft 2009/7/22 20:39
           Re: GoogleAnalytics_pluginのテストについて ramrun 2009/7/22 20:49
     Re: GoogleAnalytics_pluginのテストについて seasoft 2009/7/22 20:25
     Re: GoogleAnalytics_pluginのテストについて nanasess 2009/7/22 23:04
       Re: GoogleAnalytics_pluginのテストについて ramrun 2009/7/22 23:41
         Re: GoogleAnalytics_pluginのテストについて nanasess 2009/7/23 0:03
           Re: GoogleAnalytics_pluginのテストについて ramrun 2009/7/23 18:57
             Re: GoogleAnalytics_pluginのテストについて nanasess 2009/7/23 21:00
               Re: GoogleAnalytics_pluginのテストについて seasoft 2009/7/23 22:41
                 Re: GoogleAnalytics_pluginのテストについて nanasess 2009/7/23 23:07
                   Re: GoogleAnalytics_pluginのテストについて seasoft 2009/7/24 6:34
                     Re: GoogleAnalytics_pluginのテストについて nanasess 2009/7/24 10:00
               Re: GoogleAnalytics_pluginのテストについて ramrun 2009/7/24 11:44
                 Re: GoogleAnalytics_pluginのテストについて ramrun 2009/7/25 12:56
                   Re: GoogleAnalytics_pluginのテストについて seasoft 2009/10/21 8:00
                     Re: GoogleAnalytics_pluginのテストについて nanasess 2009/10/21 9:25
                       Re: GoogleAnalytics_pluginのテストについて seasoft 2009/10/21 11:26
                         Re: GoogleAnalytics_pluginのテストについて nanasess 2009/10/21 14:46
                           Re: GoogleAnalytics_pluginのテストについて seasoft 2009/10/21 15:19
                             Re: GoogleAnalytics_pluginのテストについて nanasess 2009/10/21 21:53
                               Re: GoogleAnalytics_pluginのテストについて seasoft 2009/10/22 2:09
                                 Re: GoogleAnalytics_pluginのテストについて nanasess 2009/10/22 10:53
                                   Re: GoogleAnalytics_pluginのテストについて seasoft 2009/10/22 11:09
                                     Re: GoogleAnalytics_pluginのテストについて nanasess 2009/10/22 11:23
                                       Re: GoogleAnalytics_pluginのテストについて nanasess 2009/10/25 22:24
                                         Re: GoogleAnalytics_pluginのテストについて seasoft 2009/11/7 9:26
                                           Re: GoogleAnalytics_pluginのテストについて nanasess 2009/11/9 9:28
     Re: GoogleAnalytics_pluginのテストについて seasoft 2009/7/23 6:34
       Re: GoogleAnalytics_pluginのテストについて nanasess 2009/7/23 10:43
         Re: GoogleAnalytics_pluginのテストについて seasoft 2009/7/23 12:45
           Re: GoogleAnalytics_pluginのテストについて nanasess 2009/7/23 13:46

 



ログイン


EC-CUBE公式 Amazon Payプラグイン

統計情報

総メンバー数は88,694名です
総投稿数は109,943件です

投稿数ランキング

1
seasoft
7367
2
468
3217
3
AMUAMU
2712
4
nanasess
2313
5
umebius
2085
6
yuh
1819
7
h_tanaka
1638
8
red
1570
9
mcontact
1283
10
tsuji
958
11
fukap
907
12
shutta
835
13
tao_s
799
14 ramrun 789
15 karin 689
16 sumida 641
17
homan
633
18 DELIGHT 572
19
patapata
502
20
flealog
485


ネットショップの壺

EC-CUBEインテグレートパートナー

Copyright© EC-CUBE CO.,LTD. All Rights Reserved.