Skip to content

Commit 7de38e3

Browse files
author
Coto
committed
refactor for new google analytics code
1 parent e58e07f commit 7de38e3

File tree

4 files changed

+164
-129
lines changed

4 files changed

+164
-129
lines changed

boilerplate/config.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@
6868
'captcha_public_key': "PUT_YOUR_RECAPCHA_PUBLIC_KEY_HERE",
6969
'captcha_private_key': "PUT_YOUR_RECAPCHA_PRIVATE_KEY_HERE",
7070

71-
# Leave blank "google_analytics_domain" if you only want Analytics code
72-
'google_analytics_domain': "YOUR_PRIMARY_DOMAIN (e.g. google.com)",
73-
'google_analytics_code': "UA-XXXXX-X",
71+
# Use a complete Google Analytics code, no just the Tracking ID
72+
# In config/localhost.py there is an example to fill out this value
73+
'google_analytics_code': "",
7474

7575
# add status codes and templates used to catch and display errors
7676
# if a status code is not listed here it will use the default app engine

boilerplate/lib/basehandler.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,6 @@ def render_template(self, filename, **kwargs):
290290

291291
# set or overwrite special vars for jinja templates
292292
kwargs.update({
293-
'google_analytics_domain': self.app.config.get('google_analytics_domain'),
294293
'google_analytics_code': self.app.config.get('google_analytics_code'),
295294
'app_name': self.app.config.get('app_name'),
296295
'user_id': self.user_id,

0 commit comments

Comments
 (0)