DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:googleanalytics

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:googleanalytics [2017-02-09 22:48] andiplugin:googleanalytics [2020-11-03 10:40] (current) – Added some basic setup text from the plugin to this page tjgrant@tatewake.com
Line 6: Line 6:
 email      : tjgrant@tatewake.com email      : tjgrant@tatewake.com
 type       : action type       : action
-lastupdate : 2017-02-08 +lastupdate : 2020-11-03 
-compatible : Elenor of Tsort+compatible : 2020-07-29 "Hogfather", 2018-04-22 "Greebo", 2017-02-19 "Frusterick Manners", 2016-06-26 "Elenor Of Tsort"
 depends    :  depends    : 
 conflicts  conflicts 
Line 23: Line 23:
 ===== Download ===== ===== Download =====
  
-Use the download link given above in the plugin manager or to download the plugin manually.+Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually.
  
 ===== Setup ===== ===== Setup =====
 +
 +This plugin generates JavaScript code that is automatically included into your site via the ''lib/exe/js.php'' file. (Which you can inspect via your browser's "developer tools.")
 +
 +Set the options for this plugin via the **Configuration Settings** menu from the DokuWiki admin menu. (It will be near the bottom of the page.)
 +
 +You may use one of two tracking options:
 +
 +  * **Basic** "Google Analytics ID" (also known as "[[https://developers.google.com/analytics/devguides/collection/analyticsjs|analytics.js]]") using a **UA-XXXXXX-XX** code
 +  * **Newer** "Global Site Tag ID" (also known as "[[https://developers.google.com/analytics/devguides/collection/gtagjs|gtag.js]]") using a **G-XXXXXXXXXX** code
 +
 +If you set a "Global Site Tag ID", then this method will be used and any "Google Analytics ID" / **UA-XXXXXXX-XX** specific settings will be ignored.
 +
 +==== Tag Setup ====
  
 To properly use this plugin you will need to set up and configure a Google Analytics property. To properly use this plugin you will need to set up and configure a Google Analytics property.
  
-==== Google Analytics Setup ====+==== Google Analytics ID Method ====
  
 Sign into [[https://analytics.google.com]] and create a **new property**: Sign into [[https://analytics.google.com]] and create a **new property**:
  
   * [[https://support.google.com/analytics/answer/1042508|Analytics Help: Set up a property]]   * [[https://support.google.com/analytics/answer/1042508|Analytics Help: Set up a property]]
- 
  
 Now follow the steps below. There are also [[http://imgur.com/a/lvhuD|screenshots available]] to help you find your way through the menus. Now follow the steps below. There are also [[http://imgur.com/a/lvhuD|screenshots available]] to help you find your way through the menus.
Line 56: Line 68:
  
 Finally go to //Admin// -> //View// and select the view you want to use((If you set up User ID tracking above, you probably want to repeat this step for both views. Otherwise there's only one)). Then pick //View Settings//. Enable **Site Search Tracking**, enter ''q'' as Query parameter and tick the //Strip query parameters out of URL// checkbox. Finally go to //Admin// -> //View// and select the view you want to use((If you set up User ID tracking above, you probably want to repeat this step for both views. Otherwise there's only one)). Then pick //View Settings//. Enable **Site Search Tracking**, enter ''q'' as Query parameter and tick the //Strip query parameters out of URL// checkbox.
 +
 +==== Global Site ID Method ====
 +
 +TODO: Write me
  
 ==== DokuWiki Setup ==== ==== DokuWiki Setup ====
plugin/googleanalytics.1486676909.txt.gz · Last modified: 2017-02-09 22:48 by andi

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki