Is there such a thing as an activity report in OC?

Ask all your questions regarding OC 5.x Please read the Support Forum Rules
Forum rules
Version 5 is not supported anymore! Only security issues are fixed. Please upgrade your ownCloud.
Before you post; make sure you are using at least PHP Version 5.3.x - Also read Support Forum - Read this before posting

Re: Is there such a thing as an activity report in OC?

Postby v1ru5 » Fri Aug 22, 2014 5:38 pm

bigworm wrote:In the config.php file there is a section for Custom CSP policy. I changed that to
Code: Select all
'custom_csp_policy' => 'default-src \'self\'; script-src \'self\' http://mypiwiksite.com \'unsafe-inline\' \'unsafe-eval\'; style-src \'self\' \'unsafe-inline\'; frame-src *; img-src *; font-src \'self\' data:; media-src *',

--> for config.php

desport wrote:Hi,

This solution works for browser access but not for OC client sync. I've tried to add the PHP Piwik API code in remote.php but nothing is send to the piwik server.


Code: Select all
require_once "PiwikTracker.php";
PiwikTracker::$URL = 'https://pwik.mydomain.com/;
$piwikTracker = new PiwikTracker( $idSite = 2);
$piwikTracker->doTrackPageView('Synchro client webdav');

-->for PiwikTracker.php (info)
But not required and wouldn't work, see the post after:


bigworm wrote:I haven't tried this and imagine it wouldn't work becuase the client would not parse the javascript. I would be interested in a solution though. As well as a way to track users of the iOS and android apps.

desport wrote:This solution works for browser access but not for OC client sync. I've tried to add the PHP Piwik API code in remote.php but nothing is send to the piwik server.


I was trying to make a point about your situation...

Right now, I think, you have to edit the "config.php" to match your needs (on your own install, piwik directory...).

I guess all your needs are in this topic, just adapt the code for you :]

@++
The quieter you become…
the more you are able to hear.

d4t4l0v3 <3
User avatar
v1ru5
Newbie
 
Posts: 4
Joined: Sat May 24, 2014 5:03 pm
Location: Look to your left -->
ownCloud version: 7.0.1
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.x.x

Re: Is there such a thing as an activity report in OC?

Postby __oBiE » Sun Aug 24, 2014 5:38 pm

bigworm wrote:In the config.php file there is a section for Custom CSP policy. I changed that to
Code: Select all
'custom_csp_policy' => 'default-src \'self\'; script-src \'self\' http://mypiwiksite.com \'unsafe-inline\' \'unsafe-eval\'; style-src \'self\' \'unsafe-inline\'; frame-src *; img-src *; font-src \'self\' data:; media-src *',


Hi,
I don't understand what I've to do. Can I copy this code 1:1?

Thanks
__oBiE
Newbie
 
Posts: 5
Joined: Fri Aug 22, 2014 11:25 am
ownCloud version: 7.0.1
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.x.x

Previous

Return to ownCloud Community Edition 5.x

Who is online

Users browsing this forum: No registered users and 9 guests