Giter VIP home page Giter VIP logo

cloud_piwik's Introduction

Hi there 👋

Recent projects

Languages and tools

Current ❤️ tool stack

Nextjs + Material UI + Prisma + Axios + SWR + Joi + Iron Session + Jest

Latest 🤯

Typescript allows custom type predicates.

Social

🦣 Find me on Mastodon

cloud_piwik's People

Contributors

dampfklon avatar dependabot[bot] avatar drmurx avatar gjelsas avatar hirschrobert avatar sualko avatar yangboz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cloud_piwik's Issues

Tracking url isn't correct

I am unable to get Owncloud tracking into Piwik. I am able to see the outbound request going to my piwik install in Firefox debugger is a 404 error The exact request is.....

https://mypiwik.com/piwik.js/piwik.php?action_name=Files - ownCloud&idsite=123&rec=1&r=124964&h=22&m=26&s=53&url=ht..................

My settings are Site ID = 123 & Piwik URL = https://mypiwik.com/ and Use internal piwik library = enabled.

I think the request should just be https://mypiwik.com/piwik.php?action........ but am not 100% sure can you help ?

If I disable the "Use internal piwik Library" option then I don't see any outbound requests in firefox debugger.

Thanks
Keith.

Need Installation Help

Hi, I think i need a little help, because I kinda don't get the instruction.

I installed Piwik with the URL:

https://mypiwikinstallation.com

I can successfully log in the Admin Interface.
But it is saying, that my website I created didn't have a Tracking Code inserted.

My Owncloud Installation is:

https://myowncloud.com

So when I go to my Admin Interface in Owncloud an put the

ID: 1
Piwik Installation: https://piwikinstallation.com

I still get a message in Piwik, that my Owncloud Installation has no Tracking Code.
Don't i have to put the Tracking Code somewhere inside Owncloud ?

Piwik app and directory don't pass oc 9.0 integrity check

Piwik app and directory don't pass oc 9.0 integrity check cause off wrong signature.

[piwik] => Array
(
[EXCEPTION] => Array
(
[class] => OC\IntegrityCheck\Exceptions\InvalidSignatureException
[message] => Signature data not found.
)

)

[0.4.0] configuration not visible

Expected behavior

That the configuration are visible

Actual behavior

No configuration settings are shown

Steps to reproduce the behavior

  1. Log in to the nextcoud site
  2. search all admin options

Environment

  • App version: 0.4.0
  • Nextcloud version: 13.0.1
  • Browser vendor and version: firefox 59.02
  • Any browser plugins enabled? addblock plus, no script
  • Is your Matomo installation working as expected? yes

Logs

Javascript

Source-Map-Fehler: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
Ressourcen-Adresse: https://XXX/core/vendor/core.js?v=6c495e14-0
Source-Map-Adresse: purify.min.js.map[Weitere Informationen]

Nextcloud

No

Nextcloud 14 will drop OCP\JSON support

Hi @sualko, OCP\JSON is deprecated since version 8.1 and will run into the 3 year deprecation time soon. With the upcoming Nextcloud 14 this will not be available anymore. We highly encourage you to move over from those manual checks in the files in ajax/ to the AppFramework way of writing methods. This then takes care of all the checks that are provided by OCP\JSON out of the box. If you need help with the migration please reach out to us. The AppFramework was introduced in ownCloud 7 and thus there should be no problems with this migration regarding being compatible to both vendors.

The removal PR: nextcloud/server#8943
A PR that shows how to move from the ajax/ files to AppFramework: nextcloud/server#8800

No settings appear in admin panel

I have installed this app (v 0.3.1) on OwnCloud 9.1.x.
When I runn occ app:list it shows cloud_piwik: 0.3.1 in the enabled list.
No settings for the app are appearing in the admin section.
Any suggestions?

piwik app needs updating for owncloud 10

the piwik app needs to be updated to work with owncloud 10.

I have installed a git snapshot, works fine but triggers code integrity warnings because it is unsigned.

Cannot save admin settings

I'm now on Nextcloud 11 and the entries I enter into the admin settings of the piwik addon win't be saved. I disabled all addons and tried three different browsers. Any Idea?

Config values not saved

I fill in the settings at /settings/admin/additional, but when I go to another page and visit it later, the boxes are again empty, and there is no button where I can force the settings to be saved.

piwik.js can't be loaded due to the CSP (Content Security Policy)

Hi, sadly chrome refuses to load the piwik.js, because of a violation of the content security policy.
On mobile devices, like my Android Phone, there is no such problem and Piwik is tracking the visits without a problem. Just desktop browsers don't work (as long as i can see).

Content-Security-Policy problem in ownCloud greater than v.8.1

Hello,
as described here: [https://blog.daveeberhart.com/server%20admin/2015/11/21/owncloud-piwik-content-security-policy], starting from ownCloud 8.1 there is no more the ability to override the CSP site-wide and ownClouud only permits scripts from its own domain to run. Furthermore, inline scripts (either embedded in a page, or created dynamically) are blocked and it is impossible use an external Piwik server.

Can you resolve this issue in your app plugin?
There are interesting articles to start from:
[https://statuscode.ch/2015/04/content-security-policy-and-ownCloud/]
[http://piwik.org/faq/general/faq_20904/]

Thank You in advance

Undefined index: HTTP_HOST, no settings shown

I try to set my settings in the administration panel, but I got this error:

"Undefined index: HTTP_HOST at /var/www/nextcloud/apps/piwik/appinfo/app.php#24"

Still it wont show my settings in the administration panel but "occ config:list | grep piwik" shows:

"piwik": "{"siteId":"1","url":"//mytopleveldom.ain/piwik/","validity":86400}",

Add support to ad-hoc piwik server

Hi

I have a central piwik server and wish to add my owncloud server in it.

In other hand, is a good thing (IMHO) to add a field where you can set if wish http or https. I tried to use "http://my_internal_piwik_server/piwik" instead of "//my_internal_piwik_server/piwik", but without success.

Anyway, congratulation by your iniciative.

Regards,
Claudio Ferreira

Not able to Save Page-ID and URL

I'm not able to save the Page-ID and URL.
There is no save-button and if I leave the page and come back, the fields are empty again.

Best regards

2 or more owncloud

If I haave 2 or more owncloud with piwik owncloud app, but I just use one piwik server.
What config need to be mondify if want to do in this condition?
I try to insert piwik code to owncloud files like this website(http://www.kiloroot.com/owncloud-piwik-apache-access-log-monitored-self-hosted-enterprise-file-sharing/#comments)
/var/www/owncloud/core/templates/layout.user.php
/var/www/owncloud/core/templates/layout.guest.php
/var/www/owncloud/apps/files_sharing/templates/public.php
But piwik don't receive any data, what's wrong with it

get round csp

Hello.
I'm sorry, I complied instruction, but piwik track don't work.
I install plugin, and switch on it.
my piwik domain is https://mypiwik.ru
my OC(I use 8.2.3 version) domain https://oc.ru

I filed the owncloud admin page:
SIte id - 99
Piwik url - https://oc.ru
Use internal piwik library - disable

I maked a change in /var/www/html/owncloud/.htaccess and add line

RewriteRule ^piwik(.*)$ https://oc.ru$1 [P,L]

in part.

But in firefox firebug console I view

Content Security Policy: Page Setup blocked resource loading in self ("script-src https://oc.ru 'unsafe-eval'").
onsubmit attribute on DIV element

and

SyntaxError: expected expression, got '<'

in piwik.js

Help me please

Support Matomo 'ProtectSiteID' plugin

When I input the hashed site ID, and not a number format like it expects, it tells me "please input in the right format" or similar message. I don't want to do this, nor can I, as that's not the format Matomo expects. It means that I would break every other website using the hashed version. I've disabled this plugin for now.

array_flip errors usind nc 12.0.5

As soon as I install the plug in massive errors about:

{PHP} array_flip(): Can only flip STRING and INTEGER values! at /var/www/html/owncloud/lib/public/AppFramework/Http/EmptyContentSecurityPolicy.php#343

will be logged. I use PHP 7.1
Deactivate the app will not help. I Must complete remove it.

statistic shows wrong visitor country

Hi,

I got your plugin set up successfully but I'm wondering that although I visit a page from Germany I see in my statistics that the user (myself) is coming from Sweden with an IP-address 46.252.0.0.
Do you know why?

Thanks
joejoe2016

Can't save preferences

Hello,
I'm using owncloud_piwik 0.2.0 with Owncloud 9.1.5 and I don't have any way to save the preferences:
capture d ecran 2017-05-29 a 14 30 48

does not work with nc 12

Hello, the app doesn't work properly since NC 12.0 and I can't configure it after a new installation. Are we still working on it? Thank you for your answer

Query external domain via HTTP instead HTTPS

Hello,
I'm not sure where configure this but in my installation the external domain is query via HTTPS.
I'd like the query is sent via HTTP because I'm not the owner of the external domain and the server as an invalid SSL certificate there is not automatically accepted by the browsers making the requests.

Thank you

can't save admin settings

Hi!

Using your app in Nextcloud 10, but unfortunately, I can't save settings in the admin.
I tried with enter, tab, changing fields, no luck.

do you have any idea?

Thanks!

Pierre

Cant save datas admin page

I'm now on Nextcloud 11.0.1 and the entries I enter into the admin settings of the piwik addon win't be saved. I disabled all addons and tried three different browsers. Any Idea?

oC 9.13 and Piwik 3.0 - no data

I downloaded your app (V 0.1.0) and configured site id and url as described - but after hours no data will be shown in the dashboard!
Do you have some hints for me for fixing this?

app not working in owncloud 9.1.6

Hi,
we have installed your app in an owncloud 9.1.6 server and piwik in another one.
From owncloud admin we get "piwik tracking" section and we fill it with piwik server information:
Sire ID: 1
Piwik url: //piwik.mm.nn (we have tried http://piwik.mm.nn as well)
We have also add "ProxyPass /piwik/ http://piwikct.upc.edu/" in owncloud's apache VirtualHost
At piwik server, we have created a site id 1 for owncloud.

The thing is that nothing is tracked. No trace is shown of piwik at owncloud logs, apache logs.
It seems like piwik is disablet, but it isn't.
What else can I try? Have I missed something?

Fix for installation: 'No app name specified'

Hello,

Great app!! Started using Piwik right away.
But when I try to install your app, it throws an error: No app name specified.

Since line 3 in your info.xml contains

<id>piwik</id>

and the official ownCloud documentation states here that the id must be the same as the folder name, you should point out on your readme that users should rename their folder to apps/piwik.

But thanks anyway, great app!!

No file tracking log after upgrading from v 0.3.2 to v 0.4.0

Expected behavior

Browsing Nextcloud all actions are logged by matomo

Actual behavior

Browsing Nextcloud no action about file tracking is logged by matomo (only dir, app, users and settings).

Steps to reproduce the behavior

Upgrade from cloud_piwik 0.3.2 to 0.4.0

Environment

  • App version: 0.4.0
  • **Nextcloud version:**13.0.2
  • Browser vendor and version: Google Chrome Versione 65.0.3325.181, Firefox 59.02
  • Any browser plugins enabled?
  • Is your Matomo installation working as expected? Yes

Logs

Javascript

No error in console

Nextcloud

No error log in Nextcloud

Workaround

Backed to version 0.3.2

Content Security Policy

Hey!

I am not sure if this really is an issue but I still wanted to ask.
I have installed owncloud and activated your app to track whats going on with piwik. I am using self signed certificates on piwik and owncloud as well. I have already been tracked once in piwik so I thought, this works all fine. But today I checked the console of firefox and saw two securitie errors:

Content Security Policy: Die Einstellungen der Seite haben das Laden einer Ressource auf self blockiert ("script-src https://oc.domain.de 'unsafe-eval'").

Content Security Policy: Die Einstellungen der Seite haben das Laden einer Ressource auf http://piwik.domain.de/piwik.js blockiert ("script-src https://oc.domain.de 'unsafe-eval'").

I am not sure if you speak german. If not, let me know I you need me to translate it.

To ensure the use of https in owncloud, I edited the .htaccess file in the root directorie of owncloud.
In piwik, I currently do not have a redirect from http to https because of a web-cronjob that is not working with https (not sure how to change this...)

Could it be possible to add the piwik domain to the trusted domains with a function like on the following site from LukasReschke?
https://statuscode.ch/2015/04/content-security-policy-and-ownCloud/

Maybe this could be useful: https://doc.owncloud.org/server/8.1/developer_manual/app/controllers.html?highlight=csp#modifying-the-content-securicy-policy

Best regards
Georg

Configuration with 2 different domains

Hi,

Suppose that my nextcloud is on [email protected] and my piwik on monitor.domain.en

How should i configure my piwik section on nextloud ?
ID is the site ID given by piwik ?
The URL is cloud URL or Piwik URL ?

Thanks for helping

StrangeMonkey

OC9.1.3 an error occured activating the app

When I try to activate the app in OC9.1.3., I get the error notice "an error occured activating the app" and the following error shows up in the OC log:

Exception: {"Exception":"TypeError","Message":"Argument 1 passed to OC\App\DependencyAnalyzer::analyze() must be of the type array, null given, called in /owncloud/lib/private/legacy/app.php on line 1345","Code":0,"Trace":"#0 /owncloud/lib/private/legacy/app.php(1345): OC\App\DependencyAnalyzer->analyze(NULL)\n#1 /owncloud/lib/private/legacy/app.php(337): OC_App::checkAppDependencies(Object(OC\AllConfig), Object(OC\L10N\L10N), NULL)\n#2 /owncloud/settings/ajax/enableapp.php(34): OC_App::enable('piwik', NULL)\n#3 /owncloud/lib/private/Route/Route.php(154) : runtime-created function(1): require_once('/...')\n#4 [internal function]: __lambda_func()\n#5 /owncloud/lib/private/Route/Router.php(280): call_user_func('\x00lambda_12616', Array)\n#6 /owncloud/lib/base.php(891): OC\Route\Router->match('/settings/ajax/...')\n#7 /owncloud/index.php(54): OC::handleRequest()\n#8 {main}","File":"/owncloud/lib/private/App/DependencyAnalyzer.php","Line":53}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.