1 / 6

Measuring IPv6

This code adds JavaScript elements to your web page to track web client behaviors and perform IPv6 tests, with results displayed in your Google Analytics report. The tests include loading different types of URLs to determine the client's IPv6 capability.

Download Presentation

Measuring IPv6

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Measuring IPv6 Using Google Analytics A Contribution to World IPv6 Day, June 8 2011 Emile Aben, RIPE NCC Geoff Huston, APNIC George Michaelson, APNIC

  2. Google Analytics Adds a javascript element to your web page that allows you to track web client behaviours <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-0000000']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script>

  3. Adding IPv6 tests This code is an additional javascript element added to the analytics part of your web page The javascript code performs a set of tests on the client to determine their IPv6 capability Results are added to your Google Analytics report <script type="text/javascript"> …google analytics code… // enable the APNIC IPProtoTest and feed google analytics events if ('http:' == document.location.protocol) { var ipproto_user = ’1'; (function() { var iga = document.createElement('script'); iga.type = 'text/javascript'; iga.async = true; iga.src = 'http://labs.apnic.net/ipprototest.js'; var is = document.getElementsByTagName('script')[0]; is.parentNode.insertBefore(iga, is); })(); } </script>

  4. The IPv6 Tests The client attempts to load 5 1x1 gif images as a silent background task: • IPv4 only URL • IPv6 only URL • Dual Stack URL • IPv6 DNS URL • IPv6 Literal URL (No DNS) Each test is timed, and the script passes the results back to analytics as a set of “events”

  5. Reporting Using the Events Tracker, Analytics can report on: • the number of clients who can pass / fail each of these tests • the number of clients with each combination of test outcomes • the relative retrieval times between IPv4 and IPv6

  6. For more information… http://labs.apnic.net

More Related