Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Not sure how you would do it but some of the items in this Smashing Magazine article would be great if they could be included in the UI for the module.
For those who don't want to read the article it shows you how to use _trackEvent() to track error messages on forms as well as 404 pages so that you can easily track down where you are getting 404's and where they are coming from as well as improving forms from the results.
http://uxdesign.smashingmagazine.com/2011/10/04/improve-the-user-experie...
Comment | File | Size | Author |
---|---|---|---|
#6 | 1300240+Add+tracking+for+form+error+messages.patch | 6.78 KB | hass |
#5 | 1300240+Add+tracking+for+form+error+messages.patch | 6.78 KB | hass |
Comments
Comment #1
hass CreditAttribution: hass commented404 and 403 tracking is already implemented. Nothing to do.
Form error tracking would be cool, but it may become a bit tricky...
Please provide a patch.
Comment #2
wiifmThis is something we needed a while ago,
Instead of opting for javascript to parse the page and find error messages and then track that (which is theme specific, meaning it can break at anytime), we opted to create an API for PHP to queue messages up for the user, so the next page refresh will have the required tracking in the footer.
Currently a sandbox, but looking to promote this shortly to a full project.
http://drupal.org/sandbox/wiifm/1255850
Would also be interested in feedback from the google analytics module maintainer(s) as to whether this module could be consumed by the google_analytics module, or whether it should stand as a seperate module
Comment #3
hass CreditAttribution: hass commentedIf I remember correctly we can grab the error messages by code. As said java script is not reliable for theming reasons... But it must be. We may had such a request in past... About search results... I have not found a way to solve by code and it was highly theme dependend... Therefore never implemented.
Comment #4
hass CreditAttribution: hass commenteddrupal_get_messages()
Comment #5
hass CreditAttribution: hass commentedPatch attached.
Comment #6
hass CreditAttribution: hass commentedNo tab
Comment #7
hass CreditAttribution: hass commentedD7: http://drupalcode.org/project/google_analytics.git/commit/ee090c4