How to add license when using via npm

Posted by: nchalla on 10 February 2020, 12:35 am EST

  • Posted 10 February 2020, 12:35 am EST


    How to add license when referencing DataViewsJS in my npm-based applications.


  • Posted 10 February 2020, 9:37 pm EST

    Internal tracking ID: JSVIEW-558

  • Posted 10 February 2020, 9:38 pm EST


    We could add the license key on the window object for npm-based application too. Please refer to the following code snippet and the sample demonstrating the same:

    window["GC"] = {
            DataViews: {
              LicenseKey: "XXXXXXX"

    Further, we have also asked the dev team if there is any better alternative available. I’ll update you as soon as I hear back from the team.



Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels