| Author |
Message |
montego
Site Admin


Joined: Jan 06, 2006
Posts: 99
|
Posted:
Mon Jun 02, 2008 12:56 pm
|
|
jakec,
sorry if I have not read this too carefully and I am assuming you are talking about adding Google Analytics to your nuke site.... if its not about this, just ignore the following.
On my sites, I have added a custom_footer.php script within includes/custom_files and this is within that script:
| Code: |
echo '<script>' . "\n";
echo '</script>' . "\n";
echo '<script>' . "\n";
echo '_uacct = "UA-nnnnnnnn-1";' . "\n";
// echo 'urchinTracker(\'' . $_SERVER['REQUEST_URI'] . '\');' . "\n";
echo 'urchinTracker();' . "\n";
echo '</script>' . "\n";
|
Note the line that I commented out and yes, I removed my account number.
Hopefully the above posts without banning me... lol. |
|
|
|
 |
Guardian
Site Admin


Joined: Jan 06, 2006
Posts: 3779
Location: Poland
|
Posted:
Mon Jun 02, 2008 2:15 pm
|
|
Yeah thats possible. I actually have mine in includes/custom_files/footer.php as I have some other stuff in there too. |
_________________ Nuke Reviews |
|
|
 |
jakec
Client

Joined: Sep 25, 2006
Posts: 47
|
Posted:
Mon Jun 02, 2008 4:24 pm
|
|
I was trying to add it through the WYSIWYG editor under preferences, using the source option in the editor. It works, but it's not immediately before the closing body tag, so I guess Google doesn't recognise it.
I'll add it manually tonight, just thought it would be cool if you could do it in Nuke without having to do it manually. |
|
|
|
 |
jakec
Client

Joined: Sep 25, 2006
Posts: 47
|
Posted:
Mon Jun 02, 2008 4:28 pm
|
|
Hang on a minute it is working, it does work!!!
I just noticed G you are using the older legacy code here, is there any reason for this? |
|
|
|
 |
Guardian
Site Admin


Joined: Jan 06, 2006
Posts: 3779
Location: Poland
|
Posted:
Mon Jun 02, 2008 5:17 pm
|
|
No real reason I am just too busy/lazy to finish the migration. By the time I get to it, we'll probably be on another version lol.
I have guests coing over from the UK in July, we are back in the UK for a couple of weeks in August (need to stock up on salt & vineager crisps and MOT the bus), then we are moving to Slovakia for a year in September and have more guests coming over from the UK in October.
I have just had to cough up for the cash to change their flights as it isn't their fault we are moving and they are dropping in to us straight after their honeymoon so I took care of that to save them the hassle. |
_________________ Nuke Reviews |
|
|
 |
jakec
Client

Joined: Sep 25, 2006
Posts: 47
|
Posted:
Tue Jun 03, 2008 8:18 pm
|
|
Back to the original topic.
With the program listed above what are the benefits over using the online Google system? The screen shots look more or less the same. |
|
|
|
 |
Guardian
Site Admin


Joined: Jan 06, 2006
Posts: 3779
Location: Poland
|
Posted:
Tue Jun 03, 2008 8:32 pm
|
|
There is simply so much data, it is impossible to display it all on one page. Googles interface means you have to keep flipping back and forth in the browser and each time you do that, you have to wait for the data to reload - sort of like how nukes blocks ordering screen is - click the button, wait, click the button wait...
With the utility, it loads all the data and gives you a tabbed interface so you can switch views without waiting which is really handy and I also think it looks and feels much nicer. |
_________________ Nuke Reviews |
|
|
 |
jakec
Client

Joined: Sep 25, 2006
Posts: 47
|
Posted:
Tue Jun 03, 2008 8:34 pm
|
|
|
|
 |
jakec
Client

Joined: Sep 25, 2006
Posts: 47
|
Posted:
Tue Jun 03, 2008 8:40 pm
|
|
Sorry I just answered my own question. |
|
|
|
 |
jakec
Client

Joined: Sep 25, 2006
Posts: 47
|
Posted:
Tue Jun 03, 2008 8:54 pm
|
|
I agree it makes everything so much easier!  |
|
|
|
 |
Guardian
Site Admin


Joined: Jan 06, 2006
Posts: 3779
Location: Poland
|
Posted:
Thu Jun 05, 2008 8:48 pm
|
|
Montego - sorry, I have only just noticed you made a post in this thread. I don't know how or why I missed it so my apologies for effectively repeating what you had put in your post.
Incidentally, I believe Google are phasing out the *urchin* code and although I have not got around to changing my own, it is something like
| Code: |
<script>
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script>
var pageTracker = _gat._getTracker("UA-xxxxxx-x");
pageTracker._initData();
pageTracker._trackPageview();
</script> |
|
_________________ Nuke Reviews |
|
|
 |
montego
Site Admin


Joined: Jan 06, 2006
Posts: 99
|
Posted:
Fri Jun 06, 2008 10:54 am
|
|
Thank you sir. I'll have to look into that. I am sure they must have communicated the change somehow. I will admit, I haven't reviewed my stats in a long time. If no time to do anything about them, why look at them... lol. |
|
|
|
 |
|
|