Solved

Lotus Notes/Domino and Google Analytics

Posted on 2006-07-03
15
573 Views
Last Modified: 2013-12-18
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
Comment
Question by:chris112x2
  • 8
  • 7
15 Comments
 
LVL 46

Expert Comment

by:Sjef Bosman
Comment Utility
Is this webpage on-line somewhere? So I can see the HTML live?
0
 

Author Comment

by:chris112x2
Comment Utility
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
 
LVL 46

Expert Comment

by:Sjef Bosman
Comment Utility
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
 

Author Comment

by:chris112x2
Comment Utility
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
 
LVL 46

Expert Comment

by:Sjef Bosman
Comment Utility
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
 
LVL 46

Expert Comment

by:Sjef Bosman
Comment Utility
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
 

Author Comment

by:chris112x2
Comment Utility
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
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 46

Expert Comment

by:Sjef Bosman
Comment Utility
Oh, you can use any filetype as image :) Just type the name in, and it will work.
0
 

Author Comment

by:chris112x2
Comment Utility
0
 
LVL 46

Expert Comment

by:Sjef Bosman
Comment Utility
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
 

Author Comment

by:chris112x2
Comment Utility
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
 

Author Comment

by:chris112x2
Comment Utility
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
 
LVL 46

Expert Comment

by:Sjef Bosman
Comment Utility
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
 

Author Comment

by:chris112x2
Comment Utility
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
 
LVL 46

Accepted Solution

by:
Sjef Bosman earned 125 total points
Comment Utility
Nice... :-S

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

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

I thought it will be a good idea to make a post as it will help in case someone else faces these issues. I trust this gives an idea how each entry in Notes.ini can mean a lot for the Domino Server to be functioning properly. This article discusses t…
Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now