www-infrastructure-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Barboni (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (INFRA-9973) mirror.cgi raise exception after updating analytics.js tracking code on archiva website
Date Fri, 24 Jul 2015 01:13:05 GMT

     [ https://issues.apache.org/jira/browse/INFRA-9973?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Eric Barboni closed INFRA-9973.
-------------------------------
    Resolution: Not A Problem

Thanks for the idea.
I found the following alternative on https://developers.google.com/analytics/devguides/collection/analyticsjs/advanced
{code}
<!-- Google Analytics -->
<script async src='//www.google-analytics.com/analytics.js'></script>
<script>
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', 'UA-XXXX-Y', 'auto');
ga('send', 'pageview');
</script>
<!-- End Google Analytics -->
{code}
which is working and is part of official google documentation


> mirror.cgi raise exception after updating analytics.js tracking code on archiva website
> ---------------------------------------------------------------------------------------
>
>                 Key: INFRA-9973
>                 URL: https://issues.apache.org/jira/browse/INFRA-9973
>             Project: Infrastructure
>          Issue Type: Bug
>          Components: Mirrors
>         Environment: web browser
>            Reporter: Eric Barboni
>
> Hi, I already send a mail as tell in the in errror webpage [1] or [2] but as there is
no archive I was not able to add information as I wanted to temporary enable html of project
website for the users.
> Adding the new google analytics code break the mirror.cgi script as you can see on [1]
or [2]. Here is the code (copy pasted from analytics site with no alteration):
> {code}
> <script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
>           (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
>           m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
>           })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
>           ga('create', 'UA-xxxx', 'auto');
>           ga('send', 'pageview');</script>
> {code}
> Regards
> Eric
> [1]https://archiva.apache.org/index.cgi
> [2]https://archiva.apache.org/download.cgi



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message