Skip to content
This repository has been archived by the owner on Dec 31, 2021. It is now read-only.

globocom/analytics.js

 
 

Repository files navigation

analytics.js

Build Status

The hassle-free way to integrate analytics into any web application. See the docs.

Looking for an even easier way to setup analytics on your website? Check out Segment.io! It's our hosted solution that lets you add analytics services without touching any code at all.

Building

Analytics.js is packaged as a component. In order to build it, you will need to install component:

npm install component

We've already packaged the files as a standalone build found in analytics.js and analytics.min.js. To build the files yourself, run make.

PROVIDERS GLOBO.COM

Adobe Audience Manager

Initialize

analytics.initialize({ 'Adobe Audience Manager' : ' ' });

Track

analytics.track({event : 'capturando evento'}, {nome : 'nome do usuario'})

Context

context = { providers: { 'All' : false, 'Google Analytics' : true, 'Adobe Audience Manager' : true } }; analytics.track({event : 'capturando evento'}, {nome : 'nome do usuario'}, context)

Multi Google Analytics

Initialize

analytics.initialize({ 'Multi Google Analytics' : { 'homeTrackingId' : 'UA-XXXXXX-XX', 'homeDomain' : '.globo.com', 'produtoTrackingId' : 'UA-XXXXXX-XX', 'produtoDomain' : '.produto.globo.com' } });

os outros metodos estão na documentação do Google Analytics. https://segment.io/libraries/analytics.js.

License

WWWWWW||WWWWWW
 W W W||W W W
      ||
    ( OO )__________
     /  |           \
    /o o|    MIT     \
    \___/||_||__||_|| *
         || ||  || ||
        _||_|| _||_||
       (__|__|(__|__|

(The MIT License)

Copyright (c) 2013 Segment.io Inc. friends@segment.io

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

upstream/master

About

The hassle-free way to integrate analytics into any web application.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 99.5%
  • CSS 0.5%