Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 463583

Summary: https://www.eclipse.org/sirius/doc/ is not using the right UA-Code
Product: [Modeling] Sirius Reporter: Cedric Brun <cedric.brun>
Component: DocumentationAssignee: Projet Inbox <sirius.doc-inbox>
Status: CLOSED FIXED QA Contact: Pierre-Charles David <pierre-charles.david>
Severity: normal    
Priority: P3 CC: esteban.dugueperoux, pierre-charles.david
Version: unspecifiedKeywords: triaged
Target Milestone: 3.0.0M7   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Cedric Brun CLA 2015-03-31 08:11:18 EDT
The sub-website : https://www.eclipse.org/sirius/doc/ which is generated by wikitext tasks is not using the right UA code for google analytics.

It is using UA-910670-2 (which is the default for Eclipse.org AFAIK) whereas it should use UA-45105163-1 like the rest of the Sirius website.

See : view-source:https://www.eclipse.org/sirius/doc/js/googleAnalytics.js
Comment 1 Cedric Brun CLA 2015-03-31 08:25:01 EDT
I updated the website with commit c11b3e46004b42fa3e6deedafe4aa47f535f734b but will leave this ticket open to discuss this with Pierre-Charles and see whether thats a sustainaible fix considering the website is "sort of" generated.
Comment 2 Pierre-Charles David CLA 2015-05-04 05:58:23 EDT
Cédric, I'm closing this considering what you told me the other day. Reopen if I misinterpreted and there is more work to do here.
Comment 3 Pierre-Charles David CLA 2015-05-21 06:05:17 EDT
The correct UA-Code is now used. The following script must be applied to the documentation files' copy which is deployed on www.eclipse.org/sirius/doc to insert the Analytics code (we do not want it directly on the version packaged in the Eclipse Help).

find . -name "*.html" | while read f; do
     sed -i -e 's|<link type="text/css" rel="stylesheet" href="resources/custom.css"/>|<link type="text/css" rel="stylesheet" href="resources/custom.css"/>\n<script type="text/javascript" src="../js/googleAnalytics.js"></script>|g' "$f"
     sed -i -e 's|<link type="text/css" rel="stylesheet" href="../resources/custom.css"/>|<link type="text/css" rel="stylesheet" href="../resources/custom.css"/>\n<script type="text/javascript" src="../../js/googleAnalytics.js"></script>|g' "$f"
     sed -i -e 's|<link type="text/css" rel="stylesheet" href="../../resources/custom.css"/>|<link type="text/css" rel="stylesheet" href="../../resources/custom.css"/>\n<script type="text/javascript" src="../../../js/googleAnalytics.js"></script>|g' "$f"
done
Comment 4 Pierre-Charles David CLA 2015-06-24 11:15:04 EDT
Available in Sirius 3.0.0. See https://wiki.eclipse.org/Sirius/3.0.0.