Google Analytics
ahansen1 - January 24, 2009 - 17:29
| Project: | Drupal for Facebook |
| Version: | 5.x-2.x-dev |
| Component: | User interface |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs work |
Jump to:
Description
I've modified the default fbml theme that comes with the module to add the google analytics fbml to the page when the google analytics modules is installed. Not sure if it's implemented appropriately for every situation, but it seems to work for mine: http://apps.facebook.com/howigotengaged/
Thought I'd share in case anyone else found it of value.
| Attachment | Size |
|---|---|
| template.php_.google.patch | 919 bytes |

#1
This is a cool workaround to get analytics to work. But I don't want to add anything to the template that is so specific to one module.
Instead, I think we need a FBML-specific closure in the template. The google-analytics-aware code needs to be somewhere else, perhaps the google analytics module.