Sha256: a99a3e43f194739fb28b090c7def5408ac6c7662c91af84ffd0cb8d5bff51476
Contents?: true
Size: 1.22 KB
Versions: 5
Compression:
Stored size: 1.22 KB
Contents
#Analyticator Have you ever tried to add Google Analytics event tracking to an application? The only way to test them while you are in development is to watch the requests in your development tools and hope that you are reading them right! No longer! All you have to do is modify your Google Analytics tracking code during dev! ##Normal Code: <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-XXXXX-Y']); _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); })(); ##Modified Code <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-XXXXX-Y']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = 'http://localhost:8080/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })();
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
analyticator-1.1.7 | README.md |
analyticator-1.1.6 | README.md |
analyticator-1.1.5 | README.md |
analyticator-1.1.4 | README.md |
analyticator-1.1.3 | README.md |