-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add related content links to the Docs Site in the right rail #427
Comments
@djsauble any thoughts on this? It's come back up again. :) |
I still think it's a bad idea, but the right rail is flexible enough that adding a related content section should be easy. |
@markweitzel confirmed with Mark Buchanan that this approach is welcome on the Doc Site, so we'll move forward into bringing the related content into the right rail. cc @austin-schaefer |
Moving back to Proposed to estimate as part of catch-all estimate process. |
Before implementation I think understand the potential cost increases of using Swiftype on the Docs Site to populate related content is important. |
As of right now, the docs site has 1,374 pages that we render the right rail on. That number will go up once we are 100% migrated (likely closer to 2,000), but this should give us a ballpark range of cost. Assuming we have 2,000 pages, this means we would execute 2,000 search queries to Swiftype every time we refetch the related pages. I'm not sure which plan we are on, but pricing is as follows: Basic Pro We refetch the dev site every day. Assuming we followed suit and updated the related pages every day, this equates to about 60k searches/month (assuming 2k searches * 30 days), just to populate the links. This is in addition to any searches users are making as well as the dev site related pages. Hope this helps! |
@jerelmiller thank you! In Oct it looks like we executed 193,210k and in Nov it looks like we executed 110,064k total searches across all site properties using Swiftype, so this means we'd be increasing our volume by around ~60k searches if we were planning on implementing the right rail and have it run daily page updates for relate links. |
@austin-schaefer FYI on this, we'll want to discuss this potential cost increases with the Mark(s) |
Do we know:
|
We've added the custom plugin that we created for the developer site to the theme. When we pick this work back up, we should update the developer site to use the plugin via the theme and then add it to the docs site. |
@zstix do you want an issue created to do that? |
I figured this ticket would be used to track that work, so I moved it back to proposed. |
@jpvajda How many related resources are we planning to add to a page? Are we sticking with 5? We'll also need to figure out how best to utilize this. |
Here is a little screen recording of what it looks like on a large page. You can see it gets buried pretty quickly and leads to a double scroll: large-toc.mov |
@djsauble not sure if you have any ideas or thoughts, but I'd love to hear them if you do :) |
@jerelmiller raised some really great concerns here so we are discussing the best way to handle the experience of the right rail with related content. |
As I mentioned in Slack, I think the right approach here is to put "related resources" at the bottom of the content, like they are on the current docs site. |
I scheduled a quick sync to align with key stakeholders on the approach to ensure we all agree. |
We've decided to go ahead and move forth with this using the following changes:
Quick mock: |
Adding dynamic content links using our related content component in the right rail under the page header links would allow us to drive users to OSS and Dev Sites and connect users to more discoverable content.
Considerations
display logic what about really long right rail scenarios like this page. Would we want to NOT show the related content component if a page has a very long set of navigational headers in the right rail?
cost What costs would we incur with swift type as costs would be driven up by all the docs pages needing to refresh with dynamic content links. (WIP)
event tracking How can we measure if this is valuable to the end user? Perhaps track click events on the dynamic links to see if people use it? Or look at bounce rates on pages that have the dynamic links, It will likely increase bounce rates on those pages but increase traffic to our other sites. Measuring when users click on the related links would be very useful to understand when users feel they need to go to another site for content needs.
Localization Impacts What about searching through a translated site like Japan? It's currently done through the proxy, so what is our approach now? - once the related content is available via a query, it shouldn't really impact swifttype cost as we'll have the related content already from the initial query.
Swift type impacts and approach
We refetch results per page once a day on a cron job. The data is available as part of the build: https://github.com/newrelic/developer-website/blob/develop/src/data/related-pages.json
That data gets rebuilt in this action once a day: https://github.com/newrelic/developer-website/blob/develop/.github/workflows/fetch-related-content.yml
We can specify whatever interval we want if we go this route. When we execute a query per page each time we fetch related content for a page. We have a limit on the number of queries we can run before we are charged more.
If we fetch once a day, and we have 3000 queries we have to run, thats 3k queries thats ~90k queries per month. We could decrease the interval and instead do once a week, or once a month.
Doing so would put costs down, but means that auto related content could become stale (maybe thats a fair tradeoff)
Right Rail Mockup
The text was updated successfully, but these errors were encountered: