forked from zpurcey/new-teamtemp
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
16 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 {} | ||
|
This file was deleted.
Oops, something went wrong.