• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
wolf

wolf

trackerPixel

Remix of std/reactHonoStarter
Public
Like
trackerPixel
Home
Code
4
backend
1
frontend
3
.vtignore
README.md
Branches
1
Pull requests
Remixes
History
Environment variables
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.
Sign up now
Code
/
README.md
Code
/
README.md
Search
4/11/2025
Viewing readonly version of main branch: v6
View latest version
README.md

Pixel Tracker

A simple and effective pixel tracking application for monitoring website visits. Create unique tracking pixels and monitor their usage across the web.

Features

  • Create Tracking Pixels: Generate unique tracking URLs for different websites, campaigns, or emails
  • Track Visitors: Capture visitor information including timestamp, IP address, user agent, and referrer
  • Analytics Dashboard: View visit history and statistics for each tracking pixel
  • Copy Integration Code: Easily copy pixel URLs or HTML code snippets for integration

How It Works

  1. Create a new tracking pixel from the dashboard
  2. Copy the tracking URL or HTML code
  3. Add the pixel to your website, email, or any other online content
  4. When someone views your content, the pixel will record their visit
  5. View the tracking data on your dashboard

Technical Details

This application is built using:

  • Frontend: React with TypeScript
  • Backend: Hono.js API server
  • Storage: Val Town blob storage

Getting Started

  • The application can be deployed directly on Val Town
  • The backend entrypoint is /backend/index.ts, which handles API endpoints and serves the frontend
  • The frontend entrypoint is /frontend/index.html, which loads the React application

API Endpoints

  • GET /api/create - Create a new tracking pixel and return its ID and URL
  • GET /api/list - List all tracking pixels and their view counts
  • GET /api/data/:id - Get detailed data for a specific tracking pixel
  • GET /t/:id.gif - The actual tracking pixel endpoint that records visits

Privacy Considerations

This tool collects visitor data including:

  • Timestamp of visits
  • IP addresses
  • User agents (browser information)
  • Referrer URLs

Make sure to comply with privacy regulations like GDPR and include appropriate disclosures in your privacy policy when using tracking pixels.

FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.