Professional Web Applications Themes

Contribute corrupting Google ytics code - Macromedia Contribute General Discussion

We have a google ytics 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:" == doent.location.protocol) ? "https://ssl." : "http://www."); doent.write(unescape("%3Cscript src='" + gaJsHost + "google-ytics.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>...

  1. #1

    Default Contribute corrupting Google ytics code

    We have a google ytics 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:" == doent.location.protocol) ? "https://ssl." :
    "http://www.");
    doent.write(unescape("%3Cscript src='" + gaJsHost +
    "google-ytics.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. #2

    Default Re: Contribute corrupting Google ytics code

    Search the forum on google AND ytics:


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


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


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

    ThinkInk Guest

  3. #3

    Default Re: Contribute corrupting Google ytics code

    Quick and easy fix for me was to place the ytics code in an external file
    and call it in using an include statement. If you are using static HTML then
    you will need to p 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

Similar Threads

  1. Contribute mangles Google ytics new js
    By Glasgow Boy in forum Macromedia Contribute General Discussion
    Replies: 9
    Last Post: September 29th, 10:31 PM
  2. Error message concerning the Google ytics code,after change a html file in Contribute
    By mblaisse in forum Macromedia Contribute Connection Administrtion
    Replies: 4
    Last Post: November 29th, 10:49 AM
  3. Contribute Conflict with Google ytics
    By Zucca1 in forum Adobe Dreamweaver & Contribute
    Replies: 1
    Last Post: October 19th, 09:37 AM
  4. Contribute problems with Google ytics
    By Zucca1 in forum Macromedia Contribute General Discussion
    Replies: 0
    Last Post: October 9th, 09:55 PM
  5. Google ytics Code Gets Corrupted
    By eringuth in forum Macromedia Contribute General Discussion
    Replies: 1
    Last Post: July 29th, 11:15 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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