Google Analytics

Permalink 1 user found helpful
Google analytics has been updated and the newer version needs to be at the top of the page so that it is loaded first, does anyone have any idea when c5 will support this update through the dashboard?

stephenlaw
 
tallacman replied on at Permalink Reply
tallacman
I don't personally know but you can always paste it into your header.php file. That’s what I did and it works perfect.
stephenlaw replied on at Permalink Reply
stephenlaw
That makes sense. Thanks.
jordanlev replied on at Permalink Best Answer Reply
jordanlev
You can also move the code:
<?php Loader::element('footer_required'); ?>

from your template's footer into the template header -- then you can still update it through the dashboard.
stellarbirthday replied on at Permalink Reply
stellarbirthday
Can you help me find the right file that has the template footer and header in the file structure? And is this the kind of thing that gets overwritten by code up grades? Sorry if this is a dumb question.
Thanks!
tallacman replied on at Permalink Reply
tallacman
stellarbirthday: It will be in your footer.php file if it exists in your theme > elements folder
creatovisguru replied on at Permalink Reply
creatovisguru
Some clarity should be offered here.

Urchin-based trackers are no-longer recommended.

There is an "ASYNCHRONOUS" version which was released. It is recommended that it is included just before the closing "</head>" tag in your documents (like most other javascript).

Here are instructions for the NEW ASYNCHRONOUS tracking code:http://www.google.com/support/googleanalytics/bin/answer.py?answer=...

Here are instructions for the OLD (TRADITIONAL) tracking code:http://www.google.com/support/googleanalytics/bin/answer.py?answer=...
tallacman replied on at Permalink Reply
tallacman
The rules for submitting themes is that the 'footer required' code appear just before the close body tag. I wold be perfectly fine with putting in the head of my themes if that would pass muster with the PRC.

Anyone tried and succeeded?

Steve
12345j replied on at Permalink Reply
12345j
No, but I'll try with my next theme.