| 1 |
<!DOCTYPE html> |
| 2 |
<html> |
| 3 |
<head> |
| 4 |
<meta charset="utf-8"> |
| 5 |
<title>DojoX Analytics Legacy Test</title> |
| 6 |
|
| 7 |
<style type="text/css"> |
| 8 |
@import "../../../dojo/resources/dojo.css"; |
| 9 |
@import "../../../dijit/tests/css/dijitTests.css"; |
| 10 |
</style> |
| 11 |
|
| 12 |
|
| 13 |
<link rel="stylesheet" id="themeStyles" href="../../../dijit/themes/tundra/tundra.css"> |
| 14 |
|
| 15 |
|
| 16 |
<script src="../../../dojo/dojo.js" |
| 17 |
data-dojo-config="parseOnLoad: true, isDebug: true, usePlainJson: true, sendMethod: 'script', sendInterval: 5000, |
| 18 |
// the line below can be used to override the sampleDelay for mouseOver and targetProps and textContentMaxChars |
| 19 |
//sampleDelay : 2000, targetProps : ['id','className'], textContentMaxChars : 12, |
| 20 |
analyticsUrl: 'http://dojotoolkit.org/~dmachi/dojo-1.0/dojox/analytics/logger/dojoxAnalytics.php'"></script> |
| 21 |
|
| 22 |
|
| 23 |
<script src="../../../dijit/tests/_testCommon.js"></script> |
| 24 |
|
| 25 |
<script> |
| 26 |
// NOTE: This test intentionally tests the legacy syntax. See test_analytics-async.html for same test in AMD format |
| 27 |
// include the analytics system |
| 28 |
dojo.require("dojox.analytics"); |
| 29 |
|
| 30 |
// this plugin returns the information dojo collects when it launches |
| 31 |
dojo.require("dojox.analytics.plugins.dojo"); |
| 32 |
|
| 33 |
// this plugin return the information the window has when it launches |
| 34 |
// and it also ties to a few events such as window.option |
| 35 |
dojo.require("dojox.analytics.plugins.window"); |
| 36 |
|
| 37 |
// this plugin tracks console. message, It logs console.error, warn, and |
| 38 |
// info messages to the tracker. It also defines console.rlog() which |
| 39 |
// can be used to log only to the server. Note that if isDebug() is disabled |
| 40 |
// you will still see the console messages on the sever, but not in the actual |
| 41 |
// browser console. |
| 42 |
dojo.require("dojox.analytics.plugins.consoleMessages"); |
| 43 |
|
| 44 |
// tracks where a mouse is on a page an what it is over, periodically sampling |
| 45 |
// and storing this data |
| 46 |
dojo.require("dojox.analytics.plugins.mouseOver"); |
| 47 |
|
| 48 |
//tracks mouse clicks on the page |
| 49 |
dojo.require("dojox.analytics.plugins.mouseClick"); |
| 50 |
|
| 51 |
//tracks when the user has gone idle |
| 52 |
dojo.require("dojox.analytics.plugins.idle"); |
| 53 |
|
| 54 |
dojo.require("dijit.TitlePane"); |
| 55 |
dojo.require("dojo.parser"); |
| 56 |
dojo.require("dojo.io.script"); |
| 57 |
|
| 58 |
// widgets used inside subpage loaded via href= |
| 59 |
dojo.require("dijit.form.Button"); |
| 60 |
dojo.require("dijit.form.ComboBox"); |
| 61 |
|
| 62 |
dojo.addOnLoad(function(){ |
| 63 |
console.info("Page Loaded Sample Message"); |
| 64 |
}); |
| 65 |
</script> |
| 66 |
|
| 67 |
</head> |
| 68 |
<body class="tundra"> |
| 69 |
<table> |
| 70 |
<tr> |
| 71 |
<td colspan=3> |
| 72 |
<h1 class="testTitle">DojoX Analytics Legacy Test</h1> |
| 73 |
</td> |
| 74 |
</tr> |
| 75 |
<tr> |
| 76 |
<td width="20%"></td> |
| 77 |
<div data-dojo-type="dijit.TitlePane" data-dojo-props="title:'dgrid', style:'width: 300px;'"> |
| 78 |
Lorem Ipsum Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Quisque |
| 79 |
iaculis, nulla id semper faucibus, pede tellus nonummy magna, vitae adipiscing |
| 80 |
orci arcu ut augue. Nunc condimentum, magna a vestibulum convallis, libero purus |
| 81 |
pulvinar orci, sed vestibulum urna sem ut pede. More Ipsum... |
| 82 |
Sed sollicitudin suscipit risus. Nam ullamcorper. Sed nisl lectus, pellentesque |
| 83 |
nec, malesuada eget, ornare a, libero. Lorem ipsum dolor sit amet, |
| 84 |
consectetuer adipiscing elit. |
| 85 |
|
| 86 |
<a href="http://dgrid.io">dgrid.io</a> |
| 87 |
</div> |
| 88 |
|
| 89 |
<div data-dojo-type="dijit.TitlePane" data-dojo-props="title:'dojo', style:'width: 300px;'"> |
| 90 |
Lorem Ipsum Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Quisque |
| 91 |
iaculis, nulla id semper faucibus, pede tellus nonummy magna, vitae adipiscing |
| 92 |
orci arcu ut augue. Nunc condimentum, magna a vestibulum convallis, libero purus |
| 93 |
pulvinar orci, sed vestibulum urna sem ut pede. More Ipsum... |
| 94 |
Sed sollicitudin suscipit risus. Nam ullamcorper. Sed nisl lectus, pellentesque |
| 95 |
nec, malesuada eget, ornare a, libero. Lorem ipsum dolor sit amet, |
| 96 |
consectetuer adipiscing elit. |
| 97 |
|
| 98 |
<a href="http://dojotoolkit.org">dojotoolkit.org</a> |
| 99 |
</div> |
| 100 |
<td width="20%"></td> |
| 101 |
</tr> |
| 102 |
</table> |
| 103 |
</body> |
| 104 |
</html> |