Advertisement:

Author Topic: ad statistics  (Read 1838 times)

srisri

  • Newbie
  • *
  • Posts: 24
ad statistics
« on: January 02, 2012, 06:03:01 pm »
Hi,

Is there any plan to add statistics like number of views, number of clicks for ads.

Regards,
Sri Sri
www.onlinemela.com

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
Re: ad statistics
« Reply #1 on: January 02, 2012, 06:16:40 pm »
Hi srisri,

Yes, You could actually know the number of views of each ad. They are stored with a date stamp, so you could get more data.

Which other values are you interested in knowing?

Thanks

srisri

  • Newbie
  • *
  • Posts: 24
Re: ad statistics
« Reply #2 on: January 02, 2012, 08:07:45 pm »
Hi,

Thank you very much for your quick reply. I just used osc_item_views() to populate item views count. I would like to understand this function returns overall view count or views by current date.

Regards
Sri Sri
www.onlinemela.com

trains58554

  • Osclass contributor
  • Hero Member
  • *****
  • Posts: 3642
  • osCanyon, the class of Osclass
Re: ad statistics
« Reply #3 on: January 02, 2012, 08:10:40 pm »
Hi srisri,

osc_item_views() will return the total number of views for the ad.

Jay

mkmobi

  • Full Member
  • ***
  • Posts: 119
Re: ad statistics
« Reply #4 on: February 03, 2012, 08:18:47 pm »
not working
osc_item_views()

trains58554

  • Osclass contributor
  • Hero Member
  • *****
  • Posts: 3642
  • osCanyon, the class of Osclass
Re: ad statistics
« Reply #5 on: February 03, 2012, 08:23:02 pm »
How are you using the code? It should be used like this <?php echo osc_item_views(); ?>

Jay
« Last Edit: February 03, 2012, 08:43:18 pm by trains58554 »

ingo

  • Full Member
  • ***
  • Posts: 216
Re: ad statistics
« Reply #6 on: February 03, 2012, 08:40:18 pm »
Hi mkmobi,

I have it ike this,

<li><?php _e("Total Views", 'modern') ; ?>: <strong><?php echo osc_item_views(); ?></strong></li>

in item.php after: <ul id="item_location">



regards


trains58554

  • Osclass contributor
  • Hero Member
  • *****
  • Posts: 3642
  • osCanyon, the class of Osclass
Re: ad statistics
« Reply #7 on: February 03, 2012, 08:42:57 pm »
Ah yes thank you Ingo I could not remember if the word echo was needed to display the item views count.

Thanks

Jay