index.html 1.2 KB

1234567891011121314151617181920212223
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <title> Sample Widget</title>
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  7. <script language="javascript" type="text/javascript" src="js/GoogleAnalytics.js"></script>
  8. <script language="javascript" type="text/javascript" src="basic.js"></script>
  9. <link rel="stylesheet" href="basic.css" type="text/css">
  10. <META NAME="Generator" CONTENT="Nokia WRT plug-in for Aptana Studio 2.0.0" />
  11. </head>
  12. <body onLoad="javascript:init();">
  13. <h2>Track actions:</h2>
  14. <div id="track_actions">
  15. <a href="#" onclick="tracker.trackEvent('Category 1', 'Action 1')">Category 1, Action 1, No label</a>
  16. <a href="#" onclick="tracker.trackEvent('Category 1', 'Action 2', 'Label 1')">Category 1, Action 2, Label 1</a>
  17. <a href="#" onclick="tracker.trackEvent('Category 1', 'Action 2', 'Label 2')">Category 1, Action 2, Label 2</a>
  18. <a href="#" onclick="tracker.trackEvent('Category 2', 'Action 1')">Category 2, Action 1, No Label</a>
  19. <a href="#" onclick="tracker.trackPageview('/path/to/somepage.php')">Track PageView test</a>
  20. </div>
  21. </body>
  22. </html>