Monday, August 18, 2008

Tip - One simple rule to setup Google Analytics

To setup your web application for Google Analytics requires you to paste Google Analytics Scripts to all your web pages before the </body> tag:



Now imagine if you've dozens of webpages and you're required to make changes to all of them, you need to place the above mentioned script to every webpage. For every new webpage you also need to do the same.

If you use Vroom Framework with your web application no matter what other web framework you're using (Struts, JSF, etc.), following simple rule defined in the vroom-config.xml file instructs Vroom Framework to setup Google Analytics to all your webpages at runtime:



Now the above approach does not require any changes to your webpages. It will automatically take care of existing and all new webpages you'll design for your web application.

No comments: