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: "));
JavaScript is attached.
Does anyone have such an experience and if so does any one
know of a solution?
Thanks.
sgk

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

Similar Messages

  • What are the benefits of adding the Google Tracking Code to web pages.

    Hi everyone - I completed my site a few months ago but I'm not happy with the Google ranking I'm getting
    after typing "leadlight windows" into the Google search field.
    I've got Google verification and made sure I've got descriptive titles for my pages and alt text for photos
    plus plenty of "leadlight windows" in my text and headings.
    After months of doing a Google search, to my surprise other sites with what seems like less mention of "leadlight windows"
    are getting a much higher ranking than mine.
    I was wondering wether inserting the Google Tracking Code on each page might give me a higher ranking
    than I'm getting.
    My site is www.leadlightdlux.com
    Many thanks in advance for anyone that has clues about Google Tracking Code.

    Google Analytics is only half the battle.  The analytics starts the process for Google and they build off it.  What you need to examine next is Google Webmaster Tools: https://www.google.com/webmasters/tools/home?hl=en .  On that tool under "Your Site on the Web" you will see an option for keywords.  This will show you what Google sees.
    Lastly Google has recently updated their code whether you are subdomains, multiple domains, etc and this code is placed in the head of your document instead of the end of the document, so updating your code may help there as well.

  • If i try the "disable google tracking" add-on...google won't direct me to the sites listed in the search..what can be done

    how can i use google without being tracked...if i disable google tracking the google search results won't direct me to listed web sites..also how do i stop people from knowing my address and location
    specifically if i disable the "disable google tracking" add-on...then when i click on a search result it takes me to the website.

    Hi,
    You can try [https://addons.mozilla.org/en-US/firefox/addon/google-search-link-fix/ this] add-on.

  • Google tracking vs. Adobe tracking.

    Did I see that correct?
    Does Adobe Muse offer a tracking for the webistes they host?
    What would be the difference between Google tracking and Adobe tracking?

    Hi elindo586,
    If you publish the site to Business Catalyst, Adobe does provide tracking for the site traffic.
    Yes, it is different from Google tracking, you can read about the difference on following link:
    difference between google analytics and bc report?
    Regards,
    Gaurav Aggarwal

  • I recently purchased a CD through itunes and the first track is corrupt.   What do i do?

    I recently purchased a CD through itunes and the first track is corrupt.   What do i do?

    See How to report a problem with your iTunes Store purchase:  http://support.apple.com/kb/HT1933

  • Embed Google Tracking in my DPS magazine?

    Hi,
    I have a client who wants to run an ad in my DPS magazine. They've asked if it can have Google Tracking embedded in it. I just wanted to check if that would be possible, and how to do it if it is...
    Thanks very much,
    Vincent

    Hi Colin,
    Just an update...  It looks like we finally got this up and running.  Two important notes for anyone following in our footsteps...
    1)  It appears that the Analytics for Flash does not work with a "Mobile App" account, it only seems to work with a "Web site" account.  When creating the new account to track your AIR app created in Flash, create the standard "Web site" account.  When asked for a URL, even though a mobile app isn't a web page, you need to put something in that field, so enter a URL that links to something you've created.  It doesn't seem to need to actually be related to the app you're trying to track, I think they just need to confirm that a URL exists.
    2) It appears that it takes several hours (24 hours perhaps?) after creating the analytics account for data to start showing up.  When I came back to this after the weekend, none of the tests I did within the first few hours of the account's existance ever showed up, not in Real-Time, nor in any of the other views.  But, to my delight, Real-Time data began appearing on Monday, so it must take some time to propegate before the account starts showing activity.
    Colin, I can't thank you enough for your patience and willingness to see me through trying to get this up and running.  It really is a very simple process if you take note of the two points above, but short of knowing that, it was very frustrating.  So thank you ever so much for being such a valuable resource to this community!

  • Migration of Google Maps Javascript to Flash

    Hi,  I am trying to gather information on how to migrate a heavily Google Maps based website
    Mapped Travel from pure Javascript to Flash. I was wondering if there is a good migration guide out there, if there are any limitations (performance, compatibility, functionality, etc.)? Maybe there are even scripts to help me automate the migration?  Thanks for any comments, Ralph

    You use ExternalInterface.addCallback to enable calling a function from JS.
    Here, this tutorial has everything you need: http://www.viget.com/inspire/bi-directional-actionscript-javascript-communication

  • How is Google tracking used with scrolling pages?

    I like to see tracking for each web page. How is it set up to track pages in scrolling?
    Greg

    Hi,
    If you are using anchors on page, then you can modify the Google Analytics tracking code, please refer to these links:
    Google Groups
    http://www.searchenginepeople.com/blog/how-to-track-clicks-on-anchors-in-google-analytics. html#screenshot
    Regards,
    Gaurav Aggarwal

  • Flash Professional CS6 'deletes' my file;  JavaScript corrupts file

    I'm working on a Macbook Pro OS X Yosemite and in Flash CS6.
    While I try to fill in drawings (I'm animating) with the paint bucket, it hangs for a long time. I regurary safe my work because after a while it totally hangs. Then I need to restart my entire computer. I have a lot of free memory, so I don't understand (8gb memory)
    When I wanted to export the movie it said it can't save the file on that location and BANG the program quits unexpectedly. When I want to re-open the file IT IS GONE or it is not the same file and I get this info:
    The following JavaScript error(s) occurred:
    At line 1 of file "/Users/me/Library/Application Support/Adobe/Flash CS6/en_US/Configuration/Javascript/ObjectFindAndSelect.jsfl": (and more)
    The file size is reduced to only 981kb and 'Failed to open document'
    It was an 8 hour work.
    The next day I started totally from scratch again. Same thing happens.
    Anyone?

    Solved - sort of!  I opened an FLA file and did a Save As Template, with my own categrory.  (Apparently Flash wiped out the custom templates I had saved previously.)  Now File New works, showing not only my saved template, but all the standard templates too. Presumably a bug in CS6 and/or some sort of conflict with Windows 7.

  • Javascript Issue causing e-commerce tracking errors

    Hi all,
    I've been getting an error when proceeding through the shopping cart process which is causing the Google Analytics javascript for e-commerce tracking to not fire.
    https://domain01.worldsecuresystems.com/scripts/jquery.main.js Line: 18 Error: Timestamp: 27/02/2013 3:48:07 PM
    Error: TypeError: $(...).slideshow is not a function
    Source File: https://domain01.worldsecuresystems.com/scripts/jquery.main.js Line: 18
    has anyone else had this type of error occur to them?
    If so, how did you fix it?
    If not, who would be the best contact to fix this?
    As the javascript file is on the world secure systems domain, i would reasonably think it has to be a fix on the BC end?
    Any help would be great - thanks

    Hi Liam,
    We've repeated all the steps and I think we're a bit closer to fixing the problem.
    What i've got now is a duplicate of the GA code but I'm unsure of where to find the duplicate. See below for the code that appears on the "thank you, payment success" page.
    The text that is struck out shouldn't be there, however I can't find where it exists. It's also not in the "order_receipt-AU.html" page where we put the other segment of code.
    Do you know of a way we can find out where the struck out code could be?
    <script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-25030172-1']);
      _gaq.push(['_setDomainName', 'manchesterwarehouse.com.au']);
      _gaq.push(['_setAllowLinker', true]);
      _gaq.push(['_trackPageview']);
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    </script>
    <script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-25030172-1']);
      _gaq.push(['_setDomainName', 'manchesterwarehouse.com.au']);
      _gaq.push(['_setAllowLinker', true]);
      _gaq.push(['_trackPageview']);
    _gaq.push(['_addTrans', "2157207", // Order ID
                       "", // Affiliation
                       "15.26", // Total
                       "", // Tax
                       "", // Shipping
                       "", // City
                       "", // State
                       "" // Country
            _gaq.push(['_trackTrans']);
      (function() {
                var ga = document.createElement('script');
                ga.type = 'text/javascript';
                ga.async = true;
                ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';
                var s = document.getElementsByTagName('script')[0];
                s.parentNode.insertBefore(ga, s);
    </script>

  • Premiere corrupted the audio track of XDCAM EX

    I am very new to Premiere.  I received a file from a friend who wants me to convert the video to NTSC DV widescreen.  I imported the MP4 file and added it to the timeline.  I was able to convert fine with exception to an aspect ratio issue.  So, I decided to try again.  Much to my surprise I find the audio track is corrupt.  The first part of the track is fine except with occassional pops & cracks, then after about 10 minutes the entire audio track turns to peaked white noise?  I checked the modify date of the source file and sure enough it has changed.  I did not tell Premiere to overwrite anything and thought it woudl not alter source files.  How can this be?  What can I do?
    Thanks.

    Thank you all for your help.  What I ended up doing was create a new project and import the entire BPAV directory.  However, after conforming, there was still one clip's audio track that was corrupt.  So, I decided to create yet another project and inport only the single troubled clip.  After conforming the audio track was still corrupt.  I did look at the audio tracks closely and they were corrupt in the same place.  (eg. the beginning of the track was fine and then suddenly at a set point the track would go bad).  I know it is not a bad file because Sony's player plays it fine.  So, I did some checking and found the "Media Cache Files" folder.  I blew the contents away, recreated another new project and imported the troubled clip.  After conforming I find the audio in Premiere is just fine.  The media cache files were taking up a lot of space but had not nearly filled the drive.  What ever it was I'm glad there is a forum like this to help us new users.
    Thanks again,
    ISTMAN

  • Damaged or corrupted tracks

    If I have digital copies of music on my computer that have skips or become distorted, will iTunes Match still match these tracks to undamaged versions?

    Hi,
    it is unlikely that they will be matched as match uses sound profile of the track and corrupt / faulty tracks will be uploaded.
    JIm

  • DVDSP track corrupted?

    Can a DVDSP session or track get corrupted? ... My session was fine before but it seems to have problems with the new media I bring into older tracks... When I bring the same media (video) to a new track it's ok.
    Is there any way to get this fixed?
    I don't understand what's going on. Please help.
    Thanks

    If you mean Apple DVD Player, the preferences can get corrupted there also. Sometimes deleting preferences helps and I have repaired permissions also and it has helped. It could also be a bug in Apple's DVD Player (there are a couple depending on which OS and version of the Player and QT) though overall Apple DVD Player is probably going to give you a good idea that there is a problem . If this a burned DVD on a standalone player then it can also be other issues.
    http://dvdstepbystep.com/faqs_3.php
    You can try to burn one and see if it helps, worth giving it a shot and see if it shows up on a standalone.
    And of course it can be a corrupted encode also (even though it may play fine in Simulator) I had that happen recently and had to encode over (it showed up on burned DVDs) and the problem went away.

  • Track or Session Corrupted?

    Can a DVDSP session or track get corrupted? ... My session was fine before but it seems to have problems with the new media I bring into older tracks... When I bring the same media (video) to a new track it's ok.
    Is there any way to get this fixed?
    I don't understand what's going on. Please help.
    Thanks

    I mentioned some things in your other post on the subject
    http://discussions.apple.com/thread.jspa?messageID=7274476#7274476

  • How to type a URL if Google search bar removed for privacy

    Because it appears that in Safari it is impossible to remove the Google Search Bar that's off to the right at the top without also removing the now connected URL Location bar to its left, I removed both. I had noticed that when I did this in Camino, I could still go to a web page by clicking Command L for Open Location (found in the File dropdown menu of most browsers).
    But in Safari just now, when I remove the Google search bar that Apple has hard coded to be inseparable from the Location bar to its left, I find I cannot use the File / Open Location command (which I mentioned is Command key - L) and therefore -- is my browser useless if I do not want to document my travels on the world wide web with Google's databases by having the Search Bar up?
    In other words is it not possible to enter a URL into Safari in a blank and open the URL Location if you remove the Google Search Bar?
    Is the only way to get to a webpage after removing that item to use one's old bookmarks to get to a page?
    Or is this a bug and is my "Command key - L" (Open Location command) supposed to be working? I also started to test this with Firefox but it appears my Firefox browser does not have this problem so my Open Location bar remains even if I remove a search bar and the removable search bar it does have is not tied to google in particular, I don't think, in Firefox even if I remove the search bar though I never use a search bar anyway because I don't care to go to any search engine unless I type their URL into my Location bar personally. That's just my preference because I don't trust having third party search bars forced into the browser design.
    Is this really true as it appears that there's no way to open a Location in Safari without having the annoying Search Bar up? Is Open Location disabled without the Google Search bar?
    If so, it looks like that, of my several browsers, the only one that won't allow me to Open Location (go to a webpage that I type into a Location bar) if I remove the Google Search bar is Safari. I am finding I can successfully extricate myself from Google search if I use Opera, Camino, and Firefox and select Remove after right clicking on the search bar.
    Why would the industry be trying to force this Google data mining and surf habits info collection on people? Evidently because Apple would rather take the money from google for forcing google into our browser than protect its customers privacy? I hope this disease does not spread to the other browsers left for me to use. What a monopoly google is building. Too bad antitrust litigation is dead.
    (If this is true, this is depressing to me because I had set Safari to be my primary browser. But it seems the least secure browser anyway (compared to using NoScript with Firefox) so I guess I'll have to avoid using it (except on those few pages that won't work without it) until Apple starts taking people's privacy a little more seriously instead of sneaking in more and more features that force us into an unholy logging relationship with Big Brother Google. And I'm disappointed in this development also because I used to like Google before I realized its lawyers were so dedicated to writing privacy policies that are as vague as possible and as unprotective of privacy as possible. I would like to use Google more if they would just stop taking 100 miles when a person gives an inch by using their search engine. I get nervous any time I have to use anything connected with them as things stand and I really wish that would improve and that google will improve its privacy policies rather than finding new ways to log every movement a person makes on the Web.)

    The question posed in this thread was:
    How do I type a URL such as "www.apple.com" etc. into a blank in SAFARI to go to the URL if I remove the Google search bar?
    I cannot seem to get Open Location (Command - L) to function if I remove the Google search bar. Removing the Google Search Bar seems to also remove the location bar to type into. This is not the case in Opera, Camino, or Firefox, so I am wondering if my Safari is just corrupted. If the only way to have the option of Open Location (Command L) is to put the Google Search bar back in, which means the two are connected, does that mean that Google is able to record all url's typed in the Location bar even if you don't use the Search bar? I believe the story used to be that any time you type a url into a google search engine, google records your IP and search; so I'm wondering if Apple has now set up the Location bar in Safari in a deal with Google to let Google track every URL you type into the location bar if it is the case that the Location bar is inseparable from Google Search.

Maybe you are looking for

  • Which Macbook Pro is good for a college student?

    Hi! I want to buy the new Macbook Pro with Retina Display. My current laptop has 455 gb in which I only used 83 gb of it since the past 5 years I've been using it. I know that the original macbook pro is good too but its way heavier than the Macbook

  • Says I already have flash player installed but I don't?

    Trying to download the latest flashplayer, but when I get to 66% it tells me I already have it installed although I've uninstalled it from my c drive, any experience of this, or help you can offer? Thanks, Terry

  • Please syntax for me :)  Re: Rename files with a given string

    From the post http://forum.java.sun.com/thread.jspa?forumID=54&threadID=5118509 Was wondering if someone could explain how the red characters work and what it does. Thanks!         String newFileName = destFiles.getName().replaceFirst("[^.]*", rename

  • // Thread : Give me Warning !!!!!//

    how to kill a Thread??? They say Thread.stop() is Deprecated.... So how to stop the Thread... eg.. The Timer class which extends Thread, when I start the Thread, The Timer class start counting the time. If I want to Stop, How am I going to stop that

  • Partition over date range

    Is there a way to have a count be partition over a date range count(records) over(partition by ids range start_date to end_date)