Changeset 1430911
- Timestamp:
- 06/05/2016 04:01:18 PM (10 years ago)
- File:
-
- 1 edited
-
simple-ga-ranking/tags/2.0.5/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
simple-ga-ranking/tags/2.0.5/readme.txt
r1430796 r1430911 11 11 12 12 Ranking plugin using data from google analytics. 13 The feature to work very lightweight, because it is not save ranking data in WordPress DB. 13 14 14 15 = How use = 15 1. Set your Google analytics account and so on at the Simple GA Ranking's option page (Settings->Simple GA Ranking). 16 17 2. Put the short code at where you'd like to show the ranking. 18 19 3. You can use many kind of filters by post-type or taxonomy. For example, you can show only posts and pages by `[sga_ranking post_type="post,page"]`. Also, showing posts in only WordPress category by `[sga_ranking post_type="post" category__in="wordpress"]`. 20 21 4. The short code supports parameters as follows: `post_type`, `exclude_post_type`, `'taxonomy_slug'__in`, `'taxonomy_slug'__not_in`, filter. All parameters except “filter” need to be set the slug(s). 22 23 - post_type: set the attribute of the slug of the post-type you’d like to show. You can set multiple sulgs separeted by comma. 24 25 - exclude_post_type: set the attribute of the post-type you’d NOT like to show. You can set multiple sulgs separeted by comma. 26 27 - 'taxonomy_slug'__in: set the attribute of the taxonomy you’d like to show. You can set multiple terms separeted by comma. 28 29 - 'taxonomy_slug'__not_in: set the attribute of the taxonomy you’d NOT like to show. You can set multiple terms separeted by comma. 30 31 - filter: You can use the filter parameter as same as the fileter parameter of Google Analytics API. 32 [https://developers.google.com/analytics/devguides/reporting/core/v3/reference](https://developers.google.com/analytics/devguides/reporting/core/v3/reference) 33 34 For example, suppose you have a multi-languages site with direcotry based multisite, and take the statistic of all sites of the multisite having with the URL structure as follows by one GA account. 35 http://example.com/ja 36 http://example.com/en 37 http://example.com/cn 38 39 When you’d like to take the statistic of each site, revise like below. 40 [sga_ranking filter="ga:pagePath=~^/ja/"] 41 [sga_ranking filter="ga:pagePath=~^/en/"] 42 [sga_ranking filter="ga:pagePath=~^/cn/"] 43 44 Please try ohter parameters using the below sites as a reference. 45 [https://support.google.com/analytics/answer/1034324?hl=en](https://support.google.com/analytics/answer/1034324?hl=en) 46 [https://developers.google.com/analytics/devguides/reporting/core/v3/reference?hl=en](https://developers.google.com/analytics/devguides/reporting/core/v3/reference?hl=en) 47 48 You can use JSON REST API Endpoint. Require plugin [JSON REST API](https://wordpress.org/plugins/json-rest-api/) 49 `http://example.com/wp-json/ranking` 50 `http://example.com/wp-json/ranking?filter[display_count]=10` 51 `http://example.com/wp-json/ranking?filter[period]=7` 16 Please show [the official site](http://simple-ga-ranking.org/). 52 17 53 18 = Translators =
Note: See TracChangeset
for help on using the changeset viewer.