Nimble Pixie Merchant

    logmyapp-analytics

    1.0.9 • Public • Published

    Logmyapp analytics

    Logmyapp was built with simplicity in mind for developers. Start using logmyapp-analytics to see what youre users are doing and which pages are being hit the most.

    Documentation

    Steps to use Logmyapp Analytics

    Head over to logmyapp choose login or sign up. After that, you will taken to a dashboard.

    Once on the dashboard click new project in the top right corner in the dropdown menu.

    Enter in the neccessary information the form. After that, you will get your API key.

    After this you are ready to start using our npm package for analytics

    How to use this package

    First install the package

      npm i logmyapp-analytics

    After installing include this in the component or file you want to use logmyapp in.

    import { analytics } from 'logmyapp-analytics'
    

    After importing the package use it like below in all or just specific areas.

    useEffect(() => {
        analytics("home page", "page_view", "APIKEY")
    },[])
    

    You can use this package on a button click, page load like above or wherever you see fit. The most important part is putting what page it is and what that user is doing in the action param.

    API Reference for npm package

    Log an action

      log(message, type, apikey)
    Parameter Type Description
    page string Required. The message to display in monitoring
    action string Required. Params are (click, page_view) anything else will not be shown on the dashboard currently. (more to come soon)
    apikey string Required. Your API key obtained from here

    Install

    npm i logmyapp-analytics

    DownloadsWeekly Downloads

    2

    Version

    1.0.9

    License

    ISC

    Unpacked Size

    3.25 kB

    Total Files

    3

    Last publish

    Collaborators

    • ellislax23