示例#1
0
Ti.App.addEventListener('tweets:click', function(evt){
  analytics.trackEvent('Tweet','Click', evt.url,'');
  var browser = new TiMiniBrowser({
    url: evt.url,
    barColor: "#3075af",
    modal: true
  });
  browser.open();
})
示例#2
0
Ti.App.addEventListener('analytics:trackPageview', function(e) {
  Ti.API.info("Analytics : trackPageview() : " + e.url);
  analytics.trackPageview(e.url);
});
示例#3
0
}, currentSection;

//Initialize to home section
currentSection = sections.agenda;
$.content.add(currentSection.getView());
currentSection.trigger('focus');
currentSection.on('nav', sectionNav);

$.header.on('refresh',function(e){
   currentSection.trigger('refresh');
});



var Analytics = require('Analytics').Analytics;
var analytics = new Analytics('UA-35350511-1');

analytics.start(10);
Ti.App.addEventListener('analytics:trackPageview', function(e) {
  Ti.API.info("Analytics : trackPageview() : " + e.url);
  analytics.trackPageview(e.url);
});

var TiMiniBrowser = require("MiniBrowser/TiMiniBrowser");
Ti.App.addEventListener('tweets:click', function(evt){
  analytics.trackEvent('Tweet','Click', evt.url,'');
  var browser = new TiMiniBrowser({
    url: evt.url,
    barColor: "#3075af",
    modal: true
  });