Closed
Bug 959376
Opened 10 years ago
Closed 10 years ago
Implement analytics middleware for super-search module
Categories
(Socorro :: Webapp, task)
Socorro
Webapp
Tracking
(Not tracked)
RESOLVED
FIXED
72
People
(Reporter: lonnen, Assigned: adrian)
Details
Our analytics aren't picking up any page views from search, and search doesn't seem to be getting the urchin. I think this is because super search is implemented as its own django-app and doesn't get the analytics injecting middleware.
Assignee | ||
Comment 1•10 years ago
|
||
I don't understand what's happening. The analytics JS is on the search page: https://crash-stats.mozilla.com/search/ Could it be because that page uses AJAX all around to get results? Can we make something to tell Analytics that the page URL changed?
Reporter | ||
Comment 2•10 years ago
|
||
That'll do it. We can work around it with something similar to: http://davidwalsh.name/ajax-analytics The urchin may have been updated since then, but there must be similar or equivalent techniques if its changes. I didn't look into it too deeply. We can also use this to track the in-page tab usage if we want. We need to make sure we check for the existence of the analytics urchin before trying to interact with it. We don't want to degrade functionality for users running adblock or similar.
Assignee | ||
Comment 3•10 years ago
|
||
Pull request: https://github.com/mozilla/socorro/pull/1819 Thanks for the help :lonnen!
Assignee | ||
Updated•10 years ago
|
OS: Mac OS X → All
Hardware: x86 → All
Target Milestone: --- → 73
Comment 4•10 years ago
|
||
Commits pushed to master at https://github.com/mozilla/socorro https://github.com/mozilla/socorro/commit/22f4a8c90fb5658065fe5b2c5c28607a0408e904 Fixes bug 959376 - Track supersearch calls in Google Analytics. https://github.com/mozilla/socorro/commit/bf29250a711ce8d6e92daafc320727c6369b45d4 Merge pull request #1819 from AdrianGaudebert/959376-supersearch-analytics Fixes bug 959376 - Track supersearch calls in Google Analytics.
Updated•10 years ago
|
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Reporter | ||
Updated•10 years ago
|
Target Milestone: 73 → 72
You need to log in
before you can comment on or make changes to this bug.
Description
•