Skip to content

Commit

Permalink
oops... wrong file
Browse files Browse the repository at this point in the history
  • Loading branch information
rloomans committed Feb 22, 2017
1 parent 87a5b99 commit 681475e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 16 additions & 0 deletions teamtemp/context_processors/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from django.conf import settings

def google_analytics(request):
"""
Use the variables returned in this function to
render your Google Analytics tracking code template.
"""
ga_prop_id = getattr(settings, 'GOOGLE_ANALYTICS_PROPERTY_ID', False)
ga_domain = getattr(settings, 'GOOGLE_ANALYTICS_DOMAIN', False)
if not settings.DEBUG and ga_prop_id and ga_domain:
return {
'GOOGLE_ANALYTICS_PROPERTY_ID': ga_prop_id,
'GOOGLE_ANALYTICS_DOMAIN': ga_domain,
}
return {}

16 changes: 0 additions & 16 deletions teamtemp/context_processors/google_analytics.py

This file was deleted.

0 comments on commit 681475e

Please sign in to comment.