gaTracker

码农软件 · 软件分类 · 其他jQuery插件 · 2020-01-08 15:28:48

软件介绍

This plugin is intended to simplify the process of adding Google Analytics tracking to a page, including the tracking of outbound links, mailtos, and downloads, which are not otherwise tracked by default. Calling the plugin does the following:

  • Determine whether to include the SSL or non-SSL version of the GA script.
  • Include the GA script (currently urchin.js, while ga.js is still in beta testing) from within try/catch to help suppress any issues GA may have from time to time.
  • Set the _uacct variable to your GA tracking code.
  • Call the urchinTracker() function once for the initial page load.
  • Examine all of the links on the page and attach onclick events to external links, mailto links, and downloads.
  • Call urchinTracker() when these links are clicked, prefixing them appropriately.

In addition to the tracking code, the prefixes used for each of the link types above, as well as the extensions considered "downloadable files" are configurable by the user.

It requires jQuery 1.2 or higher for the cross-domain $.getScript() call. Usage is simply:

        $.gaTracker('UA-XXXXX-XX');

Or you can specify options like so:

        $.gaTracker(
                'UA-XXXXX-XX',
                {
                        external:       '/external/',
                        mailto:         '/mailto/',
                        download:       '/downloads/',
                        extensions:     [
                                'pdf','doc','xls','csv','jpg','gif', 'mp3',
                                'swf','txt','ppt','zip','gz','dmg','xml'
                        ]
                }
        );

本文地址:https://codercto.com/soft/d/22938.html

UX设计之道

UX设计之道

[美]Russ Unger、[美]Carolyn Chandler / 陈军亮 / 人民邮电出版社 / 2015-4-1 / 49.00元

本书的目标是提供一些基本的工具及应用场景,帮助你及工作团队一起来使用这些工具和方法。正如你将在本书很多章节中看到的那样,我们没有尝试包罗万象、迎和所有的人,但我们试图给你提供一些用户体验(UX)设计师需要具备的核心信息和知识。除了我们自己的案例外,我们还提供了一些帮你了解如何开始准备基本材料的案例,让你可综合这些信息来创建某些更新、更好或者是更适合自己意图的东西。一起来看看 《UX设计之道》 这本书的介绍吧!

html转js在线工具
html转js在线工具

html转js在线工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具