Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Partner site - Piwik tracking #630

Closed
Lynngre opened this issue Jun 16, 2014 · 2 comments
Closed

Partner site - Piwik tracking #630

Lynngre opened this issue Jun 16, 2014 · 2 comments
Assignees
Milestone

Comments

@Lynngre
Copy link

Lynngre commented Jun 16, 2014

We need to break the *.akvoapp.org & their CNAME tracking away from www.akvo.org/rsr.akvo.org.

This will enable partners to start checking their own tracking data & utilising a specific API.

The downside is that this traffic will not be seen by the analytics system as 'akvo.org' traffic anymore, but would need to be manually included when required.

Gabriel to check the adding of the tracking codes onto individual akvoapp's for us.

@adriancollier
Copy link
Contributor

For this I think we should add the tracking code into the rsr_partnersite database table as a field editable in the Admin.

I'm not sure of the impact of the traffic when the instance of Akvo Pages is viewed either directly using the .akvoapp.org domain or the CNAME domain, as both are possible even when the CNAME is in place and working.

@adriancollier adriancollier added this to the 2.3.10 Zambo milestone Jun 24, 2014
@KasperBrandt KasperBrandt modified the milestones: 2.4 Astana, 2.3.10 Zambo Jul 25, 2014
zzgvh added a commit that referenced this issue Aug 28, 2014
Since the piwik app is so small, it seems easiest to integrate the code
in the rsr templatetags and then do the modifications needed there.

This commit just moves the code from django-piwik into rsr.
zzgvh added a commit that referenced this issue Aug 28, 2014
...to get thread local settings to actually work

Without it the assignment to a thread local setting wont happen.

See https://gist.github.com/802020/b638e41fa8852d308468c02d07dd3e1365c33def
zzgvh added a commit that referenced this issue Aug 28, 2014
And to the admin and a migration
zzgvh added a commit that referenced this issue Aug 28, 2014
zzgvh added a commit that referenced this issue Aug 28, 2014
Work around the SQL query that hangs by assembling the list of countries
in python instead.

Use prefetch_related() to (hopefully) minimize the number of queries
needed.
@adriancollier
Copy link
Contributor

This was included within 2.4 Astana

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

4 participants