2017-08-18 5 views
0

私はopencart 2.2.0でgoogleanlayticsを統合していますが、いくつかのエラーは、私は問題を解決する方法をOpencart 2.2.0 Googleの分析

Notice: Undefined index: store_id in /home/domainname/public_html/test/admin/controller/analytics/google_analytics.php on line 13Warning: Cannot modify header information - headers already sent by (output started at /home/domainname/public_html/test/admin/controller/startup/error.php:34) in /home/domainname/public_html/test/system/library/response.php on line 12 

を反映さ

答えて

0

Googleアナリティクスあなたのopencartのインストールに簡単に追加することができますカタログ/ビュー/テーマ/ {あなたのテンプレートの名前} /common/footer.tpl

またはopencart 3.xの場合 カタログ/ビュー/テーマ/ {あなたのテンプレートの名前} /common/footer.twig

タグの前にgoogle analytics js codeを追加します。ファイルを保存してアップロードします。あなたが追加した場合ご返信用

0

感謝を(あなたがmultistore機能をopencart使用している場合)/店舗当たりのGoogle Analyticsのコードを提供しますGoogle Analyticsのための拡張機能をインストール以外

STORE_IDは、このタスクとは無関係です。私はこの問題を解決しました。

$this->model_setting_setting->editSetting('google_analytics'‌​, $this->request->post); 

$this->model_setting_setting->editSetting('google_analytics'‌​, $this->request->post, $this->request->get['store_id']); 

を交換しSTORE_ID変数はgoogle_analytics.php で定義されていないようです

関連する問題