Solved

Lotus Notes/Domino and Google Analytics

Posted on 2006-07-03
15
620 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 8
  • 7
15 Comments
 
LVL 46

Expert Comment

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

Author Comment

by:chris112x2
ID: 17031703
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
ID: 17031810
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:chris112x2
ID: 17031883
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
ID: 17032063
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
ID: 17032087
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
ID: 17032455
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
 
LVL 46

Expert Comment

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

Author Comment

by:chris112x2
ID: 17032958
0
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 17033010
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
ID: 17033026
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
ID: 17043932
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
ID: 17046902
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
ID: 17074443
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
ID: 17074916
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This is an old article, please see an updated version of this article, located here: http://www.experts-exchange.com/articles/23619/Notes-8-5x-Windows-7-Notes-info-and-tips.html
For beginners of Lotus Notes user this is important to know about the types of files and their location supported by IBM Notes. Mostly users are unaware about how many file types are created and what their usages are. This Article is fully dedicated…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

759 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