update Piwik to version 2.16 (fixes #91)
This commit is contained in:
parent
296343bf3b
commit
d885a4baa9
5833 changed files with 418860 additions and 226988 deletions
145
www/analytics/vendor/piwik/searchengine-and-social-list/README.md
vendored
Normal file
145
www/analytics/vendor/piwik/searchengine-and-social-list/README.md
vendored
Normal file
|
|
@ -0,0 +1,145 @@
|
|||
These are community-contributed definitions for search engine and social network detections list maintained and used by [Piwik](http://piwik.org/), the leading open source web analytics platform.
|
||||
|
||||
# Social Networks
|
||||
|
||||
Social networks are defined in YAML format in the file `Socials.yml`
|
||||
|
||||
The definitions contain the name of the social network, as well as a list of one or more urls.
|
||||
|
||||
```YAML
|
||||
"My Social Network":
|
||||
- my-social-network.com
|
||||
- mysocial.org
|
||||
```
|
||||
|
||||
# Search Engines
|
||||
|
||||
Search engines are defined in YAML format in the file `SearchEngines.yml`
|
||||
|
||||
Definitions of search engines contain several parameters that are required to be able to detect which search engine and which search keywords are included in a given url.
|
||||
|
||||
Those parameters are:
|
||||
- name of the engine
|
||||
- URLs of the engine
|
||||
- request parameters (or regexes), that can be used to get the search keyword
|
||||
- backlink pattern, that can be used to create a valid link back to the search engine (with the keyword)
|
||||
- charsets that might be used to convert keyword to UTF-8
|
||||
|
||||
For each search engine (name) it is possible to define multiple configurations.
|
||||
Each configuration needs to include one or more urls, one or more parameters/regexes and may include a backlink and one or more charsets.
|
||||
|
||||
## Configuration parameters
|
||||
|
||||
### urls
|
||||
|
||||
Each configuration needs to contain one ore more urls. Please only define the hostname.
|
||||
You can use `{}` as a placeholder for country shortcodes in subdomains or tld.
|
||||
- `{}.searchengine.com` would also match `de.searchengine.com` or `nl.searchengine.com`
|
||||
- `searchengine.{}` would also match `searchengine.de` or `searchengine.nl`
|
||||
|
||||
NOTE: For tlds only `{}` would also match combined tlds like `co.uk`. (Full list `com.*, org.*, net.*, co.*, it.*, edu.*`)
|
||||
|
||||
### params
|
||||
|
||||
Each configuration needs to contain one or more params. A param is a name of a request param that might be available in the url.
|
||||
As many search engines do not use query parameters to handle the keywords, but include them in the url structure, it is also possible to define a regex.
|
||||
A regex need to be encapsulated by '/'
|
||||
|
||||
```YAML
|
||||
SearchEngine:
|
||||
-
|
||||
urls:
|
||||
- searchengine.com
|
||||
params:
|
||||
- q
|
||||
- '/search\/[^\/]+\/(.*)/'
|
||||
```
|
||||
|
||||
The example above would first try to get the keyword with the request param `q`. If that is not available it would use the regex `'/search\/[^\/]+\/(.*)/'` to get it.
|
||||
This regex would match an url like 'http://searchengine.com/search/web/piwik'
|
||||
|
||||
### backlink
|
||||
|
||||
A backlink will be used to generate a link back to the search engine including the given keyword. backlinks may be defined per configuration and need to include `{k}` as placeholder for the keyword.
|
||||
|
||||
```YAML
|
||||
SearchEngine:
|
||||
-
|
||||
urls:
|
||||
- searchengine.com
|
||||
params:
|
||||
- q
|
||||
backlink: '/search?q={k}'
|
||||
```
|
||||
|
||||
For the configuration above the generated backlink would look like `searchengine.com/search?q=piwik` (assuming that `piwik` is the keyword).
|
||||
|
||||
NOTE: The backlink will always be generated using the __first__ defined url in this configuration block.
|
||||
|
||||
### charsets
|
||||
|
||||
Charsets can be defined if search engines are using charsets other than UTF-8. The provided charset will be used to convert any detected search keyword to UTF-8.
|
||||
|
||||
## Simple definition
|
||||
|
||||
A simple defintion of a search eninge might look like this:
|
||||
|
||||
```YAML
|
||||
SearchEngine:
|
||||
-
|
||||
urls:
|
||||
- searchengine.com
|
||||
- search-engine.org
|
||||
params:
|
||||
- q
|
||||
- as_q
|
||||
```
|
||||
|
||||
The example above would match for the hosts `searchengine.com` and `search-engine.org` and use the request parameters `q` and `as_q` (in this order) to detect the search keyword.
|
||||
|
||||
## Multiple configurations
|
||||
|
||||
A simple definition of a search eninge with multiple configurations might look like this:
|
||||
|
||||
```YAML
|
||||
SearchEngine:
|
||||
-
|
||||
urls:
|
||||
- searchengine.com
|
||||
params:
|
||||
- as_q
|
||||
-
|
||||
urls:
|
||||
- search-engine.org
|
||||
params:
|
||||
- q
|
||||
```
|
||||
|
||||
The example above would again match for the hosts `searchengine.com` and `search-engine.org`. But differently to the first example the request parameter `q` would only be used for `search-engine.org` and `as_q` only for `searchengine.com`.
|
||||
|
||||
## Complete definition
|
||||
|
||||
A complete definition (including all optionals) of a search engine might look like this:
|
||||
|
||||
```YAML
|
||||
SearchEngine:
|
||||
-
|
||||
urls:
|
||||
- searchengine.com
|
||||
params:
|
||||
- q
|
||||
backlink: '/search?q={k}'
|
||||
charsets:
|
||||
- windows-1250
|
||||
-
|
||||
urls:
|
||||
- search-engine.org
|
||||
params:
|
||||
- as_q
|
||||
```
|
||||
|
||||
In this case, a backlink and charset is only defined for the first configuration. Which means there is no backlink nor charset set for `search-engine.org`.
|
||||
|
||||
# Contribute
|
||||
|
||||
We welcome your contributions and Pull requests at [github.com/piwik/searchengine-and-social-list](https://github.com/piwik/searchengine-and-social-list/edit/master/README.md)!
|
||||
2304
www/analytics/vendor/piwik/searchengine-and-social-list/SearchEngines.yml
vendored
Normal file
2304
www/analytics/vendor/piwik/searchengine-and-social-list/SearchEngines.yml
vendored
Normal file
File diff suppressed because it is too large
Load diff
217
www/analytics/vendor/piwik/searchengine-and-social-list/Socials.yml
vendored
Normal file
217
www/analytics/vendor/piwik/searchengine-and-social-list/Socials.yml
vendored
Normal file
|
|
@ -0,0 +1,217 @@
|
|||
Facebook:
|
||||
- facebook.com
|
||||
- fb.me
|
||||
|
||||
Ozone:
|
||||
- qzone.qq.com
|
||||
|
||||
Haboo:
|
||||
- habbo.com
|
||||
|
||||
Twitter:
|
||||
- twitter.com
|
||||
- t.co
|
||||
|
||||
Renren:
|
||||
- renren.com
|
||||
|
||||
"Windows Live Spaces":
|
||||
- login.live.com
|
||||
|
||||
LinkedIn:
|
||||
- linkedin.com
|
||||
|
||||
Bebo:
|
||||
- bebo.com
|
||||
|
||||
Vkontakte:
|
||||
- vk.com
|
||||
- vkontakte.ru
|
||||
|
||||
Tagged:
|
||||
- login.tagged.com
|
||||
|
||||
Orkut:
|
||||
- orkut.com
|
||||
|
||||
Myspace:
|
||||
- myspace.com
|
||||
|
||||
Frinedster:
|
||||
- friendster.com
|
||||
|
||||
Badoo:
|
||||
- badoo.com
|
||||
|
||||
hi5:
|
||||
- hi5.com
|
||||
|
||||
Netlog:
|
||||
- netlog.com
|
||||
|
||||
Flixster:
|
||||
- flixster.com
|
||||
|
||||
MyLife:
|
||||
- mylife.ru
|
||||
|
||||
Classmates.com:
|
||||
- classmates.com
|
||||
|
||||
Github:
|
||||
- github.com
|
||||
|
||||
Google%2B:
|
||||
- plus.google.com
|
||||
- url.google.com
|
||||
|
||||
douban:
|
||||
- douban.com
|
||||
|
||||
dribbble:
|
||||
- dribbble.com
|
||||
|
||||
Odnoklassniki:
|
||||
- odnoklassniki.ru
|
||||
|
||||
Viadeo:
|
||||
- viadeo.com
|
||||
|
||||
Flickr:
|
||||
- flickr.com
|
||||
|
||||
WeeWorld:
|
||||
- weeworld.com
|
||||
|
||||
Last.fm:
|
||||
- last.fm
|
||||
- lastfm.ru
|
||||
- lastfm.de
|
||||
- lastfm.es
|
||||
- lastfm.fr
|
||||
- lastfm.it
|
||||
- lastfm.jp
|
||||
- lastfm.pl
|
||||
- lastfm.com.br
|
||||
- lastfm.se
|
||||
- lastfm.com.tr
|
||||
|
||||
MyHeritage:
|
||||
- myheritage.com
|
||||
|
||||
Xanga:
|
||||
- xanga.com
|
||||
|
||||
Mixi:
|
||||
- mixi.jp
|
||||
|
||||
Cyworld:
|
||||
- global.cyworld.com
|
||||
|
||||
Gaia Online:
|
||||
- gaiaonline.com
|
||||
|
||||
Skyrock:
|
||||
- skyrock.com
|
||||
|
||||
BlackPlanet:
|
||||
- blackplanet.com
|
||||
|
||||
myYearbook:
|
||||
- myyearbook.com
|
||||
|
||||
Fotolog:
|
||||
- fotolog.com
|
||||
|
||||
"Friends Reunited":
|
||||
- friendsreunited.com
|
||||
|
||||
LiveJournal:
|
||||
- livejournal.ru
|
||||
- livejournal.com
|
||||
|
||||
StudiVZ:
|
||||
- studivz.net
|
||||
|
||||
MeinVZ:
|
||||
- meinvz.net
|
||||
|
||||
StackOverflow:
|
||||
- stackoverflow.com
|
||||
|
||||
Sonico.com:
|
||||
- sonico.com
|
||||
|
||||
Pinterest:
|
||||
- pinterest.com
|
||||
|
||||
Plaxo:
|
||||
- plaxo.com
|
||||
|
||||
Geni.com:
|
||||
- geni.com
|
||||
|
||||
Tuenti:
|
||||
- tuenti.com
|
||||
|
||||
XING:
|
||||
- xing.com
|
||||
|
||||
Taringa!:
|
||||
- taringa.net
|
||||
|
||||
Nasza-klasa.pl:
|
||||
- nk.pl
|
||||
|
||||
StumbleUpon:
|
||||
- stumbleupon.com
|
||||
|
||||
Sourceforge:
|
||||
- sourceforge.net
|
||||
|
||||
Hyves:
|
||||
- hyves.nl
|
||||
|
||||
WAYN:
|
||||
- wayn.com
|
||||
|
||||
Buzznet:
|
||||
- buzznet.com
|
||||
|
||||
Multiply:
|
||||
- multiply.com
|
||||
|
||||
Foursquare:
|
||||
- foursquare.com
|
||||
|
||||
vkrugudruzei.ru:
|
||||
- vkrugudruzei.ru
|
||||
|
||||
my.mail.ru:
|
||||
- my.mail.ru
|
||||
|
||||
MoiKrug.ru:
|
||||
- moikrug.ru
|
||||
|
||||
reddit:
|
||||
- reddit.com
|
||||
|
||||
"Hacker News":
|
||||
- news.ycombinator.com
|
||||
|
||||
identi.ca:
|
||||
- identi.ca
|
||||
|
||||
Weibo:
|
||||
- weibo.com
|
||||
- t.cn
|
||||
|
||||
YouTube:
|
||||
- youtube.com
|
||||
- youtu.be
|
||||
|
||||
Vimeo:
|
||||
- vimeo.com
|
||||
|
||||
tumblr:
|
||||
- tumblr.com
|
||||
5
www/analytics/vendor/piwik/searchengine-and-social-list/composer.json
vendored
Normal file
5
www/analytics/vendor/piwik/searchengine-and-social-list/composer.json
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"name": "piwik/searchengine-and-social-list",
|
||||
"description": "Search engine and social network definitions used by Piwik",
|
||||
"license": "Public Domain"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue