This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

fetch_trackers: Change tracking_domain config to be a full URL.

  • Loading branch information...
1 parent 73f518a commit 03022931ca5c0750854f836dab0e5dabfc3051d4 @spladug spladug committed Jan 25, 2013
Showing with 3 additions and 3 deletions.
  1. +1 −1 r2/example.ini
  2. +1 −1 r2/r2/lib/template_helpers.py
  3. +1 −1 r2/r2/public/static/js/analytics.js
View
@@ -180,7 +180,7 @@ rec_cache = 127.0.0.1:11211
## -- traffic tracking urls --
# domain to send tracking requests (see scripts/tracker.py)
-tracking_domain = reddit.local
+fetch_trackers_url = http://reddit.local/fetch-trackers
# image to render to track pageviews
tracker_url = /static/pixel.png
# images to render to track sponsored links
@@ -144,7 +144,7 @@ def js_config(extra_config=None):
"loading": _("loading...")
},
"is_fake": isinstance(c.site, FakeSubreddit),
- "tracking_domain": g.tracking_domain,
+ "fetch_trackers_url": g.fetch_trackers_url,
"adtracker_url": g.adtracker_url,
"clicktracker_url": g.clicktracker_url,
"uitracker_url": g.uitracker_url,
@@ -48,7 +48,7 @@ r.analytics = {
})
$.ajax({
- url: 'http://' + r.config.tracking_domain + '/fetch-trackers',
+ url: r.config.fetch_trackers_url,
type: 'get',
dataType: 'jsonp',
data: { 'ids': fullnames },

0 comments on commit 0302293

Please sign in to comment.