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
ownCloud 5.x reached end of life and is officially unsupported. For details see Wiki page.

Please upgrade your ownCloud.
User avatar
v1ru5
Newbie
Posts: 8
Joined: Sat May 24, 2014 5:03 pm
ownCloud version: 8.2.1
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.x.x
Location: Look to your left -->
Contact:

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

__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

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

simonsellen
Newbie
Posts: 1
Joined: Wed May 20, 2015 12:12 am
ownCloud version: 7.0.5
Webserver: Apache
Database: MySQL
OS: Linux

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

Postby simonsellen » Wed May 20, 2015 12:19 am

[quote="bigworm"]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 *',


[quote="bigworm"]Then inserted the piwik supplied tracking code on the pages I mentioned previously. Piwik also gives you the capability to define and track custom variables. So I followed that and then figured out from the owncloud php code that

Code: Select all

"<?php  p(trim($_['user_displayname']) != '' ? $_['user_displayname'] : $_['user_uid']) ?>"

would return the logged in user.[/code]

Hi,
I am using OC7.0.5 and I am trying to set the above up but for some reason it is not working, it looks like it does not get the user and user id from the PHP code. Having said that, I tried adding the custom security code but it wouldn't work with that either. Does anyone know how to resolve this?

Many Thanks,
Simon


Return to “ownCloud Community Edition 5.x and older”

Who is online

Users browsing this forum: Google [Bot] and 4 guests