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

Combine v8.dev stats with stats from old blog #23

Open
mathiasbynens opened this issue Oct 26, 2018 · 0 comments
Open

Combine v8.dev stats with stats from old blog #23

mathiasbynens opened this issue Oct 26, 2018 · 0 comments

Comments

@mathiasbynens
Copy link
Member

(Continuing the discussion from #22 (comment).)

Ideally, we’d get the combined Analytics for the old URL structure + the new one. (We still use the same tracking ID.) Is this possible without overcomplicating things? What I do manually is e.g. for https://v8.dev/blog/10-years I’d search analytics for the page slug 10-years, which would also match the old URL https://v8project.blogspot.com/2018/09/10-years.html.

Some context used to be on the old V8 blog, but is now available under a new URL. For example, these two URLs refer to the same content (and the former now redirects to the latter):

https://v8project.blogspot.com/2018/09/10-years.html
https://v8.dev/blog/10-years

We're still using the same Google Analytics tracking ID, so it should be possible to get the page views for /blog/10-years as well as for /2018/09/10-years.html and just add them up.

There's a complete list of mappings from old URLs to new URLs: https://github.com/v8/v8.dev/blob/28dab9d3064fc38bbf5d5a32430e724e7503aeec/url-mappings.js#L15-L90 Maybe we could use that reverse mapping in devwebfeed? I.e., if a mapping exists for the current URL (e.g. https://v8.dev/blog/10-years), also look up the stats for the old one (e.g. https://v8project.blogspot.com/2018/09/10-years.html) and add them up to get the total view count.

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

No branches or pull requests

1 participant