You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
We're using Matomo for web monitoring and metrics reporting. The tool requires a relatively simple script to be applied to all pages, which gathers some traffic data and sends it to a Matomo instance.
Looking for recommendations on where to place such a script in Bitbucket. In Jira and Confluence, we've been able to leverage the Announcement Banner and Custom HTML configs to run the script. But since Bitbucket uses markdown for the announcement banner, I don't have the same front end options.
Recommendations on where a script could be placed in order to run for all pages.
Example Matomo script:
<!-- Matomo -->
var _paq = window._paq = window._paq || ;
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script');
<!-- End Matomo Code -->
I was able to put it onto the login screen, since we're running the Resolutions SAML SSO plugin, and I can edit the login page template to run the script. But obviously, that only runs on one page, and no other pages after that.
Fiddled around, inserted the script into the configurations for the announcement-banner.soy, aui.soy, and other similar files. Errors on startup that the soy files couldn't compile or something. It was worth a try.
Open to suggestions on possible locations to wedge a script into the global page configs.