PureMVC Architects Lounge

Announcements and General Discussion => General Discussion => Topic started by: mask on July 29, 2008, 02:38:43



Title: Google Analytics as a Mediator
Post by: mask on July 29, 2008, 02:38:43
Hi guys.

I need to create a class that will get events from all over my application and send to Google Analytics. I'm planning to use a Mediator, but Mediators are suppose to connect to display elements, which is not the case. Is there a problem to use Mediator for this reason, keeping in mind the original architecture. Is there a better approach to solve this?

Lucas


Title: Re: Google Analytics as a Mediator
Post by: puremvc on July 29, 2008, 05:04:50
You can consider any communication with the browser as being part of the View. Commands are good for this as well.

-=Cliff>