Vercel
85de722951
Enable Vercel Web Analytics for your project
...
# Vercel Web Analytics Implementation
## Summary
Successfully implemented Vercel Web Analytics on all HTML pages in the MQL5 Trading Automation project.
## Changes Made
### Files Modified (5 files):
1. **index.html** (root) - Main landing page
2. **dashboard/index.html** - Dashboard view
3. **docs/index.html** - Documentation page
4. **offline.html** - PWA offline fallback page
5. **sw-inspector.html** - Service Worker inspection tool
### Implementation Details
Added Vercel Web Analytics tracking scripts to the `<head>` section of each HTML file:
```html
<script>
window.va = window.va || function () { (window.vaq = window.vaq || []).push(arguments); };
</script>
<script defer src="/_vercel/insights/script.js"></script>
```
### Why This Approach?
- This is a plain HTML project (no JavaScript framework like React, Next.js, or Vue)
- Following the official Vercel Web Analytics guide for HTML sites
- The analytics script is added directly to HTML files without requiring any npm packages
- The `defer` attribute ensures the script doesn't block page rendering
- The `window.va` initialization allows analytics to be tracked even before the main script loads
## How It Works
1. The inline script creates a queue (`window.vaq`) that collects analytics calls
2. The deferred script (`/_vercel/insights/script.js`) is loaded asynchronously from Vercel's CDN
3. Once loaded, the script processes the queued analytics events
4. Analytics automatically tracks page views and user interactions
## Next Steps
To enable analytics on the deployed site:
1. Deploy this code to Vercel
2. Go to the Vercel dashboard for this project
3. Navigate to the **Analytics** tab
4. Click **Enable** to activate Web Analytics
5. After the next deployment, the `/_vercel/insights/*` routes will be available
6. Verify by checking the browser's Network tab for requests to `/_vercel/insights/view`
## Testing
To verify the implementation works:
- Deploy to Vercel
- Visit any page on the deployed site
- Open browser DevTools → Network tab
- Look for Fetch/XHR requests to `/_vercel/insights/view`
- These requests indicate analytics is tracking page views
## Notes
- No package.json changes needed (this is a static HTML site)
- No build process required
- Analytics will only work on the deployed Vercel site (not in local development)
- All 5 HTML pages now have tracking enabled for complete coverage
Co-authored-by: Vercel <vercel[bot]@users.noreply.github.com>
2026-02-25 15:12:16 +00:00
..
.nojekyll
Fix 404 error on GitHub Pages by ensuring index.html exists in root and docs
2026-01-22 00:02:38 +00:00
CD_QUICK_REFERENCE.md
Add CD quick reference guide
2026-02-08 16:17:15 +00:00
CD_WORKFLOW_GUIDE.md
Fix spacing issue in CD workflow guide
2026-02-08 16:17:47 +00:00
CLOUD_DEPLOYMENT.md
Merge feature branch, cleanup dependencies, and sanitize credentials
2026-01-28 10:24:13 +00:00
Cloud_Deployment_Guide.md
Update docs to warn about Exness Web Terminal limitations
2026-01-18 21:10:55 +00:00
CLOUDFLARE_GUIDE.md
Merge pull request #329 from A6-9V/docs/cloudflare-nameservers-and-domain-unification-7774302631406904191
2026-02-13 11:30:49 +07:00
Cursor_CLI_setup.md
feat: Add documentation for CLI tools
2025-12-27 05:43:07 +00:00
DEV_CONTAINER_SETUP.md
Merge feature branch, cleanup dependencies, and sanitize credentials
2026-01-28 10:24:13 +00:00
DNS_CONFIG_RECOMMENDATION.md
docs: add DNS configuration recommendation for lengkundee01.org
2026-02-13 03:21:34 +00:00
Docker_CLI_setup.md
feat: Add documentation for CLI tools
2025-12-27 05:43:07 +00:00
EA_IMPROVEMENTS.md
Merge feature branch, cleanup dependencies, and sanitize credentials
2026-01-28 10:24:13 +00:00
Echo_Hello_Guide.md
Add documentation for echo and hello window feature
2026-02-09 05:09:47 +00:00
Exness_Deployment_Guide.md
docs: add warning about Exness Web Terminal limitations
2026-01-18 21:05:02 +00:00
ExpertMAPSAR_Tuning_Guide.md
Add optimized ExpertMAPSAR variations and tuning guide
2026-01-19 05:08:51 +00:00
Firebase_CLI_setup.md
feat: Add documentation for CLI tools
2025-12-27 05:43:07 +00:00
Gemini_CLI_setup.md
feat: install Gemini CLI and integrate into setup scripts
2026-02-13 03:50:20 +00:00
GITHUB_CI_CD_SETUP.md
Merge feature branch, cleanup dependencies, and sanitize credentials
2026-01-28 10:24:13 +00:00
GitHub_CLI_setup.md
feat: Add documentation for CLI tools
2025-12-27 05:43:07 +00:00
GitHub_Gists_Guide.md
Add comprehensive GitHub Profile README and Gists guides
2026-02-10 06:17:10 +00:00
GitHub_Profile_README_Guide.md
Add comprehensive GitHub Profile README and Gists guides
2026-02-10 06:17:10 +00:00
GitHub_Sync_Status.md
docs: Add GitHub sync status documentation
2026-01-10 09:15:51 +07:00
index.html
Enable Vercel Web Analytics for your project
2026-02-25 15:12:16 +00:00
INDEX.md
Add NotebookLM and OneDrive Blueprint integration documentation
2026-02-18 05:55:01 +00:00
INTEGRATION_UPDATE_SUMMARY.md
Add integration update summary document
2026-02-18 05:57:43 +00:00
Jules_CLI_setup.md
Docs: Add GitHub org and private repo access instructions
2025-12-28 04:16:00 +00:00
Jules_Execution_Guide.md
feat: Add Jules CLI execution helper and documentation - Created jules_execute.py helper script - Added comprehensive Jules Execution Guide - Documented repository automation workflows - Added troubleshooting and best practices
2026-01-10 05:04:51 +07:00
Jules_Task_Implementation_Notes.md
Add implementation notes and update .gitignore for Jules
2026-02-18 09:18:27 +00:00
Jules_Task_Setup.md
Add Jules CLI integration setup and documentation
2026-02-18 09:17:49 +00:00
KNOWLEDGE_BASE_INTEGRATION.md
Add NotebookLM and OneDrive Blueprint integration documentation
2026-02-18 05:55:01 +00:00
KUBERNETES_INTRODUCTION.md
Add Kubernetes introduction documentation ( #251 )
2026-02-05 02:53:41 +07:00
market_research_report.md
Merge latest changes from upstream Mouy-leng/MQL5 and start system
2026-02-11 06:14:34 +00:00
Mouy-leng_Request_Guide.md
feat: Add Mouy-leng request processing system - Improved custom issue template with request types - Created GitHub Pages sync workflow for automated syncing - Added sync_github_pages.py script for manual syncing - Created Mouy-leng Request Processing Guide documentation
2026-01-10 04:41:34 +07:00
NOTEBOOK_LM_CONTEXT.txt
Add NotebookLM and OneDrive Blueprint integration documentation
2026-02-18 05:55:01 +00:00
PERFORMANCE_OPTIMIZATIONS.md
Address code review: optimize ArraySize() calls and document cache behavior
2026-02-11 08:36:56 +00:00
PR_Action_Summary.md
docs: Add PR consolidation results - Documented merged PRs ( #76 , #75 ) - Listed 13 closed duplicate PRs - Created summary of consolidation results - Reduced open PRs from 23 to ~10
2026-01-10 06:00:48 +07:00
PR_Consolidation_Complete.md
docs: Add PR consolidation completion summary - Celebrated 91% reduction in open PRs - Documented all achievements - Created completion summary
2026-01-10 09:05:29 +07:00
PR_Consolidation_Plan.md
docs: Add PR consolidation plan and analysis script - Created comprehensive PR consolidation plan - Added script to analyze PR optimizations - Documented strategy for merging best PRs and closing duplicates
2026-01-10 05:36:22 +07:00
PR_Consolidation_Results.md
docs: Add PR consolidation results - Documented merged PRs ( #76 , #75 ) - Listed 13 closed duplicate PRs - Created summary of consolidation results - Reduced open PRs from 23 to ~10
2026-01-10 06:00:48 +07:00
PR_Final_Summary.md
docs: Add PR consolidation final summary - Documented all merged and closed PRs - Showed 91% reduction in open PRs (23 to 1-2) - Created comprehensive consolidation summary
2026-01-10 09:04:18 +07:00
Pull_Request_Review_Report.md
feat: Add pull request review script and comprehensive report - Created review_pull_requests.py to analyze all PRs - Generated Pull Request Review Report with 23 open PRs analysis - Identified 20 performance optimization PRs ready for review - Documented 5 draft PRs and 2 WIP feature PRs - Added recommendations for PR consolidation and prioritization
2026-01-10 05:26:35 +07:00
PWA_GUIDE.md
docs: update Cloudflare nameservers and unify domain name
2026-02-13 04:11:32 +00:00
Quick_Start_Automation.md
Update docs to warn about Exness Web Terminal limitations
2026-01-18 21:10:55 +00:00
RELEASE_PROCESS.md
Add release management infrastructure and automation ( #255 )
2026-02-05 02:53:31 +07:00
Repository_Quality_Analysis.md
docs: Add repository quality analysis documentation - Identified A6-9V/MQL5-Google-Onedrive as high quality primary repository - Documented repository structure and quality metrics - Explained relationship with GitHub Pages repository - Added quality verification and recommendations
2026-01-10 05:18:05 +07:00
SCALPING_STRATEGY.md
feat: Add scalping strategy support for M5, M15, M30
2026-01-28 18:14:03 +00:00
Secrets_Management.md
Security fix: Replace real credentials with placeholders in docs and examples
2026-02-08 04:15:17 +00:00
SERVICE_WORKER_INSPECTOR.md
Add implementation summary and service worker inspector documentation
2026-02-01 19:21:39 +00:00
SETUP_AND_DEPLOY.md
Add GCP deployment configuration and scripts
2026-01-24 19:21:00 +00:00
SSH_KEY_AUDIT.md
Add SSH key investigation documentation and audit report
2026-02-18 01:16:35 +00:00
SSH_KEY_INVESTIGATION_QUICK_REF.md
Fix inconsistent link formatting in SSH investigation guide
2026-02-18 02:11:41 +00:00
Startup_Automation_Guide.md
Clarify Python version requirements and improve error handling
2026-02-13 09:30:52 +00:00
upgrade_suggestions.md
Setup Research Schedule and Improvements
2026-01-27 20:07:35 +00:00
USER_NOTES.md
Add NotebookLM and OneDrive Blueprint integration documentation
2026-02-18 05:55:01 +00:00
Vercel_CLI_setup.md
feat: install Vercel CLI and update setup documentation
2026-02-08 17:30:10 +00:00
VPS_MIGRATION_STEPS.md
Merge feature branch, cleanup dependencies, and sanitize credentials
2026-01-28 10:24:13 +00:00
VPS_SETUP_GUIDE.md
docs: update VPS and terminal configuration metadata
2026-02-09 01:03:32 +00:00
Windows_Task_Scheduler_Setup.md
Add comprehensive automation startup scripts for Windows, Linux, and WSL
2026-01-06 04:21:36 +00:00
Working_Tree_Review_Report.md
feat: Add working tree review script and report - Created review_working_trees.py for comprehensive branch/stash/worktree analysis - Added Working Tree Review Report documentation - Analyzed 81 remote branches (25 merged, 55 unmerged) - Fixed Unicode encoding issues in git command execution
2026-01-10 05:13:04 +07:00
WSL_AND_VPS_DEPLOYMENT.md
Update Magic Number to 81001 and enhance reset scripts for MT5 cleanup
2026-01-22 05:58:45 +00:00
ZOLO_Plugin_Integration.md
Hardening: disable WebRequest by default
2026-02-10 04:38:44 +00:00