19 Star 38 Fork 11

自来水煮鱼 / wayixia-chrome-extension

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
tracker.js 1.67 KB
一键复制 编辑 原始数据 按行查看 历史
自来水煮鱼 提交于 2017-08-02 00:00 . 英文翻译,修正截屏提示
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* Add your Analytics tracking ID here.
*/
var _AnalyticsCode = 'UA-57909309-4';
/**
* Below is a modified version of the Google Analytics asynchronous tracking
* code snippet. It has been modified to pull the HTTPS version of ga.js
* instead of the default HTTP version. It is recommended that you use this
* snippet instead of the standard tracking snippet provided when setting up
* a Google Analytics account.
*/
var _gaq = _gaq || [];
_gaq.push(['_setAccount', _AnalyticsCode]);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script');
ga.type = 'text/javascript';
ga.async = true;
ga.src = 'https://ssl.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);
})();
/**
* Track a click on a button using the asynchronous tracking API.
*
* See http://code.google.com/apis/analytics/docs/tracking/asyncTracking.html
* for information on how to use the asynchronous tracking API.
*/
function wayixia_track_button_click(e) {
_gaq.push(['_trackEvent', e.id, 'clicked']);
}
function wayixia_track_event(id, from) {
_gaq.push(['_trackEvent', id, from]);
}
/**
* Now set up your event handlers for the popup's `button` elements once the
* popup's DOM has loaded.
*/
//document.addEventListener('DOMContentLoaded', function () {
//var buttons = document.querySelectorAll('button');
//for (var i = 0; i < buttons.length; i++) {
// buttons[i].addEventListener('click', trackButtonClick);
//}
//});
//
JavaScript
1
https://gitee.com/iknown/wayixia-chrome-extension.git
git@gitee.com:iknown/wayixia-chrome-extension.git
iknown
wayixia-chrome-extension
wayixia-chrome-extension
master

搜索帮助