Analytics Insights for Google Analytics 4 (AIWP)

説明

Analytics Insights は、最新の Google アナリティクストラッキングコードを使用してサイトトラッキングを可能にする WordPress プラグインです。 WordPress ダッシュボードで主要な Google アナリティクス統計を表示できます。

新しく導入されたデュアルトラッキング機能により、Google アナリティクス4 (GA4) とユニバーサルアナリティクス (UA) の両方で同時にデータを収集できます。

Google アナリティクスのレポート、統計、インサイト

Analytics Insights は、必要なレポートをダッシュボードとサイトのフロントエンドに表示します。オーディエンス、獲得、行動、エンゲージメント、およびリアルタイムの統計はすべて、専用のダッシュボードウィジェット内にグラフとして表示されます。

一連の一般的な Google アナリティクス統計に加えて、詳細なページレポートや詳細な投稿レポートなどの分析情報を利用できます。

Google アナリティクストラッキング

Googleアナリティクスのトラッキングコードはオプションとフックを介して完全にカスタマイズ可能で、カスタムディメンションやイベントなどの高度なデータ収集が可能です。

プラグインは、最新の Google アナリティクストラッキングコードをインストールします。選択したトラッキング方法に関係なく、Google アナリティクス4 (GA4)、ユニバーサル Google アナリティクス (analytics.js) トラッキング コード、グローバルサイトタグ (gtag.js) トラッキングコード、Accelerated Mobile Pages (AMP) など、すべて利用可能でカスタマイズ可能です。Google アナリティクス4による Accelerated Mobile Pages (AMP) トラッキングも利用できます。

イベントトラッキングやカスタムディメンショントラッキングなどの高度な機能は、プログラミングスキルがなくても、ボタンを切り替えるだけで有効にできます。

ユニバーサルアナリティクス (UA) と Google アナリティクス4 (GA4) の両方が同じ Web サイトについて同時にデータを収集する必要がある場合は、デュアルトラッキング機能を有効にするだけです。Google アナリティクス4トラッキングも、Google アナリティクス3プロパティを必要とせずに利用できます。

マルチサイトでのアナリティクスインサイト

このプラグインは、マルチサイトネットワークインストールと完全に互換性があります。複数の Google アナリティクスアカウントを使用することも、ネットワーク全体で1つの Google アナリティクスアカウントを使用することもできます。

スクリーンショット

  • ブルーカラー
  • リアルタイム Google アナリティクス3
  • リアルタイム Google アナリティクス4
  • 投稿 / 固定ページごとの分析レポート
  • Geo マップ
  • トップのページ、トップのリファラー、トップの検索
  • トラフィックの概要
  • フロントエンドでのページごとの統計
  • 地域地図上の都市
  • アナリティクスインサイトウィジェット

インストール

  1. 完全な analytics-insights ディレクトリを wp-content/plugins ディレクトリにアップロードします。
  2. WordPress で、サイドバーメニューから「プラグイン」 を選択し、Analytics Insights プラグインを有効にします。
  3. Analytics Insights メニューの下にあるプラグイン構成ページを開きます。
  4. 「プラグインを承認」 ボタンを使用して、プラグインが Google アナリティクスに接続することを承認します。
  5. Analytics Insights メニューの下にあるプラグイン構成ページに戻り、設定を更新/設定します。
  6. Analytics Insightsに移動 -> トラッキングへ進み、トラッキングコードを構成/有効化/無効化します。

FAQ

Google アナリティクストラッキングコードを手動で挿入する必要がありますか?

いいえ、プラグインの承認を行い、デフォルトドメインが選択されると、Google アナリティクストラッキングコードがすべての Web ページに自動的に挿入されます。

Google アナリティクス4の数値がユニバーサルアナリティクスの数値と一致しない理由は

簡単に言うと、技術やアプローチが異なれば結果も異なります。

Google アナリティクス4トラッキングはサポートされていますか?

はい、Google アナリティクス4プロパティやユニバーサルアナリティクスプロパティをトラッキングに使用できます。どちらもサポートされています。

Google アナリティクス4プロパティのみを使用できますか

はい、ユニバーサルアナリティクスプロパティを作成または所有する必要はありません。プラグインが完全に機能するには、Google アナリティクス4プロパティで十分です。

新しい機能を提案したり、貢献したり、バグを報告したりするにはどうすればよいですか?

GitHub リポジトリでプルリクエスト、機能リクエスト、バグレポートを送信できます。

ドキュメント、チュートリアル、FAQ

ドキュメント、チュートリアル、FAQ、ビデオについては、Analytics Insights ドキュメントをご覧ください。

評価

2023年2月23日 2 replies
Sorry to ditch this plugin but it stopped showing stats all of a sudden and when re-authorizing it Still not showing data. AND I see a bunch of extra sites which are NOT MINE in dropdown to select a domain for Analytics data. Lol. Kinda scary. Don't want my Google account compromised...
2023年1月7日
Dear Dev(s), Many thanks for making it happen! Been using GAinWP for long time and was disappointed by its abandonment. Please keep it simple and clean. Love the tempo of updates. Keep up the good work.
2023年1月2日
Good job, this is what I looking for. thanks a lot.
2022年12月10日
I had a small issue which was possibly a hosting issue, but I contacted support and the author implemented a workaround straight away. Fantastic
2022年11月18日
Brilliant plugin. No nonsense, light weight and useful. I used GADWP for years but then it stopped working - so happy that this new incarnation back. My clients can see meaningful stats using their brand colours on their admin (or editor) dashboards and there's no adverts or upgrade nagging. It really is free! Thank you!
21件のレビューをすべて表示

貢献者と開発者

Analytics Insights for Google Analytics 4 (AIWP) はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“Analytics Insights for Google Analytics 4 (AIWP)” は10ロケールに翻訳されています。 翻訳者のみなさん、翻訳へのご協力ありがとうございます。

“Analytics Insights for Google Analytics 4 (AIWP)” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

5.8.4 (2023.01.02)

  • Enhancements:
    • option to force IPv4 or IPv6 using AIWP_FORCE_IP_RESOLVE
    • エラー処理の改善

5.8.3 (2022.12.07)

  • Enhancements:
    • introducing two additional hooks (aiwp_gtag_output_before and aiwp_gtag_output_after) for Global Site Tag tracking code; props @jerclarke
    • add full Google Analytics 4 support to AMP Standard, AMP Transitional, and AMP Reader pages

5.8.2 (2022.12.06)

  • Bug Fixes:
    • Fixes a critical bug introduced with some API changes, by replacing pagePathPlusQueryString with pagePath

5.8.1 (2022.10.20)

  • Bug Fixes:
    • Fixes a bug introduced in 5.8 preventing Google Analytics 4 webstreams retrieval at authorization

5.8 (2022.10.18)

  • Release notes
  • Bug Fixes:
    • Fixes multiple validation errors for AMP pages
    • Google Analytics 4 (GA4) realtime reporting fixes
  • Enhancements:
    • introducing Google Analytics 4 AMP tracking support (Experimental); you can now use Google Analytics 4 tracking on AMP pages

5.7.8 (2022.10.06)

  • Bug Fixes:
    • improvements on error reporting; for both Google Analytics EndPoint and Deconf Endpoint

5.7.7 (2022.09.27)

  • Bug Fixes:
    • permanent fix for precision loses warning in PHP 8.1

5.7.6 (2022.09.20)

  • Bug Fixes:
    • “Search …” placeholder missing for admin reports
    • solves precision loses warning for PHP 8.1

5.7.5 (2022.07.31)

  • Bug Fixes:
    • some namespace fixes
    • code optimization on Google Analytics 4 properties retrieval

5.7.4 (2022.07.30)

  • Bug Fixes:
    • fixes on Universal Analytics and Google Analytics 4 properties list, when the number of properties exceeds 200

5.7.3 (2022.06.18)

  • Bug Fixes:
    • fixes on Google Analytics Client library

5.7.2 (2022.06.17)

  • Bug Fixes:
    • switch View functionality wasn’t working properly for Google Analytics 4 properties
    • fixes PHP 5.6 compatibility issues

5.7.1 (2022.06.01)

  • Bug Fixes:
    • prefix namespaces to avoid autoloading collisions

5.6.6 (2022.05.29)

  • Enhancements:
    • simplify the Google Analytics API token revoke method
    • increase the maximum number of Google Analytics 4 accounts to 200
    • make all Google Analytics API calls using quotaUser.
  • Bug Fixes:
    • fixes Google Analytics 4 total engagement time on bottom stats board

5.6.5 (2022.05.03)

  • Enhancements:
    • replace text with dashicons on Posts List to save column space
  • Bug Fixes:
    • small CSS fixes
    • Google Analytics 4 tracking code missing when Universal Analytics is missing or is disabled

5.6.4 (2022.04.26)

  • Enhancements:
    • API EndPoint v2 upgrade for more stable and reliable requests
  • Bug Fixes:
    • corrected a bug that was causing fatal errors when using custom Google Cloud Console API projects
    • prevent PHP fatal errors by properly storing Google Analytics API errors

5.6.3 (2022.04.23)

  • Enhancements:
    • token handling improvements between DeConf EndPoint and Google API Client, to avoid random token resets

5.6.2 (2022.04.22)

  • Bug Fixes:
    • escape single quotes on Google Analytics custom dimensions to prevent JavaScript Errors
  • Enhancements:
    • more accurate errors and error description
    • reset CSS style applied during error display on Google Analytics reports widget
    • handling improvements on Google Analytics APIs errors

5.6 (2022.04.14)

  • Release notes
  • Enhancements:
    • switching all reports to Google Analytics Reporting v4 for an easier migration to Google Analytics Data API
    • Google Analytics 4 reports are now available
    • Global Site Tag is now the default tracking method on new installations
    • Tracking only with a Google Analytics 4 property is now possible
    • Google Analytics Data API update
    • Google Analytics Reporting API update
    • Google Analytics 4 real-time reports are now available
    • Google Analytics 4 frontend reports UX improvements
    • Google Analytics 3 frontend reports UX improvements
  • Bug Fixes:
    • fix frontend per page Google Analytics reports
    • redesign the Real-Time Report for Google Analytics 4
    • multiple CSS fixes
    • Frontend Reports URI fix

5.5.6 (2022.03.31)

  • Bug Fixes:
    • Google Analytics 4 events tracking fix
  • Security:
    • Google Analytics library update

5.5.5 (2022.03.05)

  • Bug Fixes:
    • update and multiple fixes for Google Analytics Admin service

5.5.4 (2022.03.04)

  • Bug Fixes:
    • 404 error during Google Analytics 4 web datastreams list request

5.5.3 (2022.02.14)

  • Enhancements:
    • improvements on detecting default GA4 webstream after install
  • Bug Fixes:
    • 404 error reports are empty

5.5.2 (2022.02.08)

  • Bug Fixes:
    • Lock Selection button missing when there are no GA4 properties defined

5.5.1 (2022.02.08)

  • Bug Fixes:
    • properly encode the access token

5.5.0 (2022.02.07)

  • Enhancements:

    • Google Analytics library update to v2
    • Google Analytics API Endpoint update to v1
    • automatically get Google Analytics 4 (GA4) webstreams list
    • add Google Analytics 4 (GA4) tracking feature
    • dual tracking is now available; use both Google Analytics 4 (GA4) tracking and Universal analytics (UA) tracking at the same time
  • Requirements:

    • minimum requirements changed to PHP 5.6.0 or higher
  • Bug Fixes:

    • multiple bugfixes for network mode setup
    • fix events tracking in Universal Analytics

5.4.7 (2021.11.28)

  • Bug Fixes:
    • multiple bugfixes for network mode setup
    • admin page css fixes
    • fixing multiple notices and errors for PHP 8

5.4.6 (2021.10.14)

  • Bug Fixes:
    • Maps API key missing quotes
    • use only minified scripts and follow SCRIPT_DEBUG flag while debugging
    • fix invalid links
    • geochart overlapping the metrics icons on mobile devices
  • Enhancements:
    • UX updates for the analytics real-time report

5.4.4 (2021.09.24)

  • Enhancements:
    • add AMP Analytics support for gtag.js (Global Site Tag)
    • add events support to Global Site Tag tracking on AMP pages; including scroll depth and HTML attributes triggers
    • add custom dimensions support to Global Site Tag tracking on AMP pages

5.4.3 (2021.09.16)

  • Bug Fixes:
    • fixes javascript error when rendering anonymized charts on frontend analytics widget
  • Enhancements:
    • readme.txt and assets update

5.4.2 (2021.09.10)

  • Bug Fixes:
    • fixes uaid issue for universal analytics

5.4.1 (2021.09.09)

  • Security Fixes:
    • sanitizing, escaping, and validating additional data
  • Enhancements:
    • new translations for multiple languages
    • replacing Cheating huh? with a more helpful feedback
  • Bug Fixes:
    • fixes multisite/network mode random token resets

5.4 (2021.08.30)

  • Release notes
  • Enhancements:
    • capability to filter and search within displayed tables
    • automatically authorize users with Google Analytics, without copy/pasting the access codes
    • improvements on UX for reports and stats switching (no more charts reloading)
    • removed automatic updates
    • settings page optimization
    • refactoring code on the GADWP settings page
    • removed a duplicate option in Tracking Code
  • Bug Fixes:
    • CSS fix for on/off buttons on GADWP settings page

5.3.2

  • Bug Fixes:
    • fixes for user opt-out feature
  • Enhancements:
    • use gadwp_useroptout shortcode to easily generate opt-out buttons and links, more details
    • adding gadwp_gtag_commands and gadwp_gtag_script_path hooks to allow further gtag (Global Site Tag) code customization
    • adds opt-out and DNT support for Google Tag Manager

5.3.1.1

  • Bug Fixes:
    • avoid universal analytics tracking issues by not clearing the profiles list on automatic token resets

5.3.1

  • Bug Fixes:
    • fixing PHP notices on frontend stats when upgrading from a version lower than v4.8.0.1

5.3

  • Enhancements:
    • adds full support for Global Site Tag (gtag.js)
    • remove Scroll Depth functionality, since this is now available as a trigger on Google Tag Manager
    • adds custom dimensions support for AMP pages with Google Tag Manager tracking
    • adds support for button submits
  • Bug Fixes:
    • form submit analytics events were not following the non-interaction settings

5.2.3.1

  • Bug Fixes:
    • fixing a small reporting issue on dashboard stats

5.2.3

  • Enhancements:
    • add Google Analytics user opt-out support
    • add option to exclude Google Analytics tracking for users sending the Do Not Track header
    • add System tab to Errors & Debug screen
    • check to avoid using a redeemed Google Analytics access code
  • Bug Fixes:
    • remove a debugging message for analytics reports
    • cURL options were overwritten during regular Analytics API calls

5.2.2

  • Enhancements:
    • more informative alerts and suggestions on the authorization screen
    • disable autocomplete for the access code input field to avoid reuse of the same unique Google Analytics authorization code
    • GADWP Endpoint improvements
    • Error reporting improvements
    • introducing the gadwp_maps_api_key filter
  • Bug Fixes:
    • use the theme color palette for the frontend stats widget

5.2.1

  • Enhancements:
    • avoid submitting empty error reports from Google Analytics API
  • Bug Fixes:
    • fixes a bug for custom PHP cURL options

5.2

  • Enhancements:
    • improvements on Google Analytics API exponential backoff system
    • introduces a new authentication method with endpoints for Google Analytics
    • multiple updates of plugin’s options
    • code cleanup
    • improvements on error reporting system
    • option to report errors to developer
    • move the upgrade notice from the Dashboard to Insights Analytics settings page
    • enable PHP cURL proxy support using WordPress settings, props by Joe Hobson
    • hide unusable options based on Analytics Insights settings
  • Bug Fixes:
    • some thrown errors were not displayed on Errors & Debug screen
    • analytics icon disappears from post list after quick edit, props by karex
    • fix for inline SVG links, props by Andrew Minion
    • fixes a bug on affiliate events tracking

The full changelog is available here.