Public
Like
TopTenVideos
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v56View latest version
A complete standalone HTML application for niche selection with advanced advertising capabilities, analytics, and rotation features.
- 15 Popular Niches with relevant sub-categories
- Custom Sub-Niche input for specific targeting
- Dynamic Dropdowns that populate based on main niche selection
- Multiple Ad Slots (up to 5 ads)
- Ad Rotation with customizable intervals (5-60 seconds)
- Weighted Distribution (1-10 weight per ad)
- Click Tracking with analytics
- Live Preview for each ad slot
- Real-time Analytics dashboard
- Click-through Rate calculations
- Per-ad Performance metrics
- External Analytics integration (Google Analytics support)
- Impression Tracking with rotation counters
- Custom Header support via URL
- Two-column Layout (videos left, descriptions right)
- Responsive Design for all devices
- Interactive Elements with hover effects
- Error Handling for failed images/URLs
This is a 100% standalone HTML file that can be deployed anywhere:
- GitHub Pages: Upload to any GitHub repo
- Netlify: Drag & drop the HTML file
- Vercel: Deploy directly from file
- Any Web Host: Upload via FTP/cPanel
- CDN: Host on any static file service
- ✅ Self-contained HTML file
- ✅ Uses CDN resources (TailwindCSS)
- ✅ No server-side requirements
- ✅ Works offline (except for external resources)
- Select your main niche from the dropdown
- Choose a sub-niche or enter a custom one
- Optionally add a custom header URL
- Click "Analyze Niche" to see results
- Add Multiple Ads: Use "Add Another Ad Slot" (up to 5)
- Configure Each Ad:
- Image URL (banner/display image)
- Click URL (landing page)
- Title (headline text)
- Weight (1-10, higher = more frequent)
- Enable Rotation: Check the rotation option
- Set Interval: Choose rotation speed (5-60 seconds)
- Analytics ID: Add tracking ID for external analytics
- Live Preview: See ads as you configure them
- Analytics Dashboard: Monitor performance in real-time
- Click Tracking: Automatic click and impression tracking
- Error Handling: Graceful fallbacks for broken images
- Responsive Layout: Works on desktop, tablet, and mobile
Supply any URL that returns HTML content:
https://yoursite.com/custom-header.html
https://api.yoursite.com/generate-header
https://cdn.example.com/headers/analysis.html
Add your tracking ID to enable external analytics:
- Google Analytics:
GA-XXXXXXX
- Custom tracking: Any identifier
- Automatic event tracking for impressions and clicks
Banner Ad:
- Image:
https://example.com/banner.jpg
- Click:
https://yoursite.com/special-offer
- Title:
"Learn Advanced Techniques - 50% Off!"
- Weight:
8
(high frequency)
Text Ad:
- Title:
"Boost Your Skills Today"
- Click:
https://courses.example.com
- Weight:
5
(medium frequency)
Affiliate Link:
- Click:
https://affiliate-link.com/product
- Weight:
3
(low frequency)
- Total Impressions: How many times ads were shown
- Total Clicks: How many times ads were clicked
- Click-through Rate: Percentage of impressions that resulted in clicks
- Per-ad Performance: Individual statistics for each ad
- Rotation Counter: How many times ads have rotated
All analytics data is logged to browser console and can be:
- Exported to external analytics services
- Saved to local storage
- Sent to your own tracking endpoints
- Pure HTML/CSS/JavaScript - No frameworks required
- TailwindCSS - Via CDN for styling
- Responsive Design - Mobile-first approach
- Modern ES6+ - Clean, maintainable code
- ✅ Chrome/Edge (latest)
- ✅ Firefox (latest)
- ✅ Safari (latest)
- ✅ Mobile browsers
- Lightweight: Single HTML file under 50KB
- Fast Loading: CDN resources with caching
- Efficient: Minimal DOM manipulation
- Scalable: Handles up to 5 ads with rotation
- Safe External Links:
noopener noreferrer
attributes - Input Validation: URL validation for all inputs
- XSS Protection: Proper HTML escaping
- Error Boundaries: Graceful error handling
This is a standalone application that can be used, modified, and distributed freely.
For issues or questions:
- Check browser console for error messages
- Verify all URLs are accessible and return valid content
- Test with different ad configurations
- Monitor analytics panel for tracking data
Ready to deploy anywhere! 🚀
Just upload the index.html
file to any web hosting service and start using your advanced niche selector with multi-ad management system.