[Yanel-dev] [Bug 7169] Google Analytics support: redirects for downloads such as PDF

bugzilla at wyona.com bugzilla at wyona.com
Fri Jun 19 12:45:04 CEST 2009


http://bugzilla.wyona.com/cgi-bin/bugzilla/show_bug.cgi?id=7169





------- Comment #1 from guillaume.deflache at wyona.com  2009-06-19 11:35 -------
We must supply something that 1st leads the browser to an HTML page so that
Google Analytics JS code gets executed and only then triggers the download.

I suggest we use the "refresh" Meta HTML header because:
- anything "before HTML" won't work because we need some JS to be called
- doing it in JS won't work if JS is disabled
- we need to setup a reasonable (configurable) delay for Google servers to be
contacted, and that solution provides this
- it is widely supported in browsers

We should also provide a fallback HTML link in case the refresh does not happen
for whatever reason.


I think a decorating resource-type mapped to download path/extensions should
fit the bill nicely. Maybe (as a second step) a XHTML snippet (Jelly template
even) could be used as parameter for this RT to hold the Analytics code?

Suggested RT name: "staging-page" or similar.


Not sure if this can be automatically tested (refresh supported by testing
UAs?) but anyway we should besides make sure this works on IE6 with PDFs as
this guy has some nasty content/extension sniffing bugs... :/


-- 
Configure bugmail: http://bugzilla.wyona.com/cgi-bin/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
You are the assignee for the bug, or are watching the assignee.


More information about the Yanel-development mailing list