Banners tracking

The support for Joomla 2.5 ended on December 31, 2014. Possible bugs in Joomla 2.5 will not be patched anymore. This forum has been closed. Please update your website to Joomla 3.x

Moderator: ooffick

Forum rules
Please use the official Bug Tracker to report a bug: https://issues.joomla.org
Locked
Neow
Joomla! Apprentice
Joomla! Apprentice
Posts: 24
Joined: Wed Oct 31, 2012 2:50 pm

Banners tracking

Post by Neow » Tue Jan 21, 2014 9:17 am

Hello,

I just want to notify that I've activated banners tracking (click and impressions) but that didn't work. I have to modify banners models: it never does anything if the number of clicks/impressions is equal to 0. Replacing a few < by <= solved my issue.

In components\com_banners\models\banners.php, around lines 217-226 :

Code: Select all

			// track impressions
			$trackImpressions = $item->track_impressions;
			if ($trackImpressions <= 0 && $item->cid) {
				$trackImpressions = $item->client_track_impressions;
			}

			if ($trackImpressions <= 0) {
				$config = JComponentHelper::getParams('com_banners');
				$trackImpressions = $config->get('track_impressions');
			}
In components\com_banners\models\banner.php, lines 53-61 :

Code: Select all

		if ($trackClicks <= 0 && $item->cid) {
			$trackClicks = $item->client_track_clicks;
		}

		if ($trackClicks <= 0) {
			$config = JComponentHelper::getParams('com_banners');
			$trackClicks = $config->get('track_clicks');
		}

Locked

Return to “Joomla! 2.5 Bug Reporting”