Information Technology Reference
In-Depth Information
You could apply that wrapper function as the positive action to take on the
onclick event, such as:
<a href=”/leadsignup” onclick=”recordaction(7) “>Submit Form<>
remember that the previous wrapper functions do not record anything unless
called.
the clicked-on object can be anything from an image, form dropdown, form
submit, or just an ordinary web link (a download link or an exit link as well). Yahoo!
Web analytics has a great shortcut for tracking on-clicks like this using something
called the s_action function.
When you use the _s_action function, only an action is recorded and not both
an action and a page view, which would be collecting poor data, as you will be record-
ing dual-page views. Using the _s_action variable is a two-step procedure.
in step 1, make sure that before positive on-click actions are called, you activate
the ACTION variable. in most cases the ACTION variable will be empty.
version 4
<script language=”Javascript”>
var ACTION='';
</script>
43
i'll provide several examples for step 2, which i am sure you can mold into a lot
of good uses on your web property.
version 4
1.
Clicking an image
Visit my LinkedIN profile <a onclick=”_s_action('06')” href=” http://
www.linkedin.com/in/dennismortensen” ><img src=”/images/linkedinlogo.
gif”></a>
2.
Clicking an ordinary link (see Figure 2.9)
Subscribe via <a onclick=”_s_action('04')” href=” http://feeds.
feedburner.com/WebAnalyticsAffiliateMarketingBlog” > RSS </a>
Figure 2.9 Subscribe to RSS Link example
3.
Clicking a file for download
Download <a onclick=”_s_action('09')” href=” http://visualrevenue.com/
blog/PDF/Best-Practices-for-the-Online-Finance-Industry.pdf” > Best
Practice White Paper </a>
Search WWH ::




Custom Search