Integrating Matomo (Piwik) tracking to Confluence - google-analytics

We are using in-premise version of confluence but still do not have insights to the confluence code but would like to track page views, actions, users etc using Matomo (https://matomo.org/) or Google Analytics.
To enable any kind of tracking, we atleast need to paste a few lines of JS code to index.html.
But in case of confluence, since we do not have access to the code, how we can make this work.
Can anyone please help here.

You may want to check using a Piwik Add-on from the Atlassian Marketplace.
The smartics Piwik Integration is one option.
Documentation on how to configure this add-on is found at the add-on's homepage.
Biased alert: Please note that I am one of the developers of the add-on. ;)

Related

How to track Google Play download sources

I can't find the simple answer for a simple question. I want to generate a link to my app on Google Play and check how many installs comes from this link.
For iOS this is very simple, you just go to the analytics ->sources and generate a link that has a parameter. I can't find anything like that in Google Play Developer Console. Am I missing something or there is not such option for GP?
You could use Firebase Dynamic Links.
More information here: https://firebase.google.com/docs/dynamic-links
You can create Dynamic Links using your own domain name:
https://example.com/summer-sale
https://example.com/links/promos/summer-sale
https://links.example.com/summer-sale
https://ex.amp.le/summer-sale
Or, if you don't have a domain for your app, you can use a free custom page.link subdomain:
EXAMPLE LINK: https://example.page.link/summer-sale
Create your free subdomain in the Firebase console.
All Dynamic Links features, including analytics, post-install attributions, and SDK integrations, work with both custom page.link domains and your own domain.

Add Drift and Hubspot(third party JS) to AMP pages

is there an official way or case study of how to add external marketing tools, like trackers(hubspot), bots(drift), etc, to basic AMP pages generated in a WordPress setups using the official AMP plugin? The idea of AMP is to filter JS, but for marketing, using external tracking tools is a must, and the AMP performance is great for SEO, any idea of how to combine both worlds?
We have been using pure amp sites for years now, the problem you face is what we have faced over and over again. Unless these tools will integrate to use the <amp-analytics> module, you will not be able to use tools like this. <amp-analytics>, however, gives you all the data you need, you can record visits, clicks, conversions etc and with a bit of tweaking, you could even pass this data to HubSpot via their API.
Please visit the documentation for here: <amp-analytics>
In regards to live chat (Drift), you would have to build a live chat via amp and use this instead of drift. Google AMP will not allow 3rd party javascript.

How do you disable the Google Maps API?

I am trying to speed up my website and have found that Google Maps is the culprit. I have removed the maps but the scripts are still activating - https://maps.googleapis.com/maps/api/js?
Is there a way to disable them on my wordpress site?
For more additional information, if you really wish not to use our API, you can always disable/enable it in the Developer Console. All you have to do is to follow the steps below:
Go to the GCP Console API Dashboard page.
GO TO THE API DASHBOARD PAGE
Click Select to choose the GCP project.
Next to the API you want to disable, click Disable.
or you can check Google Cloud's Enabling and Disabling Services.
Hope I was able to help you.
You should check if there is a plugin that calls it automatically and check if the plugin or theme has this option.
If the plugin or theme does not have this option you will need to manually search the code where it is being used and remove it.
Unfortunately in your case you will need to see the code of the themes or plugins on which the script is being called so that you can have a way to remove it.
Because each plugin / thema calls this in different ways and sometimes only manually to remove

Implementing Google Analytics and Google Tag Manager tracking codes on a Wordpress site with Personal plan

I have a Wordpress website and have the Personal plan.
My goal is to implement the tracking code of the Google Tag Manager on each site.
When I am on the Wordpress site in the HTML view, I should be able to paste one tracking code as close to the opening <head> tag as possible on every page of my website but this is not possible.
That´s why I had a talk with somebody from the Wordpress Support team and their answer was the following:
I believe the code for Google Analytics is meant to go in the header of the site. Since WordPress.com is a fully managed environment, we don't have access to the header code.
Instead, we have a built in Google Analytics option available as part of the Business upgrade.
The issue is I don´t want to spend 25$ a month just to have Google Analytics integrated on my website. There must be also a way for somebody like me with a Personal plan to implement the tracking codes.
When I tried to implement them, they were not hidden on the website which should not be the case (because "hidden" is in the code).
Did anybody of you have the same issue like I am facing?
P.S.: There are also Plugins for Google Analytics but with my plan I can´t upload any Plugins. :/
I integrated the code on a text widget. It worked just fine. If you dont give title to the widget, its even completly invisible. so dont spend unecessary money

Google analytics with a Chrome Web store packaged app

I have a couple of small packaged apps on the Chrome Web Store (that's packaged, not hosted, so I'm not hosting anything myself). I was wondering whether I can still use Google Analytics, and how to test whether it's working before publishing the app.
I'm guessing the answer might be no, because their FAQ just says this:
"Can I use Google Analytics?
Yes. Hosted apps use Google Analytics just like any other website does. For help on using analytics in packaged apps (and extensions), see this tutorial."
Anyone know if there's a way around this?
Resolution
Followed the advice from the answer, but with a couple of small differences. First, I did not modify in any way the code that I copied from GA. Second, I pasted my GA ID in the app publishing form in my developer dashboard (go to developer dashboard, click edit for the app in question, then find the GA field).
I hope this might help: http://code.google.com/chrome/extensions/tut_analytics.html
I recently submitted an app and found that there is a text field for adding your Google Analytics code.

Resources