Welcome to WebmasterWorld Guest from 54.226.113.250

Forum Moderators: open

Message Too Old, No Replies

hover and click information logging

     
10:43 pm on Aug 28, 2010 (gmt 0)

Junior Member

5+ Year Member

joined:Feb 26, 2010
posts: 74
votes: 0


the question is not really how to do the above but how to pass the information. i tried adding the information as a window.location.hash prior to switching pages such that the referrer would demonstrate what the user has done, but the has does not register on the php side.

therefore, my question is how to go about best passing this info.

thanks!
10:18 am on Aug 31, 2010 (gmt 0)

Junior Member

5+ Year Member

joined:July 8, 2010
posts:114
votes: 0


perhaps some javascript would do the trick?

jquery:

<script>
$(document).ready(function() {
$("a").click(function() {
href = $(this).attr("href");
anchor = $(this).val();
logthis("clicked",href,anchor);
});
$("a").hover(
function () {
href = $(this).attr("href");
anchor = $(this).val();
logthis("mouseover",href,anchor);
},
function () {
href = $(this).attr("href");
anchor = $(this).val();
logthis("mouseout",href,anchor);
}
);
});
function logthis(action, href, anchor) {
// some ajax function to do what you want with the info?
}
<script>


I think you'll get the idea..
3:00 pm on Aug 31, 2010 (gmt 0)

Junior Member

5+ Year Member

joined:Feb 26, 2010
posts: 74
votes: 0


lostdreamer,

thanks for the response.
this is clear and i have completed this. my question more specifically is the following:

how do i pass this info? if i pass it in the address bar it becomes obvious to the user. i could create and append to cookies, but if the user has cookies disabled this data is not available.

basically, i am looking for a way to pass this information without the user knowing.

i am more or less looking for a best practice solution.

thanks again
7:19 pm on Sept 8, 2010 (gmt 0)

Junior Member

5+ Year Member

joined:Feb 26, 2010
posts:74
votes: 0


this issue is closed. if anyone has any questions on this please pm me and i will walk you through the process.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members