WordPress.org

Making WordPress.org

Changeset 880


Ignore:
Timestamp:
10/01/14 05:16:02 (3 years ago)
Author:
pento
Message:

apps.wordpress.org: Add Google Analytics code for the mobile team to track usage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-apps/footer.php

    r843 r880  
    4444<?php wp_footer(); ?> 
    4545 
     46<script> 
     47  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ 
     48  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), 
     49  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) 
     50  })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); 
     51 
     52  ga('create', 'UA-52447-51', 'auto'); 
     53  ga('send', 'pageview'); 
     54 
     55</script> 
    4656</body> 
    4757</html> 
Note: See TracChangeset for help on using the changeset viewer.