kriz-mysafira
-
4/26/2011 7:42:53 AM
OnClientClick in transformation is not processed
Hello, I'm not quite sure whether this is a bug or a mistyped page, but I tend to be a bug.
I have got "Download" document type for download files, and fields for form contains: - heading and summary (not essential) - link for download - file is force link to file (*.zip) - OnClientClick="_gaq.push(['_track.... which is Google Analytics tracking
Transformation is: <a href="<%# Eval("FilePath") %>" <%# IfEmpty(Eval("OnClientClick"), "", Eval("OnClientClick")) %>><%# Eval("Heading") %></a>
In html code is output generated as: <a href="http://example.org/file.zip" OnClientClick="_gaq.push(['_trackEvent', 'foo1', 'foo2', 'foo3']">Heading</a>
But in google analytics is nothing hit (do not count). I thing, that problem is in OnClientClick, which is not processed (JS is enabled).
|