| home | forums | resources | search | news | join | members: 5824 |
Carl | Tue, 2007-12-25 11:00 tags: Developer Zone, Google, Tips and Tricks W Google Analytics Javascript UpgradedWhile doing some research I found that Google has upgraded their Analytics code a couple of months ago. the old urchin.js is being replaced by a newer ga.js. What makes the new ga.js different from urchin.js?
New PossibilitiesThis was all positive stuff and made it even easier to accomplish my goals. A lot of things have been changed in the code and somethings that can be done more easily now are the tracking ecommerce transactions and interactive Ajax-based sites. HTML Page Tag using urchin.js:
<script type="text/javascript" src=" http://www.google-analytics.com/urchin.js "></script>HTML Page tag using ga.js
<script type="text/javascript">The Download TrackingThe code for tracking downloads looks like this now.
<a href="http://www.example.com/files/map.pdf" onClick="javascript:urchinTracker ('/downloads/map'); ">
But after I am finished upgrading to the newer javascript it will look like this.
<a href="http://www.example.com/files/map.pdf" onClick="javascript: pageTracker._trackPageview('/downloads/map'); ">
As you can see it is fairly easy to implement and if you are using Drupal or another CMS that has a function or method for writing links then it only takes minutes to put into place. A Word to Open Source CMS DevelopersCMS module and extension developers should now be using the upgraded code or get on the ball and change their code. Aside from the many new possiblities within just the plain js code. When the new features are coupled to the backend and administration of a CMS it will serve to remove many of the frustrations associated with statistics that CMS end users experience. Much of the load for granular statistics can now be off loaded to the Google Analytics servers. I sincerly hope that at least the top ten CMS's will be upgraded to the new code especially Drupal and Wordpress. Lastly, if you are creating new pages maually and not using a CMS then be careful of mixing the two code types. They are not compatible. Mixing could cause you to miss a great deal of information. With ten years of experience in web development he spends most of his work day developing in PHP,mySQL and Drupal Carl McDade - Systems Developer |
Content Management Systems London Hotels
Wordpress Laptop Reviews
Joomla! Just Dial International Calls
Adobe Flex Wordpress Excel Training Courses
Windows excel courses in london
Silverlight Data Recovery
Content Management Systems Cheap Personal & Secured Loans
Adobe Flex Silverlight Sell Online
|
NewsletterGet updates on Hiveminds services, articles and downloads by signing up for the newsletter. |
Editor's choiceSome of the better articles, stories and tutorials found at Hiveminds. |
Find moreFind more of Hiveminds articles, stories, tutorials and user comments by searching. |
Picked linksHand picked websites and articles from around the web that provide quality reading. |