Closed Bug 1010729 Opened 10 years ago Closed 10 years ago

Add a virtual pageview tracking function to webmaker-analytics

Categories

(Webmaker Graveyard :: Metrics, defect, P3)

x86
macOS
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: adam, Assigned: adam)

References

Details

Attachments

(1 file)

In some cases within our sites it would be useful to track virtual page views in Google Analytics. These are different from event tracking as they allow us to understand user-flow between pages. Event tracking is not sequential.

The first place we want to use this is to record a virtual page view for the create new user modal. Technically this modal can appear over any page on webmaker, but from a UX tracking point of view it is a sequential step for the user to engage with.

To track these pageviews we should update the webmaker-analytics module, using the same design as the event tracking function:

https://github.com/mozilla/webmaker-analytics

* Add analytics.virtualpageview("pagename") event
* Prefix all of these with "/virtual/" so they get recorded in GA as "/virtual/pagename"
* Update tests
* Update documentation
Priority: -- → P3
Assignee: nobody → adam
Status: NEW → ASSIGNED
Attachment #8429274 - Flags: review?(scott)
Attachment #8429274 - Flags: review?(david.humphrey)
Comment on attachment 8429274 [details] [review]
https://github.com/mozilla/webmaker-analytics/pull/3

A few suggestions for code simplification.  r=me with those.  I haven't run the tests, Scott can do that maybe?
Attachment #8429274 - Flags: review?(david.humphrey) → review+
(In reply to David Humphrey (:humph) from comment #2)
> Comment on attachment 8429274 [details] [review]
> https://github.com/mozilla/webmaker-analytics/pull/3
> 
> A few suggestions for code simplification.  
Much appreciated :) 

> r=me with those.  
I'm not sure what that means? (is 'me' 'maybe'?)
Blocks: 1016542
Comment on attachment 8429274 [details] [review]
https://github.com/mozilla/webmaker-analytics/pull/3

Going to steal this review while Scott's away on the Appmaker workweek
Attachment #8429274 - Flags: review?(scott) → review?(jon)
@jbuck, if it's possible to review this at the same time as Bug 1027041, we can merge and make both upgrades at the same time. 

But if you're stretched, this one is not urgent.
Comment on attachment 8429274 [details] [review]
https://github.com/mozilla/webmaker-analytics/pull/3

r+ with one nit, don't bump the version number
Attachment #8429274 - Flags: review?(jon) → review+
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: