• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 685
  • Last Modified:

Lotus Notes/Domino and Google Analytics

I'm trying to enable Google Analytics to work with a lotus notes R5 driven website.  I am having considerable difficulty getting Google to recognize my code.  I've gotten to the point of creating an Agent that I run from the web which contains only head and body tags and my javascript code.  No luck with the code as google provides:

<script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "xx-xxxxxx-x";
urchinTracker();
</script>

I've even modified the code so it looks like this in a browser:

<HTML>
<HEAD>
</HEAD>
<BODY TEXT="000000">
<SCRIPT language='JavaScript'> src='https://ssl.google-analytics.com/urchin.js' </SCRIPT>
<SCRIPT language='JavaScript'>
_uacct = 'xx-xxxxxx-x';
urchinTracker();
</script>
</BODY>
</HTML>

The trouble is that even if I change the name of urchinTracker() to say urchinTrackeravlkmnao11(), I get no error on the page saying it couldn't find that function, so it appears that this code is not running.  

Anybody know how to get this up and running?

0
chris112x2
Asked:
chris112x2
  • 8
  • 7
1 Solution
 
Sjef BosmanGroupware ConsultantCommented:
Is this webpage on-line somewhere? So I can see the HTML live?
0
 
chris112x2Author Commented:
It is, but it's secure.

Currently, the HTML looks like this:

<HTML>
<HEAD>
</HEAD>
<BODY TEXT="000000">
<script src='https://ssl.google-analytics.com/urchin.js' type='text/javascript'>
</script>
<script type='text/javascript'>
_uacct = 'xx-xxxxxx-x';
urchinTracker();
</script>
</BODY>
</HTML>

Correction, if I change the name of the JavaScript function, it does produce an error on the page.
0
 
Sjef BosmanGroupware ConsultantCommented:
It should work, I think. The HTML you got from the View Source option in IE (or other browser)?

You used passthrough HTML?

Some modifications:

<HTML>
<HEAD>
</HEAD>
<BODY TEXT="000000">
<script src='https://ssl.google-analytics.com/urchin.js' language='JavaScript' type='text/javascript'>
</script>
<script language='JavaScript' type='text/javascript'>
_uacct = 'xx-xxxxxx-x';
urchinTracker();
</script>
</BODY>
</HTML>
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
chris112x2Author Commented:
Well initially it was pass through HTML inside a header subform.  The view source I provided you from IE was generated from Lotus Script agent so I could isolate any issues in the JavaScript.

Agent is now set up as follows.  I think it may take 24 hours for google to recognize the new code.  I will load this page up a few times today and post back on the 5th to see if it works.

Sub Initialize
      On Error Goto ErrorHandler
      Print "<script src='https://ssl.google-analytics.com/urchin.js' language='JavaScript' type='text/javascript'>"
      Print "</script>"
      Print "<script language='JavaScript' type='text/javascript'>"
      Print "_uacct = 'xx-xxxxxx-x';"
      Print "urchinTracker();"
      Print "</script>"
      Exit Sub
      
ErrorHandler:
      Print Err
      Print "<br>"
      Print Erl
      
End Sub
0
 
Sjef BosmanGroupware ConsultantCommented:
And this is in a WebQueryOpen agent? Or in a real agent that you call with a URL?

It's an odd place to put it. The way you had it implemented, with the header subform, seems a far better alternative.

Which R5 by the way?
0
 
Sjef BosmanGroupware ConsultantCommented:
You could test it yourself of course. Create a JavaScript source file with a simple function that calls alert(), let's call it urchinTracker(). The JS file you can put in the HTML directory of your site (or in the database itself, as an Image resource). Modify the line with script src= to match your new .js file
0
 
chris112x2Author Commented:
R5.0.10

It's in a real agent that I call from a URL, and it's only in there so that I can isolate any problems.  I will put it back into the header subform once I confirm google is picking up on my code.

I created test.js that has this line:  function urchinTracker() {alert();}

I'm trying to create an image resource through Domino, and it appears that I can only append an image file, not the js file.  I don't have access to the server.  How would I get the js file into the database?
0
 
Sjef BosmanGroupware ConsultantCommented:
Oh, you can use any filetype as image :) Just type the name in, and it will work.
0
 
chris112x2Author Commented:
0
 
Sjef BosmanGroupware ConsultantCommented:
Think so, yes. You saw the alert("hello") on your screen, from the function in your .js file? Let's wait for Google's results...
0
 
chris112x2Author Commented:
Yes, I saw the "Hello" alert from my own script.

And indeed a new window opens when I modified the google provided urchin.js file.  We'll see what happens tomorrow.  I'm also going to have a guy check to make sure the URL will open on the server itself.

I don't like this 24 hour wait.  

Thanks,
Chris
0
 
chris112x2Author Commented:
And the result...........................

Nothing.

I've contacted Google about the issue.  I should be seeing results.

Anywhere I should check on the server to see if the request is going through?  Any javascript I can add to confirm the google page was loaded on the server?
0
 
Sjef BosmanGroupware ConsultantCommented:
The request isn't leaving your server, it should go straight from your browser to Google. It's in a web-page, right?

Maybe you have a firewall with a logging option?
0
 
chris112x2Author Commented:
Web stuff is being tracked, although it took several days to show up.

I received this repsonse from Google:  You would think they would have posted a known issue somewhere on the site.


Hello Chris,

Thank you for your email. There is a known issue for the incorrect status
message to appear. The only way to check to see if your code is installed
correctly is by seeing if data appears in your reports. We are working on
a fix for this issue. Please be assured that your data is being collected.

For additional questions regarding e-commerce, goals, filters, tracking
and setup questions, please visit the Analytics Help Center at
http://www.google.com/support/analytics. If you're unable to find an
answer to your question on our site, please feel free to reply to this
email.

Sincerely,

Manjeev
Analytics Support

*************************
For the latest updates as well as some helpful tips on Google Analytics,
check out the Google Analytics blog at http://analytics.blogspot.com
*************************

Original Message Follows:
------------------------
Subject: Re: [#64186473] Lotus Domino
Date: Fri, 7 Jul 2006 13:43:47 -0500

Thanks for your response, however, I've run the code exactly as it
appears, waited 24 hours, and Analytics still said the code wasn't
installed.
0
 
Sjef BosmanGroupware ConsultantCommented:
Nice... :-S

Maybe you can send them a reply with that suggestion? And that, if they don't post it, you will... ;-))
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 8
  • 7
Tackle projects and never again get stuck behind a technical roadblock.
Join Now