plugin:ganalytics
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
plugin:ganalytics [2009-05-08 19:52] – 70.103.232.219 | plugin:ganalytics [2019-08-16 16:37] – !discontinued tag Aleksandr | ||
---|---|---|---|
Line 11: | Line 11: | ||
conflicts | conflicts | ||
similar | similar | ||
- | tags : | + | tags : |
---- | ---- | ||
- | |||
===== Download and Installation ===== | ===== Download and Installation ===== | ||
- | Download | + | Search |
+ | |||
+ | Google Analytics requires additional configuration for best use with DokuWiki (e.g., site search and goals). See [[http:// | ||
+ | |||
+ | ^ Download | [[http:// | ||
- | ^ Download | [[http:// | + | FIXME (download link is broken) |
+ | Blog entry: http:// | ||
==== Changes ==== | ==== Changes ==== | ||
* 2009-05-04: Original version | * 2009-05-04: Original version | ||
Line 31: | Line 35: | ||
^ Parameter ^ Default ^ Required ^ Allowed Options ^ Description ^ | ^ Parameter ^ Default ^ Required ^ Allowed Options ^ Description ^ | ||
- | |data:< | + | |data:< |
|linecolor:< | |linecolor:< | ||
|bgcolor:< | |bgcolor:< | ||
Line 61: | Line 65: | ||
===== Adding metrics ===== | ===== Adding metrics ===== | ||
- | Metrics are added in the following | + | Metrics are added in the following |
* Have a look at the Google Analytics Data Export API | * Have a look at the Google Analytics Data Export API | ||
* Add a new function at the bottom of analytics.class.php | * Add a new function at the bottom of analytics.class.php | ||
Line 68: | Line 72: | ||
* Add the new //metric// parameter in the // | * Add the new //metric// parameter in the // | ||
* Done :-) | * Done :-) | ||
- | |||
===== Demo Installations ===== | ===== Demo Installations ===== | ||
Here are a few user provided examples of the Google analytics plugin in use: | Here are a few user provided examples of the Google analytics plugin in use: | ||
- | * http:// | + | * http:// |
===== Discussion===== | ===== Discussion===== | ||
Ask your questions here. | Ask your questions here. | ||
Line 108: | Line 110: | ||
</ | </ | ||
- | It also uses classes for connecting with the google | + | It also uses classes for connecting with the Google |
>> | >> | ||
>Just a question about howto get the param " | >Just a question about howto get the param " | ||
- | >> It is simply the ga: | + | >> It is simply the ga: |
https:// | https:// | ||
" | " | ||
+ | |||
+ | |||
+ | Thank you for this plugin, have a suggestion: could it be possible to display a list of the most visited pages? | ||
+ | |||
+ | for instance: | ||
+ | |||
+ | $data = $api-> | ||
+ | |||
+ | where " | ||
+ | |||
+ | ====Monitor two sites==== | ||
+ | >I have two sites, and I want to monitor them at the same time. So it will be more useful to make " | ||
+ | |||
+ | First, add the id parameter. That is, change: | ||
+ | <code php> | ||
+ | switch($parameter){ | ||
+ | case ' | ||
+ | $img[' | ||
+ | </ | ||
+ | to | ||
+ | <code php> | ||
+ | switch($parameter){ | ||
+ | case ' | ||
+ | | ||
+ | break; | ||
+ | case ' | ||
+ | $img[' | ||
+ | </ | ||
+ | Then, replace | ||
+ | <code php> | ||
+ | $oAnalytics-> | ||
+ | </ | ||
+ | with | ||
+ | <code php> | ||
+ | if(array_key_exists(' | ||
+ | $oAnalytics-> | ||
+ | } | ||
+ | else{ | ||
+ | $oAnalytics-> | ||
+ | } | ||
+ | </ |
plugin/ganalytics.txt · Last modified: 2019-08-16 16:39 by Aleksandr