notes about restarting

This commit is contained in:
Seb Bacon 2011-04-07 10:41:27 +01:00
parent 0f1ee343bc
commit 4ad3402ca6
1 changed files with 12 additions and 10 deletions

View File

@ -16,7 +16,13 @@ Installation
$ pip install -e hg+https://bitbucket.org/okfn/ckanext-googleanalytics#egg=ckanext-googleanalytics
2. Edit your development.ini (or similar) to activate the extension
2. Run the following command from ``src/ckanext-googleanalytics`` to
set up the required database tables (of course, altering the
``--config`` option to point to your site config file)::
paster initdb --config=../ckan/development.ini
3. Edit your development.ini (or similar) to activate the extension
with:
::
@ -60,22 +66,18 @@ Installation
to specify something like ``.mydomain.com``. See `Google's
documentation <http://code.google.com/apis/analytics/docs/gaJS/gaJSApiDomainDirectory.html#_gat.GA_Tracker_._setDomainName>`_ for more info.
3. Run the following command from ``src/ckanext-googleanalytics`` to
set up the required database tables (of course, altering the
``--config`` option to point to your site config file)::
4. Restart CKAN (e.g. by restarting Apache)
paster initdb --config=../ckan/development.ini
5. Wait a while for some stats to be recorded in Google
4. Wait a while for some stats to be recorded in Google
5. Import Google stats by running the following command from
6. Import Google stats by running the following command from
``src/ckanext-googleanalytics``::
paster loadanalytics --config=../ckan/development.ini
(Of course, pointing config at your specific site config)
6. Look at some stats within CKAN
7. Look at some stats within CKAN
Once your GA account has gathered some data, you can see some basic
information about the most popular packages at:
@ -85,7 +87,7 @@ Installation
website is on the package page, where number of downloads are
displayed next to each resource.
7. Consider running the import command reguarly as a cron job, or
8. Consider running the import command reguarly as a cron job, or
remember to run it by hand, or your statistics won't get updated.
Testing