Closed Bug 737220 Opened 12 years ago Closed 12 years ago

src attributes for apps stats

Categories

(Marketplace Graveyard :: Consumer Pages, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED
2012-07-12

People

(Reporter: krupa.mozbugs, Assigned: kngo)

References

Details

We need to have src attributes to track:

a) app downloads
b) app purchases(?)

fligtar is okay with using the same format as AMO.
Assignee: nobody → dspasovski
Target Milestone: --- → 6.4.8
Homepage: ?src=mkt-home
Category browse: ?src=mkt-cat
Detail page: ?src=mkt-detail
Search results: ?src=mkt-search
Search suggestions: ?src=mkt-ss
Target Milestone: 6.4.8 → 6.4.9
Priority: -- → P3
Assignee: dspasovski → nobody
Target Milestone: 6.4.9 → 6.5.0
This is the same as data pings.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
src is being passed to metrics, we should set these up in the code as per @cvan's suggestion.
Assignee: nobody → amckay
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
The src is there, but this passes them through to the record and install method.
Status: REOPENED → RESOLVED
Closed: 12 years ago12 years ago
Resolution: --- → FIXED
We are not passing `src` when we record the app installation: https://github.com/mozilla/zamboni/blob/master/mkt/detail/views.py#L48

We should do that until we have metrics logging all this.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
I've noticed that too. But note you don't need to pass src:

https://github.com/mozilla/zamboni/blob/master/lib/metrics/__init__.py#L35

So would need to look at that in more detail.
[16/May/2012 02:50:50] "GET /en-US/app/marble-run-1/?src=search HTTP/1.0" 200 5400
02:50:54 z.metrics:INFO 7c25d2ae-fd2a-4482-8424-f5a0bf05d461|install|{"app-domain": "dekkostudios.com", "locale": "en-US", "src": "search", "app-id": 26, "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:15.0) Gecko/15.0 Firefox/15.0a1"} :/Users/andy/sandboxes/zamboni/lib/metrics/__init__.py:23
[16/May/2012 02:50:55] "POST /en-US/app/marble-run-1/record?src=search HTTP/1.0" 200 870

As long as its in the page that generates the button, it gets passed. Note its in the button JSON.

{"recordUrl": "/en-US/app/marble-run-1/record?src=search"..

Please re-open when you've got a particular example where it doesn't work and we'll fix that.
Status: REOPENED → RESOLVED
Closed: 12 years ago12 years ago
Resolution: --- → FIXED
We're not setting ?src= from the Homepage, Category Browse, Detail Page, etc. per comment 1.
Assignee: amckay → ngoke
Component: Public Pages → Consumer Pages
Product: addons.mozilla.org → Marketplace
QA Contact: web-ui → consumer-pages
Target Milestone: 6.5.0 → 2012-06-28
Version: unspecified → 1.0
Reopening per comment 8.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: 2012-06-28 → 2012-07-05
Target Milestone: 2012-07-05 → 2012-07-12
https://github.com/mozilla/zamboni/commit/a32b7c3c4d029cb79a29f2dfc8c4cee6efafa4ff
Status: REOPENED → RESOLVED
Closed: 12 years ago12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.