Office Live Small Business Community Forums

Google Analytics

Last post 12-02-2008 5:46 AM by EleanorB. 28 replies.
Page 1 of 2 (29 items) 1 2 Next >
Sort Posts:
08-12-2008 1:05 PM
Dundeeguy Joined on 08-12-2008 Posts 12
Google Analytics

Hi

New to Office Live and search doesn't seem to answer my question.

I have my website up and running, but, can't get Google Analytics to work. I signed up and pasted the code into an html module on all my pages. I did try putting it into a footer as per posts on here, but office live just said the code was wrong???

So far google shows no info on site visits. Maybe I just need to wait longer. Its been on my webpages for 2 days now and google does say its installed.

Grateful for any help.

08-12-2008 8:20 PM In reply to
royster Joined on 02-12-2008 Posts 1,478
Re: Google Analytics

HTML module doesn't work for Google Analytics. Add a Custom Navigation module (you will need to activate advanced design features to see this option) onto your web page and delete all the code in the XSLT box. Paste the following code in the box (change the red code to what you got from google):

 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:param name="NavType">LEFT</xsl:param>
    <xsl:output method="html" omit-xml-declaration="yes"/>
    <xsl:template match="/NavNodes">
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-0000000-1";
urchinTracker();
</script>

    </xsl:template>
</xsl:stylesheet>

Royster
08-13-2008 5:32 PM In reply to
Dundeeguy Joined on 08-12-2008 Posts 12
Re: Google Analytics

Thanks for the reply. I've been onto google checking out to see if there are any stats. They appear to be showing now. Must just take a few days.

 

I had already tried your sugestion, but, office live just said there was a fault with the code. Thats when I decided to try the html module, which looks like is going to work :)

 

Cheers

08-13-2008 7:58 PM In reply to
StudioAllen Joined on 02-08-2008 Dorr, MI Posts 2,047
Re: Google Analytics

The HTML module won't work you need to use the Custom Footer module (or any of the other custom modules) to insert Google Analytics. http://solutionsforofficelive.com/googleanalytics.aspx.

StudioAllen
Solutions for Office Live How to Verify your site on Google Webmasters!
08-13-2008 8:33 PM In reply to
royster Joined on 02-12-2008 Posts 1,478
Re: Google Analytics
08-14-2008 4:07 PM In reply to
Dundeeguy Joined on 08-12-2008 Posts 12
Re: Google Analytics

Ok, I pasted the following into a custom footer

 

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" />
<xsl:template match="/">
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript" defer="defer">
</script>
<script type="text/javascript">
_uacct = "UA-5249300-1";
urchinTracker();
</script>
</xsl:template>
</xsl:stylesheet>

 

 Then when I click on ok a box pops up saying,

 

There is a problem with the XSLT code. It may contain an infinite loop, maybe working on a very large data set, or may contain syntax problems. Please check the code and start again. '''is an unexpected token. The expected token is ';' Line 1 position 515.

 

So like I said, the custom footer doesn't seem to work???? But i have put it into an html module and its starting to show data in google now.

 

Surely if google is showing data then the html module must work??

 

08-14-2008 10:59 PM In reply to
royster Joined on 02-12-2008 Posts 1,478
Re: Google Analytics

Try it again with this:

 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:param name="NavType">LEFT</xsl:param>
    <xsl:output method="html" omit-xml-declaration="yes"/>
    <xsl:template match="/NavNodes">
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-5249300-1";

urchinTracker();
</script>

    </xsl:template>
</xsl:stylesheet>

You should delete the old Custom Footer module first and then create a new one and paste above in again.

Royster

08-15-2008 4:00 PM In reply to
Dundeeguy Joined on 08-12-2008 Posts 12
Re: Google Analytics

Thanks for trying Royster. That above code just gives me the same problem as stated above with an error in the code????

 

I select the bottom of my web page, click on 'module' and select 'custom footer'. I then delete the contents in the module and paste the above. Is this correct what I'm doing? I'm starting to think I'm doing something real stupid here :(

08-20-2008 1:00 PM In reply to
Dundeeguy Joined on 08-12-2008 Posts 12
Re: Google Analytics

Ok, google stopped giving me any info with the html module. Only gave info to the day it was installed. Like I said the custom footer module just gives me the error. Decided to try using the custom navigation module and that may be working. Time will tell so will monitor it for the next few days.

08-20-2008 4:52 PM In reply to
royster Joined on 02-12-2008 Posts 1,478
Re: Google Analytics

Hey dundeeguy,

I re-read my old post and it really should have said Custom Navigation instead of Custom Footer. Sorry for the typo! But really, you can use either, just that with Custom Footer, this part will need to change:

    <xsl:template match="/NavNodes">

to

    <xsl:template match="/">

Royster

08-20-2008 5:34 PM In reply to
Dundeeguy Joined on 08-12-2008 Posts 12
Re: Google Analytics

So I wasn't going mad after all! LOL. Hopefully thats it up and running using the custom navigation. I'll be sure to report back if it stops working!

 

Cheers

10-06-2008 6:07 AM In reply to
Splodge Joined on 07-22-2008 Nottingham UK Posts 25
Re: Google Analytics

Good morning guys,

 

I am trying to set up conversion tracking for a google adword campaign.

 

I have inserted the following code as a custom navigation in the page where I want the conversion to register:

 

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:param name="NavType">LEFT</xsl:param>
    <xsl:output method="html" omit-xml-declaration="yes"/>
    <xsl:template match="/NavNodes">

<!-- Google Code for questionnaire download 2 Conversion Page -->
<script language="JavaScript" type="text/javascript">
<!--
var google_conversion_id = 1038241599;
var google_conversion_language = "en_GB";
var google_conversion_format = "1";
var google_conversion_color = "ffffff";
if (100.0) {
  var google_conversion_value = 100.0;
}
var google_conversion_label = "_x-sCPmhYxC_nonvAw";
//-->
</script>
<script language="JavaScript" src="
http://www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<img height="1" width="1" border="0" src="
http://www.googleadservices.com/pagead/conversion/1038241599/?value=100.0&amp;label=_x-sCPmhYxC_nonvAw&amp;script=0"/>
</noscript>

    </xsl:template>
</xsl:stylesheet>

So I think I have followed the instructions.

 

I then went back to my google adword account and tried to "Verify" that I had done it correctly.  Google tells me that I haven't.

This leads me to think I am too stupid to follow simple instructions.  Could somebody point out to me where I have gone wrong?

 

Thank you

 

Splodge

10-06-2008 7:45 AM In reply to
royster Joined on 02-12-2008 Posts 1,478
Re: Google Analytics

Hi Splodge,

Are you sure the code is correct?

This part esp. makes no sense at all:

if (100.0) {
  var google_conversion_value = 100.0;
}

Royster

10-06-2008 9:04 AM In reply to
Splodge Joined on 07-22-2008 Nottingham UK Posts 25
Re: Google Analytics

That's it, copied and pasted it straight in.  Just been back and checked it.

Ta

Splodge

10-06-2008 9:17 AM In reply to
royster Joined on 02-12-2008 Posts 1,478
Re: Google Analytics

Give it some more time to verify? The code is "correct" (though that part with the if (100.0) still makes no sense at all).

Royster

Advertisement