Contribute corrupting Google analytics code

Ask a Question related to Macromedia Contribute General Discussion, Design and Development.

  1. #1

    Default Contribute corrupting Google analytics code

    We have a google analytics script at the bottom of each html file of a site.
    Every time my client edits a file with ContributeCS3, the script gets
    corrupted. Specifically, the %3C and the %3E%3C/script%3E portions get
    deleted, rendering the code useless. Can anyone explain why this happens and
    if there's a fix?




    <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." :
    "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost +
    "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script type="text/javascript">
    var pageTracker = _gat._getTracker("UA-2715399-1");
    pageTracker._initData();
    pageTracker._trackPageview();
    </script>

    dannam Guest

  2. Similar Questions and Discussions

    1. Contribute mangles Google Analytics new js
      The new Google Analytics ga.js code includes the following: type='text/javascript'%3E%3C/script%3E')); which, after editing a page, Contribute...
    2. Error message concerning the Google analytics code,after change a html file in Contribute
      Please Help me!! After installation cms Contribute for my client to administer her site there are warnings concerning the code of Google Analytics....
    3. Contribute Conflict with Google analytics
      I have added Google Analytics codes to my client's site. When editing the site in Contribute, the code below appears at the bottom of each page...
    4. Contribute problems with Google analytics
      I have added Google Analytics' codes to my client's site. When editing the site in Contribute, this "));
    5. Google Analytics Code Gets Corrupted
      Hi. I'm using Contribute 4.1 on Vista Business OS to update my website. For some reason when I update a page and then publish, the Google Tracking...
  3. #2

    Default Re: Contribute corrupting Google analytics code

    Search the forum on google AND analytics:


    [url]http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=55&catid=29[/url]
    0&threadid=1384445&highlight_key=y&keyword1=google %20AND%20analytics


    [url]http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=55&catid=29[/url]
    0&threadid=1381888&highlight_key=y&keyword1=google %20AND%20analytics


    [url]http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=55&catid=29[/url]
    0&threadid=1334782&highlight_key=y&keyword1=google %20AND%20analytics

    ThinkInk Guest

  4. #3

    Default Re: Contribute corrupting Google analytics code

    Quick and easy fix for me was to place the analytics code in an external file
    and call it in using an include statement. If you are using static HTML then
    you will need to parse SSI as HTML easily achieved in both IIS or Apache.
    Apcahe is easiest as you can do it yourself using .HTACCESS file. IIS requires
    admin access to the server.

    101Phil Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139