You are here

README.txt in Yandex.Metrics 8.2

------------------------------------------------------------------------------
                            YANDEX.METRICS MODULE
------------------------------------------------------------------------------


The Yandex.Metrica [1] service is European alternative of Google Analytics.

The Yandex.Metrics project helps to integrate a website with the Yandex.Metrica [1].

Since version 7.x-2.x project consists of two modules.

* Yandex.Metrics Counter module
    Features:
        * Installing Yandex.Metrica counter code on site
        * Configuring visibility of the counter
    Dependencies
        * NO DEPENDENCIES! Just enable and use.

* Yandex.Metrics Reports module
    Note:
        The Yandex.Metrica API [2] is used for communication with Yandex.Metrica service.
    Features:
        * Authorizing of your site on Yandex services (through oAuth 2.0)
        * Reports and charts:
            * Page Views, Visitors, New Visitors
            * Traffic Sources
            * Popular Search Phrases
            * Popular Content
            * Geography of Visits
            * Hourly Traffic
            * Demography of Visits
        * Block with popular content links (Views module is used)
    Dependencies
        * Yandex.Metrics Counter module
        * Google chart API [3]
        * Views [4]
        * [Optional] For support of internationalized domain names
          download idna_convert class [5] of Matthias Sommerfeld and copy it
          into the 'sites/all/libraries/idna_convert/' or 'sites/name_of_your_site/libraries/idna_convert/'
          folder of your Drupal setup.

Available interface translations
Russian (Русский)



INSTALLING
------------------------------------------------------------------------------
1. Backup your database.

2. Make sure you resolved dependencies of modules. If you are going to use Yandex.Metrics Reports module
   please install Google chart API [3] and Views [4] modules first.

3. If you use internationalized domain name you should download PHP file idna_convert.class.php
   of Matthias Sommerfeld from [5] and copy it into the 'sites/all/libraries/idna_convert/' or
   'sites/name_of_your_site/libraries/idna_convert/' folder of your Drupal setup.

4. Copy the complete 'yandex_metrics/' directory into the 'sites/all/modules/',
   'sites/default/modules' or 'sites/name_of_your_site/modules' folder of 
   your Drupal setup. 
   More information about installing contributed modules could be found at 
   "Install contributed modules" (http://drupal.org/node/70151)

5. Enable necessary modules in "Yandex.Metrics" section of module administration page
   (Administration >> Modules).

6. Configure modules (see "CONFIGURATION" below).



UPDATING
------------------------------------------------------------------------------
1. Verify that the version you are going to upgrade contains all the features
   you are using in your Drupal setup. Some features could have been removed
   or replaced by others.

2. Read carefully in the project issue tracking about upgrade paths problems
   before you start the upgrade process.

3. Backup your database.

4. Update current module code with latest recommended version. Previous versions
   could have bugs already reported and fixed in the last version.

5. Complete the update process, set maintenance mode, call the update.php script 
   and finish the update operation.
   For more information please go to: http://groups.drupal.org/node/19513

6. Verify your module configuration and check that the features you are using
   work as expected. Also verify that all required modules are enabled, and
   permissions are set as desired.

Note: whenever you have the chance, try an update in a local or development
      copy of your site.


CONFIGURATION
------------------------------------------------------------------------------
* Yandex.Metrics Counter module
    1. On the access control administration page ("Administration >> People >> Permissions")
       you need to assign:

        *	"Administer Yandex.Metrics Settings" permission to the roles that are allowed
            to administer the Yandex.Metrics settings.

    2. Create Yandex.Metrica [1] account.

       Please skip this step if you have already had it.

    3. Create Yandex.Metrica counter for your site at Yandex.Metrica admin interface.

       Note: We recommend to create simple counter without any widget
             but counter code with widget is acceptable.

       Generate and save this Javascript code for later usage.

       Please skip this step if you have already created a counter.

    4. Go to the module settings page ("Administration >> Configuration >> System >> Yandex.Metrics")
       Users need the "Administer Yandex.Metrics Settings" permission to access to this page.

       Paste Javascript code of counter from Yandex.Metrica to the Counter Code text field
       on the Counter Code settings page.
       You can also define counter code visibility settings.
       Then submit form.
       By this step you add counter code to the footer of permitted pages of your site.

       Please skip this step if you have already added Yandex.Metrica counter code on your site pages
       through another way.

       Please skip next steps if you need nothing except installation of the counter code.


* Yandex.Metrics Reports module
    1. On the access control administration page ("Administration >> People >> Permissions")
       you need to assign:

        *   "Access Yandex.Metrics report" permission to the roles that are allowed
            to view Yandex.Metrics Summary Report

    2. Register your Yandex application. Use Yandex step-by-step guide [6]
       to perform this step.

       Enter Callback URI for your Yandex application.
       Callback URI: http://YOUR_SITE_HOST_NAME/yandex_metrics/oauth

       Save your application Client ID and Client Secret for later usage.

    3. Application authorization.
       Go to Authorization tab (Administration >> Configuration >> System >> Yandex.Metrics >> Authorization)
       and paste application Client ID and Client Secret into the corresponding fields.
       Then press Authorise Application button to submit form.

       You will be redirected to the special Yandex page.
       You should confirm your application authorization on that page.
       Enter your Yandex login and password if it will be necessary.

       Then your will be redirected back to the settings page of the Yandex.Metrics module on your site
       and get success message.

    4. Reports settings
       Go to Reports tab (Administration >> Configuration >> System >> Yandex.Metrics >> Reports)
       to enable or disable some of the reports.

    5. Check Yandex.Metrics Summary Report content
       ("Administration >> Reports >> Yandex.Metrics Summary Report").
       To access this page users need the "Access Yandex.Metrics report" permission.
       Note:
         Your report can be empty if you have just created Yandex.Metrics counter
         and placed it to your site. Probably statistic information have not been collected yet.
         Please try again later.

    6. After successful module installation and configuration, you will be able to enable "Popular content (Yandex.Metrics)" block.
       This block shows popular content pulled from Yandex.Metrica as a list of links.

       To enable module go to ("Administration >> Structure >> Blocks")

       To configure block settings you can change "Popular content" view ("Administration >> Structure >> Views")

    7. The module uses CRON [7] for fetching data for "Popular Content" view from Yandex.Metrica.
       Go to Cron settings page (Administration >> Configuration >> System >> Yandex.Metrics >> Cron)
       to configure some settings.


DEVELOPMENT
------------------------------------------------------------------------------
Read how to write own plugins for Yandex.Metrics Reports module in yandex_metrics_reports/API.txt .


BUGS AND SHORTCOMINGS
------------------------------------------------------------------------------
* See the list of project issues [8].


CREDITS
------------------------------------------------------------------------------
Maintainers: Konstantin Komelin [9], Kate Marshalkina [10]
Original idea: Konstantin Komelin [9], Alex Sorokin [11]
Contributor list: [12]
Thanks all great guys who contributed to the project!


LINKS
------------------------------------------------------------------------------
[1] http://metrica.yandex.com/
[2] http://api.yandex.com/metrika/
[3] http://drupal.org/project/chart
[4] http://drupal.org/project/views
[5] http://www.phpclasses.org/browse/file/5845.html
[6] http://api.yandex.com/oauth/doc/dg/tasks/register-client.xml
[7] http://drupal.org/cron
[8] http://drupal.org/project/issues/yandex_metrics
[9] http://drupal.org/user/1195752
[10] http://drupal.org/user/1399638
[11] http://drupal.org/user/108088
[12] http://drupal.org/node/1180284/committers

File

README.txt
View source
  1. ------------------------------------------------------------------------------
  2. YANDEX.METRICS MODULE
  3. ------------------------------------------------------------------------------
  4. The Yandex.Metrica [1] service is European alternative of Google Analytics.
  5. The Yandex.Metrics project helps to integrate a website with the Yandex.Metrica [1].
  6. Since version 7.x-2.x project consists of two modules.
  7. * Yandex.Metrics Counter module
  8. Features:
  9. * Installing Yandex.Metrica counter code on site
  10. * Configuring visibility of the counter
  11. Dependencies
  12. * NO DEPENDENCIES! Just enable and use.
  13. * Yandex.Metrics Reports module
  14. Note:
  15. The Yandex.Metrica API [2] is used for communication with Yandex.Metrica service.
  16. Features:
  17. * Authorizing of your site on Yandex services (through oAuth 2.0)
  18. * Reports and charts:
  19. * Page Views, Visitors, New Visitors
  20. * Traffic Sources
  21. * Popular Search Phrases
  22. * Popular Content
  23. * Geography of Visits
  24. * Hourly Traffic
  25. * Demography of Visits
  26. * Block with popular content links (Views module is used)
  27. Dependencies
  28. * Yandex.Metrics Counter module
  29. * Google chart API [3]
  30. * Views [4]
  31. * [Optional] For support of internationalized domain names
  32. download idna_convert class [5] of Matthias Sommerfeld and copy it
  33. into the 'sites/all/libraries/idna_convert/' or 'sites/name_of_your_site/libraries/idna_convert/'
  34. folder of your Drupal setup.
  35. Available interface translations
  36. Russian (Русский)
  37. INSTALLING
  38. ------------------------------------------------------------------------------
  39. 1. Backup your database.
  40. 2. Make sure you resolved dependencies of modules. If you are going to use Yandex.Metrics Reports module
  41. please install Google chart API [3] and Views [4] modules first.
  42. 3. If you use internationalized domain name you should download PHP file idna_convert.class.php
  43. of Matthias Sommerfeld from [5] and copy it into the 'sites/all/libraries/idna_convert/' or
  44. 'sites/name_of_your_site/libraries/idna_convert/' folder of your Drupal setup.
  45. 4. Copy the complete 'yandex_metrics/' directory into the 'sites/all/modules/',
  46. 'sites/default/modules' or 'sites/name_of_your_site/modules' folder of
  47. your Drupal setup.
  48. More information about installing contributed modules could be found at
  49. "Install contributed modules" (http://drupal.org/node/70151)
  50. 5. Enable necessary modules in "Yandex.Metrics" section of module administration page
  51. (Administration >> Modules).
  52. 6. Configure modules (see "CONFIGURATION" below).
  53. UPDATING
  54. ------------------------------------------------------------------------------
  55. 1. Verify that the version you are going to upgrade contains all the features
  56. you are using in your Drupal setup. Some features could have been removed
  57. or replaced by others.
  58. 2. Read carefully in the project issue tracking about upgrade paths problems
  59. before you start the upgrade process.
  60. 3. Backup your database.
  61. 4. Update current module code with latest recommended version. Previous versions
  62. could have bugs already reported and fixed in the last version.
  63. 5. Complete the update process, set maintenance mode, call the update.php script
  64. and finish the update operation.
  65. For more information please go to: http://groups.drupal.org/node/19513
  66. 6. Verify your module configuration and check that the features you are using
  67. work as expected. Also verify that all required modules are enabled, and
  68. permissions are set as desired.
  69. Note: whenever you have the chance, try an update in a local or development
  70. copy of your site.
  71. CONFIGURATION
  72. ------------------------------------------------------------------------------
  73. * Yandex.Metrics Counter module
  74. 1. On the access control administration page ("Administration >> People >> Permissions")
  75. you need to assign:
  76. * "Administer Yandex.Metrics Settings" permission to the roles that are allowed
  77. to administer the Yandex.Metrics settings.
  78. 2. Create Yandex.Metrica [1] account.
  79. Please skip this step if you have already had it.
  80. 3. Create Yandex.Metrica counter for your site at Yandex.Metrica admin interface.
  81. Note: We recommend to create simple counter without any widget
  82. but counter code with widget is acceptable.
  83. Generate and save this Javascript code for later usage.
  84. Please skip this step if you have already created a counter.
  85. 4. Go to the module settings page ("Administration >> Configuration >> System >> Yandex.Metrics")
  86. Users need the "Administer Yandex.Metrics Settings" permission to access to this page.
  87. Paste Javascript code of counter from Yandex.Metrica to the Counter Code text field
  88. on the Counter Code settings page.
  89. You can also define counter code visibility settings.
  90. Then submit form.
  91. By this step you add counter code to the footer of permitted pages of your site.
  92. Please skip this step if you have already added Yandex.Metrica counter code on your site pages
  93. through another way.
  94. Please skip next steps if you need nothing except installation of the counter code.
  95. * Yandex.Metrics Reports module
  96. 1. On the access control administration page ("Administration >> People >> Permissions")
  97. you need to assign:
  98. * "Access Yandex.Metrics report" permission to the roles that are allowed
  99. to view Yandex.Metrics Summary Report
  100. 2. Register your Yandex application. Use Yandex step-by-step guide [6]
  101. to perform this step.
  102. Enter Callback URI for your Yandex application.
  103. Callback URI: http://YOUR_SITE_HOST_NAME/yandex_metrics/oauth
  104. Save your application Client ID and Client Secret for later usage.
  105. 3. Application authorization.
  106. Go to Authorization tab (Administration >> Configuration >> System >> Yandex.Metrics >> Authorization)
  107. and paste application Client ID and Client Secret into the corresponding fields.
  108. Then press Authorise Application button to submit form.
  109. You will be redirected to the special Yandex page.
  110. You should confirm your application authorization on that page.
  111. Enter your Yandex login and password if it will be necessary.
  112. Then your will be redirected back to the settings page of the Yandex.Metrics module on your site
  113. and get success message.
  114. 4. Reports settings
  115. Go to Reports tab (Administration >> Configuration >> System >> Yandex.Metrics >> Reports)
  116. to enable or disable some of the reports.
  117. 5. Check Yandex.Metrics Summary Report content
  118. ("Administration >> Reports >> Yandex.Metrics Summary Report").
  119. To access this page users need the "Access Yandex.Metrics report" permission.
  120. Note:
  121. Your report can be empty if you have just created Yandex.Metrics counter
  122. and placed it to your site. Probably statistic information have not been collected yet.
  123. Please try again later.
  124. 6. After successful module installation and configuration, you will be able to enable "Popular content (Yandex.Metrics)" block.
  125. This block shows popular content pulled from Yandex.Metrica as a list of links.
  126. To enable module go to ("Administration >> Structure >> Blocks")
  127. To configure block settings you can change "Popular content" view ("Administration >> Structure >> Views")
  128. 7. The module uses CRON [7] for fetching data for "Popular Content" view from Yandex.Metrica.
  129. Go to Cron settings page (Administration >> Configuration >> System >> Yandex.Metrics >> Cron)
  130. to configure some settings.
  131. DEVELOPMENT
  132. ------------------------------------------------------------------------------
  133. Read how to write own plugins for Yandex.Metrics Reports module in yandex_metrics_reports/API.txt .
  134. BUGS AND SHORTCOMINGS
  135. ------------------------------------------------------------------------------
  136. * See the list of project issues [8].
  137. CREDITS
  138. ------------------------------------------------------------------------------
  139. Maintainers: Konstantin Komelin [9], Kate Marshalkina [10]
  140. Original idea: Konstantin Komelin [9], Alex Sorokin [11]
  141. Contributor list: [12]
  142. Thanks all great guys who contributed to the project!
  143. LINKS
  144. ------------------------------------------------------------------------------
  145. [1] http://metrica.yandex.com/
  146. [2] http://api.yandex.com/metrika/
  147. [3] http://drupal.org/project/chart
  148. [4] http://drupal.org/project/views
  149. [5] http://www.phpclasses.org/browse/file/5845.html
  150. [6] http://api.yandex.com/oauth/doc/dg/tasks/register-client.xml
  151. [7] http://drupal.org/cron
  152. [8] http://drupal.org/project/issues/yandex_metrics
  153. [9] http://drupal.org/user/1195752
  154. [10] http://drupal.org/user/1399638
  155. [11] http://drupal.org/user/108088
  156. [12] http://drupal.org/node/1180284/committers