{"repo":"at-internet/piano-analytics-js","free":true,"listed":false,"github":"https://github.com/at-internet/piano-analytics-js","clone":"git clone https://github.com/at-internet/piano-analytics-js.git","description":"Piano Analytics JavaScript SDK repository","language":"JavaScript","stars":15,"topics":["analytics","javascript","piano","sdk"],"license":"MIT","category":"analytics","readme_excerpt":"Piano Analytics SDK JavaScript About The Project The Piano Analytics Javascript SDK allows you to collect audience measurement data for the Piano Analytics solution. It works on all javascript environments dedicated to browsers (mostly websites). This SDK makes the implementation of Piano Analytics as simple as possible, while keeping all the flexibility of the solution. By loading this small library on your platform, and using dedicated and documented methods, you will be able to send powerful events. It also includes Consent management methods that allow you a perfect management of your tagging depending on the regulation you refer to. Getting Started - Install our library on your project (see below), you have a few possibilities : - Using NPM - Using our CDN (browser only) - Cloning the GitHub project to build a file you will host (browser only) - You can use this method if you want to configure your library without additional tagging (ex: like having your site and collect domain already configured in the built file). However, we suggest the NPM method if you use Build Tools (webpack etc.) - Check the documentation for an overview of the functionalities and code examples Using NPM 1. install our library 2. Configure your site and collect domain in your site/application initialization 3. Send events ! js pianoAnalytics.sendEvent('page.display', // Event name { 'page': 'page name', // Event properties 'page chapter1': 'level 1' , 'page chapter2': 'level 2' , 'page chapter3':","default_branch":null,"files":null,"tree":[],"storefront":"/r/at-internet","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/at-internet/piano-analytics-js/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}