This page describes how to add Google Analytics in JIRA, but is not updated for JIRA 6 :
Can you tell us how to do it in JIRA 6 ?
The banner works well but it does not register all the hits, unfortunately. Example if you use the issue navigator and then click on the first issue, once you enter in the issue display this hit is recorded, but if you click on J or K (jump/back) this does not record a hit because the banner is not reloaded. We need to find a better way to include Google Analytics.
Adding the Google script in the announcement banner is not enough. You will miss a lot of pages, for example if you search issues and you get let's say 10 results in the issue navigator, the banner will count on page hit when you load the first issue. If you then click on J (jump) or K (back) the screen is not loaded again so the banner does not run the Google Analytics script. The only way of solving this issue is by entering the Google Analytics script in the description of the summary field on each one of your field configurations you have, see screen shot below.
Screen Shot 2016-06-17 at 8.36.35 AM.png
Hi Claudio, I'm not sure that I fully understand your instructions.. When I put the <script>...</script> into the Description box, it appears on the screen underneath the Description field (which is how it should work when you put anything into that box), like this:
Am I missing something?
As others have said, the trick is to use the announcement banner. The twist is that you also want to use the official autotrack plugin from Google, specifically the urlChangeTracker: https://github.com/googleanalytics/autotrack/blob/master/docs/plugins/url-change-tracker.md. It will enable tracking page views on single-page-app pages like issue navigator.
Example code that you would put in the announcement banner would be
This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.Read more
Hi Community! My name is Amir and I’m on the Jira Service Desk product marketing team at Atlassian. Our team would love to understand how you’re leveraging our ecosystem for Jira Service Desk. Wha...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs