GithubHelp home page GithubHelp logo

Comments (13)

vvo avatar vvo commented on May 31, 2024

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.

yocontra avatar yocontra commented on May 31, 2024

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.

vvo avatar vvo commented on May 31, 2024

@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.

mmahalwy avatar mmahalwy commented on May 31, 2024

@seanadkinson same problem here - its not actually working...

from analytics.js-loader.

seanadkinson avatar seanadkinson commented on May 31, 2024

@mmahalwy Try my code above... it has been working well for me.

from analytics.js-loader.

vvo avatar vvo commented on May 31, 2024

Are you guys saying the currently published module is not working at all? Would you mind submitting a patch, @seanadkinson ?

from analytics.js-loader.

 avatar commented on May 31, 2024

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.

 avatar commented on May 31, 2024

Thanks for merging @vvo!

from analytics.js-loader.

 avatar commented on May 31, 2024

@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.

vvo avatar vvo commented on May 31, 2024

I think I published it

from analytics.js-loader.

 avatar commented on May 31, 2024

Ah, so you did, just didn't see it in GitHub tags. Thanks!

from analytics.js-loader.

vvo avatar vvo commented on May 31, 2024

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.

vvo avatar vvo commented on May 31, 2024

npm doesnt care about the github tags

from analytics.js-loader.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.