內容簡介
[ga-top-posts] 是一個開源的計畫,旨在從 Google Analytics 中獲取最受歡迎的文章。該外掛會從 GA 中擷取最流行的文章並使用短代碼在頁面、文章和側邊欄中顯示前 5 篇文章。
插件提供的功能和能力包括:
– 可以使用動態 attribute 顯示熱門文章。
– 可以使用小工具顯示熱門文章。
– 它會每週同步一次,並提供手動同步選項。
– 設置 Google Analytics 詳細資料。
安裝步驟
將資料夾上傳到 /wp-content/plugins/ 目錄中。
在 WordPress 中透過「外掛」選單啟用該外掛。
設定
前往 https://cloud.google.com/console,打開項目,到左側的 APIs&auth>註冊的應用程式。
點擊「註冊應用程式」,輸入名稱並選擇平台(例如,Web應用程式)。
在下一頁上,打開憑證,點擊「產生憑證」並下載 .p12 私鑰。
新增個人檔案 ID。
新增網站 URL。
上傳金鑰檔案。
使用從 Google Analytics 中獲取的服務電子郵件。
從 GA 中排除擷取結果的 URL,例如首頁。
授權
「Google Analytics Dashboard for WP」是根據 GPLv2 發佈的,您可以在個人或商業網站上免費使用它。
外掛標籤
開發者團隊
② 後台搜尋「Top Posts for Google Analytics by Asentechllc」→ 直接安裝(推薦)
原文外掛簡介
The [ga-top-posts] is an open-source initiative aiming to fetch most read articles from google analytics. Most read articles will display top 5 articles after fetching them from GA and display them in your page, post, and sidebar using shortcode.
Features and capabilities provided by the plugin include:
– We can use shortcode to display top articles with dynamic attributes.
– We can use widget to display top articles with dynamic attributes.
– It will sync every week and also we have provided manually sync option.
– Settings of Google Analytics details.
Installation Steps
Upload the folder to the /wp-content/plugins/ directory.
Activate the plugin through the ‘Plugins’ menu in WordPress.
Configuration
Go to https://cloud.google.com/console Open the project, go to APIs & auth > Registered apps on the left.
Click on Register App, enter name and choose platform (for e.g. Web Application).
On the next page, open Certificate and click on Generate Certificate and download the .p12 private key.
Add profile ID
Add Site URL
Upload Key File
Service email which we can get from google analytics
Exclude URLs from fetched result from GA like home page.
License
Google Analytics Dashboard for WP it’s released under the GPLv2, you can use it free of charge on your personal or commercial website.
