Contribute mangles Google Analytics new js

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

  1. #1

    Default 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 converts to ; type='text/javascript'></script>')); so the code
    doesn't work and ')); lands on the bottom of my page. The urchin.js code
    still works, but it would be nice if Adobe and Google got together to sort this.

    Glasgow Boy Guest

  2. Similar Questions and Discussions

    1. 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....
    2. 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...
    3. Contribute problems with Google analytics
      I have added Google Analytics' codes to my client's site. When editing the site in Contribute, this "));
    4. 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...
    5. Flex and Google Analytics
      I just finished a new Flex Component called Flex Google Analytics Magic. This component will enable your flex app to be monitored by Google...
  3. #2

    Default Re: Contribute mangles Google Analytics new js

    I agree, it is doing this for me too. Is there anything going on to fix this?? anyone have any fixes of their own?
    SLCandy Guest

  4. #3

    Default Re: Contribute mangles Google Analytics new js

    As a workaround maybe you could place the code in a PHP include file ( <?php include("file-with-javascript"); ?> ).
    ThinkInk Guest

  5. #4

    Default Re: Contribute mangles Google Analytics new js

    I'm having the same problem. I reverted back to urchin.js. Hopefully this
    gets fixed in the next version.

    There's a small thread about it on Google Groups here:

    [url]http://groups.google.com/group/analytics-help-basics/browse_thread/thread/bdbb06[/url]
    6c4ef769a5

    Rogee Guest

  6. #5

    Default Re: Contribute mangles Google Analytics new js

    I fixed it by placing the script in the header... I haven't had any problems with the reporting. Google says that it is only placed in the body to help people with slow connection.
    jrh1984 Guest

  7. #6

    Default Re: Contribute mangles Google Analytics new js

    Yes, that prevents Contribute rewriting the javascript. (I assume it still works - need to wait a day to see for myself, but I'm sure you're right.)
    Many thanks, jrh1984.
    Glasgow Boy Guest

  8. #7

    Default Re: Contribute mangles Google Analytics new js

    @Glasgow

    Did you notice a difference in your stats?
    jrh1984 Guest

  9. #8

    Default Re: Contribute mangles Google Analytics new js

    Sorry jrh1984, forget to get back. I just changed one page on the 27th and in
    the last two days it had a proportionally similar number of hits compared with
    the unchanged pages as previous. Your fix is certainly working. I'll change the
    other pages on the site today.

    Glasgow Boy Guest

  10. #9

    Default Re: Contribute mangles Google Analytics new js

    Glad to help, hope this helps others as well.
    jrh1984 Guest

  11. #10

    Angry Re: Contribute mangles Google Analytics new js

    That fix works if you only have regular editable regions in your templates. if you have repeating regions in your template, it still breaks the google code when a contribute user edits the page, just like before. Is anyone else experiencing this? Are there any other ideas out there???
    andy 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