Skip to content

N-Pacis/GTM-Node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AmaInsights-Christa

Page Tracker Service

The Page Tracker Service is a backend application built using Node.js and Express that enables tracking user interactions on a website. It integrates with Google Tag Manager and captures user activities such as page visits and button clicks. This service records user actions, device information, and page details for analysis using Google Analytics.

Table of Contents

Features Getting Started Prerequisites Installation Usage Endpoints

Features

Provides a landing page with buttons that record user actions when clicked. Captures user interactions, device details, and page information. Integrates with Google Tag Manager for enhanced analytics tracking. Supports viewing recorded user actions for analysis.

Getting Started

Prerequisites

Node.js (v14 or later) npm (Node Package Manager)

Installation

1.Clone the repository:

git clone https://github.com/your-username/page-tracker-service.git
  1. Navigate to the project directory:
cd page-tracker-service
  1. Install dependencies:
npm install

Usage

To run the Page Tracker Service, execute the following command:

node app.js

By default, the service will be available at http://localhost:3000.

Endpoints

  1. Displays a landing page with buttons to track user actions:
Landing Page: GET /
  1. Records user actions, capturing details such as action type, timestamp, user agent, and page information:
Record User Action: POST /recordAction
  1. Returns a JSON array containing recorded user actions for analysis:
View Recorded Actions: GET /viewActions

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors