@@ -4,38 +4,38 @@ dojo.provide("dojox.analytics.Urchin");
4
4
dojo.mixin(djConfig,{
5
5
// urchin: String
6
6
// Used by `dojox.analytics.Urchin` as the default UA-123456-7 account
7
- // number used when being created. Alternately, you can pass an acct:""
7
+ // number used when being created. Alternately, you can pass an acct:""
8
8
// parameter to the constructor a la: new dojox.analytics.Urchin({ acct:"UA-123456-7" });
9
9
urchin: ""
10
10
});
11
11
=====*/
12
12
13
13
dojo . declare ( "dojox.analytics.Urchin" , null , {
14
- // summary: A Google-analytics helper, for post-onLoad inclusion of the tracker, and
15
- // dynamic tracking during long-lived page cycles.
14
+ // summary: A Google-analytics helper, for post-onLoad inclusion of the tracker, and
15
+ // dynamic tracking during long-lived page cycles.
16
16
//
17
17
// description:
18
18
// A small class object will allows for lazy-loading the Google Analytics API
19
19
// at any point during a page lifecycle. Most commonly, Google-Analytics is loaded
20
- // via a synchronous script tag in the body, which causes `dojo.addOnLoad` to
20
+ // via a synchronous script tag in the body, which causes `dojo.addOnLoad` to
21
21
// stall until the external API has been completely loaded. The Urchin helper
22
22
// will load the API on the fly, and provide a convenient API to use, wrapping
23
23
// Analytics for Ajaxy or single page applications.
24
24
//
25
25
// The class can be instantiated two ways: Programatically, by passing an
26
- // `acct:` parameter, or via Markup / dojoType and defining a djConfig
26
+ // `acct:` parameter, or via Markup / dojoType and defining a djConfig
27
27
// parameter `urchin:`
28
28
//
29
- // IMPORTANT:
30
- // This module will not work simultaneously with the core dojox.analytics
29
+ // IMPORTANT:
30
+ // This module will not work simultaneously with the core dojox.analytics
31
31
// package. If you need the ability to run Google Analytics AND your own local
32
32
// analytics system, you MUST include dojox.analytics._base BEFORE dojox.analytics.Urchin
33
33
//
34
34
// example:
35
35
// | // create the tracker programatically:
36
36
// | var tracker = new dojox.analytics.Urchin({ acct:"UA-123456-7" });
37
37
//
38
- // example:
38
+ // example:
39
39
// | // define the urchin djConfig option:
40
40
// | var djConfig = { urchin: "UA-123456-7" };
41
41
// |
@@ -45,15 +45,15 @@ dojo.declare("dojox.analytics.Urchin", null, {
45
45
// | new dojox.analytics.Urchin();
46
46
//
47
47
// example:
48
- // | // create and define all analytics with one tag.
48
+ // | // create and define all analytics with one tag.
49
49
// | <div dojoType="dojox.analytics.Urchin" acct="UA-12345-67"></div>
50
50
//
51
51
// acct: String
52
52
// your GA urchin tracker account number. Overrides `djConfig.urchin`
53
53
acct : "" ,
54
54
55
55
constructor : function ( args ) {
56
- // summary:
56
+ // summary:
57
57
// Initialize this Urchin instance. Immediately starts the load
58
58
// sequence, so defer construction until (ideally) after onLoad and
59
59
// potentially widget parsing.
@@ -85,20 +85,20 @@ dojo.declare("dojox.analytics.Urchin", null, {
85
85
} ,
86
86
87
87
GAonLoad : function ( ) {
88
- // summary:
88
+ // summary:
89
89
// Stub function to fire when urchin is complete
90
90
// description:
91
- // This function is executed when the tracker variable is
91
+ // This function is executed when the tracker variable is
92
92
// complete and initialized. The initial trackPageView (with
93
- // no arguments) is called here as well, so remeber to call
93
+ // no arguments) is called here as well, so remeber to call
94
94
// manually if overloading this method.
95
95
//
96
96
// example:
97
97
// Create an Urchin tracker that will track a specific page on init
98
98
// after page load (or parsing, if parseOnLoad is true)
99
99
// | dojo.addOnLoad(function(){
100
100
// | new dojox.ananlytics.Urchin({
101
- // | acct:"UA-12345-67",
101
+ // | acct:"UA-12345-67",
102
102
// | GAonLoad: function(){
103
103
// | this.trackPageView("/custom-page");
104
104
// | }
@@ -109,8 +109,8 @@ dojo.declare("dojox.analytics.Urchin", null, {
109
109
} ,
110
110
111
111
trackPageView : function ( /* string */ url ) {
112
- // summary: A public API attached to this widget instance, allowing you
113
- // Ajax-like notification of updates.
112
+ // summary: A public API attached to this widget instance, allowing you
113
+ // Ajax-like notification of updates.
114
114
//
115
115
// url: String
116
116
// A location to tell the tracker to track, eg: "/my-ajaxy-endpoint"
@@ -121,7 +121,7 @@ dojo.declare("dojox.analytics.Urchin", null, {
121
121
// | dojo.connect(container, "onclick", function(e){
122
122
// | var ref = dojo.attr(e.target, "href");
123
123
// | tracker.trackPageView(ref);
124
- // | pane.attr("href", ref);
124
+ // | pane.attr("href", ref);
125
125
// | });
126
126
127
127
this . tracker . _trackPageview . apply ( this , arguments ) ;
0 commit comments