Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought

Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Pages: [1]
Author Topic: Google Analytics as a Mediator  (Read 6246 times)
Posts: 1

View Profile Email
« 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?

Global Moderator
Hero Member
Posts: 2871

View Profile WWW Email
« Reply #1 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.

Pages: [1]