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
Outdated google analytics code?
Re: Outdated google analytics code?
Indeed, must have missed this post. Why is it necessary to move the line
from the footer to the header? I seems to work also without this change.
Code: Select all
<?=$data['googleAnalyticsCode']?>
Re: Outdated google analytics code?
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.
Who is online
Users browsing this forum: No registered users and 1 guest