Impressions-Counter doesn't count right

This is the place to post questions and comments about the FlexBanner component
Rotate
Posts: 2
Joined: Tue Nov 25, 2014 11:41 am

Impressions-Counter doesn't count right

Post by Rotate » Tue Nov 25, 2014 11:45 am

Hi,
my problem is, that the impressions-counter doesn't count correctly. Everytime the banner is displayed it counts +2 or +3.
But not +1. Is there a solution for this bug?

Regards,
Sebastian
www.dance-charts.de

Andrew998
Posts: 1388
Joined: Wed Jan 07, 2009 10:43 am

Re: Impressions-Counter doesn't count right

Post by Andrew998 » Wed Nov 26, 2014 9:04 am

It doesn't do this in testing so I'm not sure that there is a bug.
Andrew998
Developer

Rotate
Posts: 2
Joined: Tue Nov 25, 2014 11:41 am

Re: Impressions-Counter doesn't count right

Post by Rotate » Wed Nov 26, 2014 9:08 am

I saw another user in this forum with the same problem.
Looks like a bug...

Andrew998
Posts: 1388
Joined: Wed Jan 07, 2009 10:43 am

Re: Impressions-Counter doesn't count right

Post by Andrew998 » Wed Nov 26, 2014 3:42 pm

Yes, to which the answer was the same. It doesn't happen in testing so what do you expect me to do? Show me the problem and then, maybe, I can take a look.
Andrew998
Developer

Ger
Posts: 3
Joined: Mon Dec 15, 2014 4:48 pm

Re: Impressions-Counter doesn't count right

Post by Ger » Mon Dec 15, 2014 5:51 pm

I have the same problem. Every view: counts +2
How can I fix this?

Andrew998
Posts: 1388
Joined: Wed Jan 07, 2009 10:43 am

Re: Impressions-Counter doesn't count right

Post by Andrew998 » Mon Dec 15, 2014 5:53 pm

Until someone gives me full access to a site that does this there is nothing I can do. It does not do it in testing.
Andrew998
Developer

Ger
Posts: 3
Joined: Mon Dec 15, 2014 4:48 pm

Re: Impressions-Counter doesn't count right

Post by Ger » Mon Dec 15, 2014 6:46 pm

I have fount something. Before I place an ad, I check if the module contains an ad position with:

<?php if(JModuleHelper::renderModule(array_shift(JModuleHelper::getModules( 'positie-20' ))) == "") { ?>
<div class="promotion"></div>
<?php } else { ?>
<div class="advertising leaderboard">
<jdoc:include type="modules" name="positie-20" style="xhtml" />
</div>
<div class="promotie-leaderboard"></div>
<?php } ?>

Then counts = +2; If I do:

<div class="advertising leaderboard">
<jdoc:include type="modules" name="positie-20" style="xhtml" />
</div>
<div class="promotie-leaderboard"></div>

Then counts = +1
How can I fix this?
Ger

Andrew998
Posts: 1388
Joined: Wed Jan 07, 2009 10:43 am

Re: Impressions-Counter doesn't count right

Post by Andrew998 » Mon Dec 15, 2014 7:02 pm

Thank you, that gives me something to work with. I'll take a look in the morning.
Andrew998
Developer

Ger
Posts: 3
Joined: Mon Dec 15, 2014 4:48 pm

Re: Impressions-Counter doesn't count right

Post by Ger » Mon Dec 15, 2014 9:32 pm

Oke Thanks. The same happened when you test your site (=General settings -> site offline): counts = +2
Probably something twice is sent from the server?

Andrew998
Posts: 1388
Joined: Wed Jan 07, 2009 10:43 am

Re: Impressions-Counter doesn't count right

Post by Andrew998 » Tue Dec 16, 2014 10:41 am

This is going to be tricky to fix because the template is rendering the module twice just to check if it is empty. This is not a bug with FlexBanners. I will see if I can come up with something as a workround.
Andrew998
Developer

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests