Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Most popular pages #53

Merged
merged 28 commits into from
Sep 3, 2015
Merged

Most popular pages #53

merged 28 commits into from
Sep 3, 2015

Conversation

milafrerichs
Copy link
Contributor

What does this PR do?

It changes the most popular pages panel.
Instead of showing the "Realtime" most popular pages from the last 30 minutes (realtime) it now shows the most popular pages of the day.
It also adds support to show the device type the users are accessing the most popular pages with.

Related Issues

#43

Screenshot

bildschirmfoto 2015-08-19 um 16 20 40

To Do before merging

  • show data for 48 hours instead of 24
  • add styles
  • reorder the results (currently ordering is for single device type pageviews)
  • tablet needs to be incorperated into mobile on the aggregation

add error handling to parseResponse
if d3.json failes, or if there are no results in the API reponse
chai-change is a plugin for chai to test changes made by functions
show todays top pages and not the realtime top pages from the last 30
minutes
we want to show how many users are mobile or desktop users
so we add the deviceCategory to the dimensions and change the column for
the actual visitor count
use a parseData method to actually parse the data
update the pages where the url exists for the next result from GA and
update the visits accordingly
for now fesktop views come first from GA so mobile gets updated.
needs a few adjustments:
- reorder for overall count not only desktop count
- evaluate the max-results param for the API call (1000 might be too
  much)
- tablet needs to be incorperated into mobile on the aggregation
always show the most popular page on top
GA sorts the pageviews by deviceCategory since we want that dimension
too
that's why we need to adjust the ordering by summing the two dimensions
and sort on the sum
add helper to get the deviceCategory
if the deviceCategory is tablet return the category mobile
we want to incorporate the tablet data into the mobile category
Conflicts:
	karma.conf.js
	public/index.html
add icons for each device type and add the same bar as active pages and
search to repeat the color
@milafrerichs
Copy link
Contributor Author

Updated the style:
bildschirmfoto 2015-09-01 um 15 25 22

@milafrerichs
Copy link
Contributor Author

bildschirmfoto 2015-09-02 um 17 29 53

@milafrerichs milafrerichs changed the title [WIP] Most popular pages Most popular pages Sep 3, 2015
milafrerichs added a commit that referenced this pull request Sep 3, 2015
@milafrerichs milafrerichs merged commit 46a0a43 into master Sep 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant