A modern, interactive dashboard for testing and monitoring Google Tag Manager (GTM) events and data layer pushes. Built with React, TypeScript, and Tailwind CSS.
-
🛍️ E-commerce Event Testing
- Select Promotion
- View Item
- Add to Cart
- Start Checkout
- Complete Purchase
-
🎯 Custom Event Testing
- Push custom events to the data layer
- Real-time event logging
- JSON syntax highlighting
-
🔒 Consent Management
- Analytics consent updates
- Ads consent updates
- Page view tracking
-
📊 Interactive Elements
- Promotional banners with click tracking
- Logo click tracking
- Phone number click tracking
- Google Play Store link
-
💻 Developer Features
- Real-time console logging
- Formatted JSON output
- Timestamp tracking
- Syntax highlighting
- ⚛️ React 18
- 🔷 TypeScript
- 🎨 Tailwind CSS
- 📦 Vite
- 🔍 ESLint
- 🎯 Google Tag Manager
- Clone the repository
- Install dependencies:
npm install
- Start the development server:
npm run dev
The dashboard supports various e-commerce and custom events:
select_promotion
: Track promotion selectionsview_item
: Track product viewsadd_to_cart
: Track items added to cartbegin_checkout
: Track checkout initiationpurchase
: Track completed purchases
- Custom event pushing with user-defined names
- Banner click tracking
- Logo click tracking
- Phone number click tracking
consent_update_analytics
: Track analytics consent updatesconsent_update_ads
: Track advertising consent updatespush_page_view
: Track page views
src/
├── components/ # React components
├── hooks/ # Custom React hooks
├── utils/ # Utility functions
├── App.tsx # Main application component
└── main.tsx # Application entry point
- Run development server:
npm run dev
- Build for production:
npm run build
- Preview production build:
npm run preview
- Lint code:
npm run lint
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Open a Pull Request
MIT License - feel free to use this project for personal or commercial purposes.
For questions or support, please open an issue in the repository.