diff --git a/README.rst b/README.rst index 36f621f..ed5ed8b 100644 --- a/README.rst +++ b/README.rst @@ -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 `_ 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