Provides ability for personalization and visitor data collection. Read more about it.
git clone git@github.com:morpht/convivial-profiler.git
- cd convivial-profiler
- npm install
- npm start
- visit
http://localhost:8080/
Fetches a value from cookies based on the source name and adds it to the values array if found.
Performs an asynchronous HTTP GET request to fetch data from a specified resource URL and adds the response to the values array.
Determines the device type (mobile or desktop) from the user agent string and adds it to the values array.
Collects content from <meta>
tags matching a specified attribute name and adds each content piece to the values array.
Extracts values from URL query parameters matching the specified source parameter and adds them to the values array.
Adds the current time component (hour, minute, or second) specified in the source to the values array.
Adds the browser's language setting to the values array, or defaults to "en-AU" if the browser language is not set or does not include a region.
Increments a value within an accumulator based on the input values.
Adjusts dimension values, optionally normalizing them across the input values.
Stores geographic information with an expiration time based on input values.
Stores the full language information from input values with an expiration time.
Stores a simplified language code from input values with an expiration time.
Maps input values to stored values based on predefined mappings, with fallback and default values.
Logs page views and/or increments a counter based on the processor's configuration.
Tracks search queries based on URL parameters, logging and incrementing counters for unique searches.
Stores values with an expiration time, with support for permanent storage by setting a specific TTL.
Removes a stored value based on matching input values and temporarily stores a specified value.
Stores values temporarily in the profiler's temporary storage.
Selects the best value based on a set of criteria from local storage and optionally stores it in local storage or cookies.
Copies a value identified by a storage key to either local storage or cookies, with an option to stringify the value.
Stores a flag value in local storage or cookies, prefixed or suffixed as defined.
Auto-fills form fields with data from local storage or cookies based on configurations.
Attaches an event listener to a form to track submissions and push data to the dataLayer.
Determines if the current time falls within configured office hours and stores the result in local storage or cookies.
Categorizes a numeric value into predefined ranges and stores the result in local storage or cookies.
Determines the current season based on a predefined value and stores it in local storage or cookies.
Sets a specified value in local storage or cookies to '1'.
Stores data in local storage or cookies if it exceeds a certain threshold.
Identifies and stores the top value from a dimension in local storage or cookies.
Unsets a specified value in local storage or cookies by setting it to '0'.
Pushes events to the dataLayer for analytics purposes, using the values
parameter to create multiple events if necessary.
Removes data from local storage or cookies based on a set of criteria.
Copyright, Morpht Pty Ltd, 2020 - 2022
The library is available for community use and can be licensed for commercial projects. Licensing and pricing information is available at Convivial Profiler pricing page on the Morpht website.