chris112x2
asked on
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?
<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(),
Anybody know how to get this up and running?
Is this webpage on-line somewhere? So I can see the HTML live?
ASKER
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.
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.
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>
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>
ASKER
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
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
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?
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?
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
ASKER
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?
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?
Oh, you can use any filetype as image :) Just type the name in, and it will work.
ASKER
Ok, so I modified the urchin.js file and am calling it locally, with a windw.open call to the URL the function tries to open(slightly modified):
https://ssl.google-analytics.com/__utm.gif?utmwv=1&utmn=1316140897&utmsr=1600x1200&utmsc=32-bit&utmul=en-us&utmje=1&utmfl=8.0&utmhn=www.website.com&utmr=-&utmp=/xxx/xxxx/xxxxx.nsf/Google?OpenAgent&utmac=xx-xxxxxx-x&utmcc=__utma%3D164408061.1395872541.1151949945.1151949945.1151949945.1%3B%2B__utmb%3D164408061%3B%2B__utmc%3D164408061%3B%2B__utmz%3D164408061.1151949945.1.1.utmccn%3D(direct)%7Cutmcsr%3D(direct)%7Cutmcmd%3D(none)%3B%2B
Google should be picking up on this, no? Unless there is some kind of unknown block on the address on the server, correct?
Chris
https://ssl.google-analytics.com/__utm.gif?utmwv=1&utmn=1316140897&utmsr=1600x1200&utmsc=32-bit&utmul=en-us&utmje=1&utmfl=8.0&utmhn=www.website.com&utmr=-&utmp=/xxx/xxxx/xxxxx.nsf/Google?OpenAgent&utmac=xx-xxxxxx-x&utmcc=__utma%3D164408061.1395872541.1151949945.1151949945.1151949945.1%3B%2B__utmb%3D164408061%3B%2B__utmc%3D164408061%3B%2B__utmz%3D164408061.1151949945.1.1.utmccn%3D(direct)%7Cutmcsr%3D(direct)%7Cutmcmd%3D(none)%3B%2B
Google should be picking up on this, no? Unless there is some kind of unknown block on the address on the server, correct?
Chris
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...
ASKER
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
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
ASKER
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?
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?
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?
Maybe you have a firewall with a logging option?
ASKER
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.
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.