I'm a typical use case. I'd like to add some Google Analytics goal tracking to my Drupal site, but I'm lazy. Adding them manually to end points is quite time consuming. There would also be problems with making sure these end points don't get triggered twice for the same action.
Solution: Integrate Google Analytic module with Rules.
Rules gives us a lot of wonderful "Events" which are useful for Google Analytics Goal tracking. The best thing about doing it this way, is you'll be able to integrate Google Analytics goals very easily in the future for any module which integrates it's workflow with Rules.
Here are some events which could be used (there are tonnes more)
- Ubercart - Customer Completes Checkout
- Comments - After Saving a new comment
- Node - After saving new content
- User - After saving a new user account
- User - User has logged in
For me at least, I'd personally want all these tracked in Google Analytics as goals. I think it would be a very useful benchmark of how my site (and changes) are doing.
We would also need to make sure this works with Anonymous page caching.
So developers. Is this feasible?
Please +1 to show your support for this.
Additional Bikeshed (not to be accomplished on first iteration, but version #2): What about adding Goal funnels for tracking abandon rate. Can we do this currently with Rules, or will we have to create some expanded rules to make this happen. Something to think about.
Here's some reading on Google Analytics Event Tracking with Goals: