Sean Hammond
53a778161f
Add CKAN 2.0 templates for Google Analytics tracking
...
Everything should still work as it did with CKAN 1.x templates _if_
ckan.legacy_templates is set in your ini file.
The event tracking javascript (ckanext-googleanalytics.js) still needs
to be updated for CKAN 2.0.
Also there is some code in plugin.py:filter() that adds something to the
package and group pages that I haven't implemented for CKAN 2.0 yet.
Tests need to be updated.
README needs to be updated.
2012-10-17 13:06:31 +02:00
Sean Hammond
8f5d60821f
Add some docstrings
...
Make things slightly easier to follow.
2012-10-16 16:03:41 +02:00
Sean Hammond
dcce83bb31
Fix up imports in plugin.py
...
Follow CKAN coding standards: don't use from foo import bar, but
standard library imports before all other imports and ckan imports after
all other imports.
2012-10-16 15:55:15 +02:00
Sean Hammond
bdef9ea233
Move templates and public to legacy_templates and legacy_public
...
Making way for new CKAN 2.0 templates and scripts to be added.
This shouldn't break existing CKAN 1.x functionality.
2012-10-16 15:39:27 +02:00
John Glover
ffd28f4619
Add first batch of Google Analytics track events.
2012-07-11 16:40:17 +01:00
John Glover
03b4023676
Add 'track_events' config option, tidy up config
...
reading.
2012-07-11 14:34:18 +01:00
John Glover
1fa09bae92
Tidy up imports a bit in plugin.py
2012-07-11 10:38:47 +01:00
Toby
db13b0b9cd
changes for new internal tracking
2012-04-05 18:12:25 +01:00
John Glover
16d5d11b86
Bug fix: download count style should only be added
...
once, at the end of the head section.
2011-12-20 13:16:28 +00:00
John Glover
8176247f10
[1451] Track downloads on resource view page.
...
Don't display download count on that page for now.
2011-12-20 10:56:05 +00:00
John Glover
e104e7eb9e
update genshi code for latest dataset view changes
2011-12-19 09:51:25 +00:00
John Glover
c9e8a6b5d9
change summary page to use /dataset, not /package
2011-11-29 17:56:47 +00:00
John Glover
8906260eb1
update plugin filter method and tests for latest
...
ckan (with dataset view changes)
2011-11-29 17:39:49 +00:00
Seb Bacon
11d3777a66
accept non-ascii IRIs
2011-04-10 09:20:49 +01:00
Seb Bacon
8dfa04434f
move local styling to plugin, so we don't override other layout.html files
2011-04-07 09:18:35 +01:00
Seb Bacon
04ea42339a
change 'downloads' wording to be less ambiguous
2011-04-06 12:56:52 +01:00
Seb Bacon
137567b0bf
set show_downloads to True by default
2011-04-06 12:53:59 +01:00
Seb Bacon
0397483a8c
add 'domain' config option for tracking code
2011-04-06 12:01:21 +01:00
Seb Bacon
5a1150f4c7
add show_downloads config option
2011-04-05 15:28:27 +01:00
Seb Bacon
c91ab410c0
more refactoring
2011-04-05 10:38:25 +01:00
Seb Bacon
b69d89bf18
big refactor
2011-04-04 17:44:39 +01:00
Seb Bacon
1f0f25a26f
move plugin to own module
2011-04-04 11:50:18 +01:00