analytics: (cleanup) Consolidate skip conditions.

This commit is contained in:
Max Goodman
2013-02-03 23:04:00 -08:00
parent 38c21e78d4
commit 1870a3e474

View File

@@ -32,7 +32,7 @@ r.analytics = {
sponsorship = thing.data('sponsorship'),
campaign = thing.data('cid')
if (!fullname)
if (!fullname || fullname in r.analytics.trackers)
return
if (sponsorship)
@@ -45,9 +45,7 @@ r.analytics = {
fullname += '-' + r.config.post_site
thing.data('trackingName', fullname)
if (!(fullname in r.analytics.trackers))
fullnames.push(fullname)
fullnames.push(fullname)
})
$.ajax({