Build Web data collection Js library

Job ID: 33270159

Budget: ₹150,000 – ₹250,000 INR

Objective

Build Web Analytics Js library with least size.

Reference : https://segment.com/docs/connections/sources/catalog/libraries/website/javascript/
Segment has open source code for its analytics library. Please use it as a base for building Analytics Js library.


Scope

Make HTTP requests basis on user interaction on website & send directly to Server endpoint with data points as

Event attributes
User attributes
Product attributes
Unique identifier for user

Pageview and User Actions as Events are considered user interaction. Both can be tracked by Analytics Js
Flexible to collect deduplication/unique parameter for each Ad platform
Flexible to send custom data attributes with user interaction
Stores hashed user attributes as first party cookie
HTTP endpoint for sending the data to server will be unique for each client
Remove security Key from Segment Library


Input

end point for Taghash client


Output

Analytics Js library for client


Additional Info

Analytics Js library to track all page attributes automatically via sending HTTP request per each page load/pageview (incase of one page sites)
Analytics Js library to convert User attributes (email, phone, firstname, last name, gender, dob, city, state, zipcode, country, Custom attribute) into sha256 at the browser only and store them as individual first party cookie
Analytics library to send all User attributes’ values (stored in cookie) at each HTTP request going to Server End Point

Segment Analytics.js

https://cdn.segment.com/analytics.js/v1/FhhQqnkKs3zLSPKSo9KrH2d97anHHPDI/analytics.min.js