NB Productions

Code Authors: Forums


View next topic
View previous topic
Post new topic   Reply to topic
Author Message
montego
Site Admin
Site Admin



Joined: Jan 06, 2006
Posts: 99

PostPosted: Mon Jun 02, 2008 12:56 pm Reply with quote Back to top

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.
View user's profile Send private message Visit poster's website
Guardian
Site Admin
Site Admin



Joined: Jan 06, 2006
Posts: 3779
Location: Poland

PostPosted: Mon Jun 02, 2008 2:15 pm Reply with quote Back to top

Yeah thats possible. I actually have mine in includes/custom_files/footer.php as I have some other stuff in there too.

_________________
Nuke Reviews
View user's profile Send private message Send e-mail Visit poster's website
jakec
Client



Joined: Sep 25, 2006
Posts: 47

PostPosted: Mon Jun 02, 2008 4:24 pm Reply with quote Back to top

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.
View user's profile Send private message
jakec
Client



Joined: Sep 25, 2006
Posts: 47

PostPosted: Mon Jun 02, 2008 4:28 pm Reply with quote Back to top

Hang on a minute it is working, it does work!!! Very Happy


I just noticed G you are using the older legacy code here, is there any reason for this?
View user's profile Send private message
Guardian
Site Admin
Site Admin



Joined: Jan 06, 2006
Posts: 3779
Location: Poland

PostPosted: Mon Jun 02, 2008 5:17 pm Reply with quote Back to top

No real reason Smile 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
View user's profile Send private message Send e-mail Visit poster's website
jakec
Client



Joined: Sep 25, 2006
Posts: 47

PostPosted: Tue Jun 03, 2008 8:18 pm Reply with quote Back to top

Back to the original topic. Wink

With the program listed above what are the benefits over using the online Google system? The screen shots look more or less the same.
View user's profile Send private message
Guardian
Site Admin
Site Admin



Joined: Jan 06, 2006
Posts: 3779
Location: Poland

PostPosted: Tue Jun 03, 2008 8:32 pm Reply with quote Back to top

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
View user's profile Send private message Send e-mail Visit poster's website
jakec
Client



Joined: Sep 25, 2006
Posts: 47

PostPosted: Tue Jun 03, 2008 8:34 pm Reply with quote Back to top

Does it work on Vista?
View user's profile Send private message
jakec
Client



Joined: Sep 25, 2006
Posts: 47

PostPosted: Tue Jun 03, 2008 8:40 pm Reply with quote Back to top

Sorry I just answered my own question.
View user's profile Send private message
jakec
Client



Joined: Sep 25, 2006
Posts: 47

PostPosted: Tue Jun 03, 2008 8:54 pm Reply with quote Back to top

I agree it makes everything so much easier! Smile
View user's profile Send private message
Guardian
Site Admin
Site Admin



Joined: Jan 06, 2006
Posts: 3779
Location: Poland

PostPosted: Thu Jun 05, 2008 8:48 pm Reply with quote Back to top

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
View user's profile Send private message Send e-mail Visit poster's website
montego
Site Admin
Site Admin



Joined: Jan 06, 2006
Posts: 99

PostPosted: Fri Jun 06, 2008 10:54 am Reply with quote Back to top

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.
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001-2008 phpBB Group
All times are GMT
Forums ©
Best Credit Cards | Magazine Subscriptions | Loans | Croatia holidays and real estate | Hotels

Scripts.com - Get the best scripts NOW!
linear-bunch