Repository: any23 Updated Branches: refs/heads/master cab71ae64 -> 304e9d442
Added disclaimer and centralized configuration for Google Analytics tracker script in service form. Project: http://git-wip-us.apache.org/repos/asf/any23/repo Commit: http://git-wip-us.apache.org/repos/asf/any23/commit/304e9d44 Tree: http://git-wip-us.apache.org/repos/asf/any23/tree/304e9d44 Diff: http://git-wip-us.apache.org/repos/asf/any23/diff/304e9d44 Branch: refs/heads/master Commit: 304e9d442af0089a82db925f0a746279970eab0c Parents: cab71ae Author: Michele Mostarda <[email protected]> Authored: Mon Mar 2 11:30:21 2015 +0100 Committer: Michele Mostarda <[email protected]> Committed: Mon Mar 2 11:30:21 2015 +0100 ---------------------------------------------------------------------- README.md | 7 +++++++ README.txt | 6 ++++++ pom.xml | 1 + service/src/main/resources/form.html | 5 ++++- 4 files changed, 18 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/any23/blob/304e9d44/README.md ---------------------------------------------------------------------- diff --git a/README.md b/README.md index c380d4a..c5476ce 100644 --- a/README.md +++ b/README.md @@ -133,6 +133,12 @@ Again the various versions of the WAR will be generated into $ANY23_HOME/service/target/apache-any23-service-x.y.z-* ``` +## Any23 Web Service Tracker Disclaimer + +The Any23 Web Service form (service/src/main/resources/form.html) contains a Google Analytics Tracker which is +by default configured to report to the Any23 Community. It is possible to change the user ID modifying the +```form.tracker.id``` property in parent POM. + # Generate the Documentation To generate the project site locally execute the following command from $ANY23_HOME: @@ -155,3 +161,4 @@ MAVEN_OPTS='-Xmx1024m' mvn -P umlgraphdoc clean site:site # Munging of Any23 code to ASF When it was [decided](http://wiki.apache.org/incubator/Any23Proposal) that the Any23 code be brought into the Apache Incubator, the existing code was migrated over to the ASF infrastructure and documented/managed via a number of Jira tickets e.g, [INFRA-3978](https://issues.apache.org/jira/browse/INFRA-3978) [INFRA-4146](https://issues.apache.org/jira/browse/INFRA-4146) and [ANY23-29](https://issues.apache.org/jira/browse/ANY23-29). + http://git-wip-us.apache.org/repos/asf/any23/blob/304e9d44/README.txt ---------------------------------------------------------------------- diff --git a/README.txt b/README.txt index 147981c..ea8ebc1 100644 --- a/README.txt +++ b/README.txt @@ -135,6 +135,12 @@ Again the various versions of the WAR will be generated into $ANY23_HOME/service/target/apache-any23-service-x.y.z-* ``` +## Any23 Web Service Tracker Disclaimer + +The Any23 Web Service form (service/src/main/resources/form.html) contains a Google Analytics Tracker which is +by default configured to report to the Any23 Community. It is possible to change the user ID modifying the +```form.tracker.id``` property in parent POM. + # Generate the Documentation To generate the project site locally execute the following command from $ANY23_HOME: http://git-wip-us.apache.org/repos/asf/any23/blob/304e9d44/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index 3a74e48..7539938 100644 --- a/pom.xml +++ b/pom.xml @@ -231,6 +231,7 @@ <sesame.version>2.7.14</sesame.version> <semargl.version>0.6.1</semargl.version> <latest.stable.released>1.1</latest.stable.released> + <form.tracker.id>UA-59636188-1</form.tracker.id> <!-- Maven Plugin Versions --> <maven-javadoc-plugin.version>2.8</maven-javadoc-plugin.version> http://git-wip-us.apache.org/repos/asf/any23/blob/304e9d44/service/src/main/resources/form.html ---------------------------------------------------------------------- diff --git a/service/src/main/resources/form.html b/service/src/main/resources/form.html index b7bb9ca..8a53d2c 100644 --- a/service/src/main/resources/form.html +++ b/service/src/main/resources/form.html @@ -398,12 +398,15 @@ Content-Length: 174 </div> </footer> + <!-- Google Analytics Tracker code. By default configured to report to the Any23 community group. + To change this default behavior please specify your custom ID in parent POM (form.tracker.id property) + or delete this script block to disable. --> <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-59636188-1', 'auto'); + ga('create', '${form.tracker.id}', 'auto'); ga('send', 'pageview'); </script>
