Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
README.md
analytics.js
bower.json
package.json

README.md

tm-analytics

npm install or bower install

On node.js

tmanalytics = require('tm-analytics')

analytics = new tmanalytics({
  mixpanelApiKey: config.mixpanelApiKey,
  customerIOSiteID: config.customerIOSiteID,
  customerIOApiKey: config.customerIOApiKey
})

analytics.track('something', {with: 'stuff'})

On browser

var analytics = new window.tmanalytics({
      mixpanelApiKey: "#{config.mixpanelApiKey}",
      customerIOSiteID: "#{config.customerIOSiteID}",
      customerIOApiKey: "#{config.customerIOApiKey}"
});

analytics.track("something", {like: "this"});
Something went wrong with that request. Please try again.