Building TubeAnalytics in public: debugging and SEO fixes
Watch on YouTube ↗ Subscribe on YouTube ↗
Follow a working session on TubeAnalytics: fixing a 500 error on the pricing page with OpenCode, reviewing the dashboard and applying Search Console data.
Video summary
Behind the scenes of building Tube Analytics — the YouTube analytics platform for creators.
The video covers 15 parts: Building TubeAnalytics Intro, Why I Started Building TubeAnalytics, The Problem With YouTube Analytics, Planning the SaaS Platform, Building the Dashboard Layout, Adding Core Analytics Features, Connecting YouTube Data, Creating Creator Growth Insights, Designing the User Experience, Tracking Views, Watch Time, and Growth, Improving the Dashboard Workflow, Testing TubeAnalytics Features, Lessons From Building the Platform, What Comes Next for TubeAnalytics, and Final Thoughts and Next Steps.
What this video covers
What you build
Fixes and growth work for the TubeAnalytics site. OpenCode on a free model repairs a pricing page error, the dashboard supplies revenue recommendations and Search Console data drives indexing and content changes.
Tools used
Key steps
- 0:00 - Start with the pricing page 500 error and a dashboard redirect bug.
- 1:47 - Run a debugging skill in OpenCode on a free model.
- 10:43 - Review the dashboard, which pulls data in through the YouTube API.
- 23:13 - Check what comes next for the product.
Not covered
- A complete build from an empty project.
- Verified earnings or traffic figures beyond what is shown on screen.
In this video
- 0:00 Building TubeAnalytics Intro
- 1:47 Why I Started Building TubeAnalytics
- 3:34 The Problem With YouTube Analytics
- 5:21 Planning the SaaS Platform
- 7:09 Building the Dashboard Layout
- 8:56 Adding Core Analytics Features
- 10:43 Connecting YouTube Data
- 12:30 Creating Creator Growth Insights
- 14:17 Designing the User Experience
- 16:04 Tracking Views, Watch Time, and Growth
- 17:51 Improving the Dashboard Workflow
- 19:39 Testing TubeAnalytics Features
- 21:26 Lessons From Building the Platform
- 23:13 What Comes Next for TubeAnalytics
- 24:15 Final Thoughts and Next Steps
Questions and answers
What is being fixed in this video?
A 500 error on the pricing page and a bug that sends logged-in users back to onboarding, both worked on in OpenCode.
Which model writes the code?
A free DeepSeek model through OpenCode Zen, and this walkthrough shows zero credits spent that month.
Where does the dashboard data come from?
The YouTube API through the Google Cloud Console, after the user signs in with Google and connects a channel.
Keep learning
Transcript
Hey there, welcome to the channel. In this video, I'm going to take you through kind of a day in the life of creating and testing and debugging Tube Analytics, which is my powerful software as a service. This is a YouTube analytics platform which allows you to do many things that YouTube Studio can't even do. So, if you want to check it out, I'll leave a link in the description below. Prices start at $19 per month with a oneweek free trial.
And in this case, I would show you the pricing page, but it's currently broken. So, that's one of the things that I'm fixing over here inside OpenCode. You can see I'm just using one of my custom skills for debugging, and it's going through and fixing up the pricing page as well as an error that I'm having on the dashboard, which is sending logged in users back to onboarding. So, let me just show you the dashboard real quick. It's over here.
Read the rest of the transcript
This is the dashboard for Tube Analytics which you will get access to when you create your account. It is very powerful like I've already said. Uh basically it allows you to connect up to five channels on the enterprise plan. For the starter plan it's limited to one channel. In this case I'm basically just testing the enterprise plan. So from here you can see total number of subscribers gained over you know a month, 90 days, one year all time which you can also do inside YouTube studio
as well. But this includes a lot of features that are not available inside YouTube Studio. So we can see my revenue over the past three months almost $600 on the channel which has been monetized for around the same amount of time. So it's doing pretty well. We can also take a look at the performance of the channel as well. Number of views and subscribers on a daily basis. All of this is coming from the YouTube API which is from the Google Cloud Console.
So, as soon as you log in with your Google account, you'll just need to connect up your YouTube channel and then you get access to all of this. It will pull in all of your data. And yeah, I'm really proud of what I've built. And to that point, I'm actually getting a lot more traffic. We can see over here inside Vercel going to the site. So, I've currently got almost 40 visitors on the site right now.
And we can see it's starting to go up significantly just over the past two days due to all of the optimizations that I'm making using some custom skills over here inside Codex for the most part but I'm currently out of credits which is going to reset in about an hour. So I'm doing a lot of the stuff over here in inside OpenCode which is completely free. I'm on the deepseek v4 flash model inside OpenCode zen.
So, this one's completely free and it's looks like looking looking like it's just going ahead and fixing up some things on the pricing page which is currently broken broken. Sometimes I have issues with this page. So, it just says something went wrong. This is a 500 error. And if I want to see what's going on, I could just come over to the console here. You can see it's some issue with the server component render.
So, all I've done is I've just come over here and I'm using a custom skill called systematic debugging. I just told it to fix the 500 error on the pricing page. So, that's exactly what it's doing now. And in order to get some of these skills, I've already made tutorials about this on this on the channel. You would just come to skills.sh. There are currently 850,000 skills available over here. And then you would just search for what you want to do.
So in this case, if I wanted to pull up debugging skills, I could just type in debugging and boom, there it is. Systematic debugging. You just copy this oneline npx skills add command. That's just going to clone all the files from GitHub and it's going to install it into your coding harnesses. This one currently has 156,000 installs. So it's definitely one of the more popular skills over here. You can also sort by trending and all time as well.
So, this one, fine skills, has 2.2 million installs. The front-end design skill has 579,000 installs. So, these are some of the ones that I would recommend installing. We've also got an agent browser over here as well, which looks kind of interesting. If I wanted to install this, again, I just copy this command. We can open up a new tab over here in the terminal, and I'm just going to paste that in. And that's just going to install this agent browser skill.
And of course, you can read everything about it over here as well. I'll select the coding harnesses that I want to install it into. Press enter. I install it globally and then proceed with installation. And that's it. It's done. So now I have access to that skill. I would most likely need to close this out or open it again. But if I just do agent browser, we can see we now have the agent browser which is built directly into Codex over here.
So that's good to go. And this one's currently building the app to find any errors. So that will take a little while to finish. And then we should be able to sort out whatever issue there is with the pricing page. And then also on the dashboard, sometimes the users are getting logged out. So like if I come down to the monetization tab, for example, I can load that. And it looks like now it's loading correctly. So that's definitely good.
But one of the really cool things about Tube Analytics is that you can see key insights and recommendations. So unlike YouTube Studio, which doesn't tell you anything about how to optimize your channel and get it to the next level if you're already monetized, monetization in and of itself is very rare. Only about 6% of YouTubers are are successfully monetized. But if you do have a monetized channel, Tube Analytics is going to help you even more. So basically, you can see all of your recommendations over here.
It looks like my revenue declined 30% from the last month, most likely because I haven't been posting as often. But if I did want to figure out why that's happening, we can take a look at that inside Tube Analytics. And then we can drill down even further and analyze it more, which you can't do inside YouTube Studio. It's also recommending me to improve adfill rate. It says there's a 88% gap between CPM and RPM.
So basically I would need to enable more ad formats and check ad suitability settings. That's medium severity. These ones are high severity. And we can also see my revenue trend over here as well. So you can see how much I'm generating on a daily basis as well as the CPM and RPM. You can take a look at the top videos. So this one did really well. It shows exactly how much revenue I've generated uh for each of these videos. And then also the traffic sources.
So, we got all the traffic sources over here. This graph doesn't look quite right. I would have to fix this up using the front-end design skill or something, but that's not too difficult. And then we can see right here, YouTube search is bringing 36% of my views are coming from YouTube search, which is definitely encouraging. That's what I want. As well as shorts. So, a lot of people watching my shorts. And then also the subscriber feed.
It's got all of my traffic data over here, which you can also do inside YouTube Studio, but not to this level. Or I'm actually just going to I'm just going to stop this build right real quick because it's slowing down my computer. So, we should be able to just cancel this for now. Um, some that's one of the issues that you have to deal with running these models on your local computer. If you don't have a very fast computer, it will slow down your computer.
But I can just continue that doing that later. And we can come over to optimization tools here as well. And we can see the average channel CPM, highest CPM topic, which is finance and investing. And then you can see the breakdown here. This is just like an overview of different topics and niches. But if I come over to optimize here, we can see three highview videos are under monetized. And it shows me exactly how much I can make extra.
So that could be about $31 a month estimated recovery if I were to optimize these videos a little bit better. So there's my current revenue. And then here's the potential gain. So it could go from 54 up to $86. That is not something that you get access to inside YouTube Studio. you would have to do a lot of research or ask AI a bunch of questions to come come up with this data. But with tube analytics, it's built directly in. So very very valuable.
And it's also recommended to shift the content mix towards higher CPM topics. So I could gain, you know, about 200 to 500 a month with the topic optimization. So basically that would just come down to doing more research and finding the popular topics that other AI creators are talking about in this case and then creating more videos on those topics. It's also recommending to optimize upload schedule for peak revenue hours.
So figure out exactly when the most people are watching my videos and then post exactly at those times, which you can also find that data through tube analytics. So what as well, which I'll show you in a little bit here. And then also enable midroll ads on videos over 7 8 minutes. I think that's already turned on, but I want to make sure to turn those on if they're not already.
So total gain is about $530 potentially per month that I could be making extra on the channel if I were to do each one of these things. So basically what I could do is I could just take each one of these is I could come over to something like ChatGPT and I could just tell it to create an implementation plan or something along those lines.
So create an implementation plan and then we're just going to paste that in and that will just come up with detailed action steps to tick each one of these off for the channel. So that's very very valuable in and of itself. And we can also come over to audience here and we should be able to see the best times to post somewhere over here. I can't remember exactly where it is. It's maybe under analytics. I think it's under behavior here. If we click on behavior.
Yep, there it is. So, best time to publish is Tuesday at 12 p.m. And that also shows the confidence score here as well. 95% confidence score. And we can also take a look at the best time to post each day of the week. And obviously, the bright red has the most viewers. And I can also see my viewer loyalty. I can see my re view repeat viewer rate over here as well. And a bunch of different stuff all built directly into Tube Analytics.
Another thing, really cool thing we can do inside here is we can do AI thumbnail testing, which many platforms charge, you know, $19 a month just to do this, but it's built directly into Tube Analytics and available, I think, on the professional plan, which is $49 per month uh on the annual plan and $39 per month on the monthly plan. So, basically, I could just come over here and I can upload one of my thumbnails.
And this is just going to use like Google Vision or OpenAI Vision or whatever. I can't remember exactly what I'm using to do this. It's going to analyze the video and it's going to give me a score with each one of the things that I might want to fix. This is also a feature that's built into Vid IQ as well, which is also $19 per month. And that's one of the many things that we can do inside Tube Analytics.
Looks like this one's also broken at at the moment. So, I would need to fix that. It says that it's not able to upload the image. It was working before. I'm not sure why it's broken now. So, that's another thing we'd want to fix. And looks like it was able to identify the issue with the 500 error. Oh, no, sorry. This is the onboarding for the dashboard. So, if I want to push that up to Vercel, I can do that.
Or we can also just do a Vercel deploy over here as well. And that's just going to push it up to my Vercel account and it will be in production. So then we get a new version of the website. This is what I use on a daily basis. If you're building any sort of NodeJS, React or basically any app using Vibe coding tools. I would highly recommend using something like Vercel to do this stuff. It's just the best.
So you can see here it's now building the latest version. If I click here, we can come in and we can take a look at the build logs. So, it's just starting to build on Vercel over here. I've recently fixed up some things. So, hopefully this thing goes through. No issue whatsoever this time. And then we can also fix the 500 error. Oh, I'm going to use the custom skill again. So, systematic debugging.
I'll tell it to fix the 500 error on upload for AI thumbnail testing on dashboard. There we go. So that's just going to use that skill and it should be able to fix whatever the issue is over here on the dashboard as well as the pricing page once I finish that. And then we can analyze the thumbnail. So that's basically kind of like the daily workflow that I go through um optimizing this. And again, I've spent about a,000 hours on this website so far.
So it's definitely encouraging to see more and more traffic coming into the site over here. And again, I offer a oneweek free trial. You can get started completely for free for one week. And then I have the blog as well. So we've got almost 500 articles over here. And this is what's helping me rank in the AI answer engines as well as on Google. So each one of these blogs is super super well optimized for AI answer.
You can see I've got the quick answer at the top. I've also got the author bio. Uh the meta descriptions are also optimized. got the key takeaways as well as the uh summary basically right here. I've got the updated text, the geo answer. I also have affiliate links peppered throughout here as well. This one's an affiliate link. This is also an affiliate link. So, if people sign up with my affiliate link, I will get a commission. And we've got all the tables in here.
We've also got the fact section at the bottom. I have a popup to get people to sign up for the free trial. So, that's already built in to get more conversions. I've also got sources and references. Over here, I've got an about the author section, frequently asked questions. This is super super well optimized for AI answer engines. And actually if we come over here we can see most of the traffic is actually coming from Google which is I think it's going to continue increasing because I've
used some custom skills to basically optimize all of that as well just by searching over here. You can search for GSC, which is Google Search Console, and you can just grab this skill, and you can ask it all sorts of different questions and have it optimize your site based on everything that it finds inside the Google Search Console, which is over here. So, you can see total number of clicks in the past month is about,300. Total number of impressions about 800,000.
And you can just use that skill to put together implementation plans and fix up anything on your site. Like for example, a lot of my pages are not being indexed. So I was able to fix up a lot of stuff for that to encourage Google to crawl the pages. And I even have a custom skill to do that stuff as well. It's actually a script.
So I can run it over here and we can just submit all of the pages to index now which is Bing's uh indexing site as well as Yandex which is another popular site. I think it's based in Russia. So it's just uploading all of those URLs over here and it's already done. So that's just going to encourage those indexing services to crawl my website. And we can do the same for Google as well. I have a custom SK script for that.
So, we could just do GSC submit and that's just going to upload everything to Google search console and encourage it to crawl it even faster. So, I've got about 3500 URLs that it will submit. And I also have a cron job which runs I think daily on Vercel. And it just runs this script basically over here. So we can see GSC submit that runs every day at 2 a.m. I don't actually want it to run every single day. So I would want to update that.
I want it to run like every week or so. I've also got one for index now. I've got a bunch of different cron jobs running over here. And the nice thing about doing this stuff inside Vercel is that I don't have to keep my laptop open. This is on its own server. So it's just doing this behind the scenes as I'm sleeping or you know whenever on a daily, weekly or monthly basis. So that's really useful and it's built directly into Vercel.
So yeah, if you're doing anything with Nex.js apps or anything like that, just use Vercel. Do yourself a favor. And it's also super fast as well. So if I do a page speed on my website, we can see it's all maxed out over here on mobile and desktop. So desktop is a 98% performance. SEO is 100%. Mobile is 100% SEO 93% performance rating as well.
It's very very difficult to get it to this level and I've done a lot of debugging to get it so that my website is absolutely blazing fast because that is one of the signals that Google is looking for when they're going to be crawling your site. And to that point, I was just on a call with a a friend of mine last night and I took him through some of the most important files that you need to show up in the AI answer engines for generative
engine optimization. So, this one right here is AI.txt. It basically just allows your website to be crawled by all of the LOMs. As you can see right here, I'm just going to zoom in a little bit. Those are all of the LOMs that are allowed to crawl my site. We've got a lot of schema in here. So, we got all of this data. It tells Google or whatever search engines crawling my site what type of application this is.
So, in this case, it's a software app, software as a service. We've got the description in here, the founder name, which is me, email address, domain name. We've got all the pricing details over here as well as the features and some of the pages. And then we've also got llms.txt as well. Another super super important file. This is probably the most important file for ranking in ChatGpt, Claude, Gemini, Perplexity, all of those.
And it basically just gives a full rundown of your site with all of the main pages. And then of course, we've also got the sitemap.xml file. This is the single most important file for getting indexed by Google, Bing, all of those. And then also robots.txt. This one also super important. And it basically just gives the public discovery files. So, some of the files I've already showed you. I've got a bunch of other ones in here as well.
And we've got all of the allowed uh AI answer the LLM's over here as well. So, that just tells the search engines that they're allowed to crawl the site. And I want to open it up for every single AI answer engine so that they can find my site. And to that point, we can come back over here to ChatGPT. And this is where I just pasted in the data that I got from Tube Analytics. And it gave me an implementation plan over here.
So, it's just telling me exactly what to do on each one of these videos. And I just want to check these things. Make titles more advertiser safe, that sort of stuff. So now I've got an implementation plan over here suggesting different titles that I might want to use for the videos, different keywords that I might want to use on YouTube.
Uh pinned comments, improved chapters as well, everything which I got from Tube Analytics and then I just took it and put it into ChatGPT and I told it to create the implementation plan. It's really that easy. And it looks like this thing is getting it's fixing up the whatever issue there was with the AI thumbnail test. So it's just going ahead and doing all of that over here using DeepSeek V4 Flash, which is completely free.
So I'm not spending anything on credits in order to do this. In fact, if I just come over to OpenCode real quick, we can log into my account. I can come over to Zen and then we can see exactly how many credits we've used which is going to be zero to write all of this code over here. I can just come over to usage and we can see right here I've spent $0 in credits. This is how much I've spent on the Go plan.
But today is currently the 23rd. So as you can see I've spent $0 in credits because Zen is completely free. And I'll leave a link in the description below where you can sign up for OpenCode uh right here. You will get $5 and I will also get $5 when you sign up with my referral link. And then I would highly recommend upgrading to go so that you get access to a lot of other models.
If I come over here and do models, you can see many of these are available only on the go plan and some of them also require an API key, but you'll get access to Kimi 2.6, 6, GLM 5.1, MIMO 2.5, Quinn 3.7, all of those under the go plan, as well as Miniax models, DeepSeek V4 Pro, lots of different options, but you can get many of them for free as well under OpenCode Zen.
So, we're just going to wait for this to finish and then hopefully this deployment will be done over here on Vercel relatively soon. And then that should fix the pricing page and also any issues that I'm getting on the dashboard. And we can also fix this 500 error that we're getting over here on the AI thumbnail test as well. So, we'll just wait for this to finish. Looks like it should be done soon. And that's pretty much all there is to it.
I just wanted to share kind of like a day in the life of building out Tube Analytics. Again, this is the most powerful YouTube analytics platform. And you can also compare it to many of the other competitors as well, including Vid IQ, TubeBuddy, all of those. I've got all of the compare pages over here as well. So, you can take a look at the compare pages and do your research and decide if Tube Analytics would be a good fit for you.
Here's a comparison with Tube Analytics versus Vid IQ. Again, all of these pages are super super well optimized for AI answer engines and Google as well. So, please go ahead, sign up for Tube Analytics. I'm looking to get more users on here. Again, I offer a oneweek free trial and then it goes up to $19 per month. Looks like this version is now done, which is excellent. And we can take a look and see what we completed over here. So, I think it's this one.
We did the error on the dashboard. So that should be fixed now. And looks like deployments are now working again, which is great news because I was having some issues with this recently. And if I want to push this to production, I could just do push to production and that will put up the latest version on my site ready to go live. So that's all for this video. Please go ahead and check out my website as well for my AI agency.
You can schedule a free discovery call over here. You'll just fill out some basic information. And this is specifically for anyone that wants me to build an automation or website or web app for them. You can read through the website over here and figure out how much you could save on a monthly basis just based on your team size, hours wasted per person per week, as well as average hourly rate.
So, if you're wasting 6 hours weekly and you're spending $120 a week, you could potentially save about $6,000 a year in savings by hiring someone like me. And you can also take a look at my Skool community. We've currently got 3,000 members over here. I'm currently offering a free trial and then it's $49 per month from there. Would love to see you inside the Skool community. You can take a look around the classroom and also introduce yourself inside the community tab.
And with that being said, thank you so much for watching this video. Please go ahead subscribe to the channel if you haven't already. Just been showing you a day in the life of building out Tube Analytics. Thank you so much for watching. Take care. Stay safe. Peace from Thailand. Signing off. We'll see you in the next one.



