Comments (3)
We're pretty much in maintenance mode at this point. Can you explain what NPM, CommonJS and ES Modules are and the benefit of the proposed change?
from chrome-platform-analytics.
IIRC you can add a github repository/commit ID as a dependency in an NPM package, so that is likely your best option for now.
from chrome-platform-analytics.
Since I am using webpack as a build system it would be really nice to be able install this lib via npm.
Therefore we need to get rid of global variables and export the analytics
Object by using some kind of module pattern.
One way to solve this issue and stay backwards compatible would be to use UMD (Universal Module Definition).
As a quick solution I copied the bundle and exported the analytics
Object manually.
from chrome-platform-analytics.
Related Issues (20)
- Allow clients to explicitly reset client id HOT 1
- Calling Tracker.send(EventBuilder) fails when using multiple script contexts due to use of instanceof checks
- bug in ServiceTracker.send
- Option to persist config in chrome.storage.sync HOT 3
- Set `anonymizeIp` HOT 3
- Export analytics.createDimensionParam() and analytics.createMetricParam() HOT 3
- Custom Dimensions not working HOT 3
- API documentation is out of date HOT 4
- Enable advertising features HOT 1
- Issue with custom dimensions with an event HOT 1
- Content Security Policy HOT 1
- using in chrome app background/event page prevents it from going inactive HOT 1
- TypeError: Cannot read property 'clientWidth' of null HOT 2
- Provide unminified version or instructions on how to compile src HOT 1
- Screen type name (the "t" parameter) HOT 2
- Analytics is not defined HOT 2
- Don't understand how to identify individual users HOT 1
- Can't find chrome.runtime.getManifest().version immediately after update HOT 4
- New day same issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chrome-platform-analytics.