Comments (13)
I am no more using this project, cc @contra I believe you are using it and it works right? Can you have a quick look at what @seanadkinson said? thx
from analytics.js-loader.
Here is my code, using my fork (https://github.com/contra/analytics.js-loader):
loadAnalytics = require 'analytics.js-loader'
key = 'your segment key'
analytics = loadAnalytics key
if analytics?
console.log '[Analytics] Loaded'
module.exports = ->
loadAnalytics key
else
console.log '[Analytics] Failed to load'
module.exports = null
from analytics.js-loader.
@contra Can you do a PR if you have more fixes? Actually you are now owner of both the github and npm repo so you can do anything you want here:)
from analytics.js-loader.
@seanadkinson same problem here - its not actually working...
from analytics.js-loader.
@mmahalwy Try my code above... it has been working well for me.
from analytics.js-loader.
Are you guys saying the currently published module is not working at all? Would you mind submitting a patch, @seanadkinson ?
from analytics.js-loader.
I encountered the same issue, it does appear the currently published module doesn't work for the reasons that @seanadkinson outlined. His module works perfectly for me. Would be happy to see this integrated into the library.
from analytics.js-loader.
Thanks for merging @vvo!
from analytics.js-loader.
@vvo Oops, looks like I didn't tag the commit though. Mind adding the 2.1.2
tag so we can install this using npm
now?
from analytics.js-loader.
I think I published it
from analytics.js-loader.
Ah, so you did, just didn't see it in GitHub tags. Thanks!
from analytics.js-loader.
actually there's no real need to push tags when publishing on npm, this is just a convenience/consistency for users but no need
from analytics.js-loader.
npm doesnt care about the github tags
from analytics.js-loader.
Related Issues (4)
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 analytics.js-loader.