count clicks over K2 extra fields

dor
dor
Offline
0
Hi,

i have this website:

http://facebook.bimot.co.il/index.php/%d7%99%d7%9c%d7%93%d7%99%d7%9d

i have bought content statistics and installed it.

now, the black button under each item is actually an extra field (which is a link) that takes me to an external site where i purchase the item.

so actually, the user never reach the "item page" itself in my site, and the count of the item doesn't happen.

what i need is that a click on the black button, will trigger the counter.

how can i do that?

thanx a lot!

dor
Responses (3)
  • Accepted Answer

    Wednesday, January 18 2012, 03:23 PM - #Permalink
    0
    well:
    to COUNT a click, the component K2 must be called. Content Statistics can track everything that happens IN joomla. your link is external, so it does not use any joomla "gateway" so there is no way to directly track the clicks.
    the only way I can think about is this (you need to have some programming knowledge to know what I mean):
    - to add some kind of "onclick" javascript function to the button, so when it is clicked, the javascript code calls the K2 page for that item using AJAX (so the user actually views nothing), and that makes the click count.

    do you know what I mean?

    but you need some custom coding for that of course... ! it's not possible out of the box.
    The reply is currently minimized Show
  • Accepted Answer

    dor
    dor
    Offline
    Wednesday, January 18 2012, 04:05 PM - #Permalink
    0
    hi,
    thanx for your quick reply.

    i am now trying to insert an extra "onclick" field to the extra field i have there which produces the "purchase" button.

    once i make it, i can easily call the google analytics function that counts my clicks...

    thanx anyway!
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, January 18 2012, 04:11 PM - #Permalink
    0
    no problem :)
    The reply is currently minimized Show
Your Reply