Outdated google analytics code?

General Discussion about the commercial Enuuk Auction Platform
Post Reply
bamse
Posts: 220
Joined: Mon Feb 06, 2012 12:05 pm
Contact:

Outdated google analytics code?

Post by bamse » Tue Mar 05, 2013 11:33 pm

The google analytics code that comes with v2.11, does not seem to be recognized by google. Not sure whether this is because google changed something or whether there is a bug in phpauction.

Replacing the code in class/Core/PresentationData.php->getGoogleAnalyticsCode() with the one that google recommends (upon registration), seems to fix it

RWAP
Site Admin
Posts: 748
Joined: Fri Jan 08, 2010 2:23 am
Location: Stoke-on-Trent
Contact:

Re: Outdated google analytics code?

Post by RWAP » Wed Mar 06, 2013 8:42 am

Ah you mean as detailed in:

viewtopic.php?f=10&t=328&start=0

bamse
Posts: 220
Joined: Mon Feb 06, 2012 12:05 pm
Contact:

Re: Outdated google analytics code?

Post by bamse » Thu Mar 07, 2013 11:24 pm

Indeed, must have missed this post. Why is it necessary to move the line

Code: Select all

 <?=$data['googleAnalyticsCode']?>
from the footer to the header? I seems to work also without this change.

RWAP
Site Admin
Posts: 748
Joined: Fri Jan 08, 2010 2:23 am
Location: Stoke-on-Trent
Contact:

Re: Outdated google analytics code?

Post by RWAP » Thu Mar 07, 2013 11:36 pm

The reason in putting in the header, is to take advantage of the fact that it is asynchronous code, so it is being loaded in the background whilst the rest of your page loads.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest