Adobe Dreamweaver Forums



Last 10 THreads :         Images not showing in IE (Last Post : Murray *ACE* - Replies : 1 - Views : 2 )           »          DW creating wrong ASP recordset (Last Post : Dooza - Replies : 1 - Views : 2 )           »          WebHelp Compile Won't Display (Last Post : thegup55 - Replies : 23 - Views : 24 )           »          Urgent Help - my file from CS3 gives error in CS4 (1058and 1119) (Last Post : CSBrockman1969 - Replies : 1 - Views : 3 )           »          How to build Star War style captions (Last Post : Amy Blankenship - Replies : 2 - Views : 3 )           »          Custom chart - spiral plot? (Last Post : thebouv - Replies : 1 - Views : 2 )           »          Tabbing in flash created code (Last Post : Amy Blankenship - Replies : 2 - Views : 3 )           »          catching errors from remotely invoked processes (Last Post : Amy Blankenship - Replies : 1 - Views : 2 )           »          Re: Urgent Help - my file from CS3 gives error in CS4(1058 and 1119) (Last Post : CSBrockman1969 - Replies : 1 - Views : 2 )           »          Re: Problem with Firefox (Last Post : ThinkInk - Replies : 0 - Views : 1 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Contribute
 
Tags: , , ,



Reply
  #1 (permalink)  
Old 08-08-2008, 07:10 PM
bene
 
Posts: n/a
Diggs:
Default Google Tracking JavaScript Corruption

Hello,

I've installed JavaScripts from Go ogle Analysis for tracking of traffic in
all 15 templates of a site, using Dreamweaver CS3. The templates and pages
which I create using Dreamweaver work fine.

The related site editors are adding content to the pages and/or creating new
pages using the same templates in Windows Contributor 4.1. Every time an
editor creates or opens a page, Contribute flags a number of errors then
corrupts the JavaScripts that are locked in the templates. Thereafter, it
throws part of the script at the bottom of the page. It looks like this: " ) )
;

Does anyone have such an experience and if so does any one know of a solution?

Thanks.
sgk



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-09-2008, 12:18 AM
PFB_PFB
 
Posts: n/a
Diggs:
Default Re: Google Tracking JavaScript Corruption

Hi SGK

CAUTION: I am still waiting for 24hrs to see if the data is being received
correctly by Google Analytics having made these code changes on the website
pages, so test this out before using.

Just found the answer to this at Google Groups > Google Analytics Help today.

To quote the post from the forum:

"Blogger (and most modern HTML tools) enforce a level of XHTML compliance,
which is more than the Google Analytics code complies with (Google messed up
the ga.js installation instructions), you will need to cut out all the
HTTM/HTTPS auto-detection including the document.write and just use the version
you need (http or https, like so)"

For HTTP:
<script type="text/javascript" src="http://www.google-analytics.com/
ga.js"></script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-XXXX-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>

For HTTPS:
<script type="text/javascript" src="https://ssl.google-analytics.com/
ga.js"></script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-XXXX-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>

********************

Another post mentioned that Contribute is converting the 'escaped' characters
as shown in the example:

type="text/javascript%3E%3C/script%3E"));

Contribute alters the code to the literal:

type="text/javascript/script%3E"));

So the code doesn't work and ")); lands on the bottom of the page.

The original urchin.js code doesn't have any such escapes so presumably isn't
being altered by Contribute in this way.

This is possibly the same issue of why the new Google Analytics code isn't
working with WordPress Blogger as well but I haven't tested that one out.

Hope this helps.

Aly



Reply With Quote
  #3 (permalink)  
Old 08-09-2008, 01:20 AM
PFB_PFB
 
Posts: n/a
Diggs:
Default Re: Google Tracking JavaScript Corruption

There are other fixes as per threads in Google Analytics help forum, here is a
link using the search term "Contribute"


http://www.google.com/support/google...contribute&Act
ion.Search=Search+Analytics+Help


This shows other threads on the topic.

Reply With Quote


  #4 (permalink)  
Old 08-09-2008, 03:30 PM
PFB_PFB
 
Posts: n/a
Diggs:
Default Re: Google Tracking JavaScript Corruption

After 24hrs I confirm the tracking code is good and receiving data. Its a confirmed fix.
Reply With Quote
  #5 (permalink)  
Old 08-11-2008, 02:47 PM
bene
 
Posts: n/a
Diggs:
Default Re: Google Tracking JavaScript Corruption

Hi Aly,

Thank you very much indeed for your help. I appreciate it.

sgk
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 02:43 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk