PageRenderTime 84ms CodeModel.GetById 28ms RepoModel.GetById 2ms app.codeStats 0ms

/application/views/tests/test-ga-js-learning1.php

https://bitbucket.org/nfreear/trackoer-core
PHP | 47 lines | 12 code | 13 blank | 22 comment | 0 complexity | 7c1649eac35a59ca09a73d9a022cd335 MD5 | raw file
  1. <?php
  2. #$public_js_url = base_url() .'public/js/';
  3. #$google_analytics_id = 'UA-34064304-2';
  4. /*
  5. We assume there will be 2+ Google Analytics accounts.
  6. http://stackoverflow.com/questions/2651834/google-analytics-async-tracking-with-two-accounts
  7. */
  8. #$ga_property_id = '_trackoer_content';
  9. #$piwik_siteid = 4;
  10. ?>
  11. <h1>Track OER - Google Analytics custom Javascript</h1>
  12. <p>[Creative Commons RDFa license snippet]
  13. <div id=cc-code><p>
  14. <?php echo $cc_code ?>
  15. </div>
  16. <?php /*
  17. <pre>
  18. NDF, 15 August 2012 (follows conversation with Guy Barrett).
  19. * https://developers.google.com/analytics/devguides/collection/gajs/
  20. * https://github.com/tatemae/capret/tree/master/public/js/
  21. * http://james.padolsey.com/javascript/parsing-urls-with-the-dom/
  22. * http://blog.stevenlevithan.com/archives/parseuri
  23. * oer_license_parse_2.js | trackoer-ga.js
  24. * http://dl.dropbox.com/u/3203144/track/page-learning1.html?key=val#hash
  25. </pre>
  26. */ ?>
  27. <script>
  28. console.log(document.location);
  29. </script>