Page 1 of 1

how to add code for open web analytics?

Posted: Sat Dec 26, 2020 9:57 am
by heynen
Dear all,

I am trying to install "Open Web analytics" for my page.

1) The code below needs to be included on my php pages. How do I manage that?
2) Do I have to add something in that code individually for every page (page title)? Or do I place the exact same code on every page and the server does the rest?

Thanks!

Malte

require_once('/var/www/vhosts/hostingxxx.php');

$owa = new owa_php();
// Set the site id you want to track
$owa->setSiteId('xxxx');
// Uncomment the next line to set your page title
//$owa->setPageTitle('somepagetitle');
// Set other page properties
//$owa->setProperty('foo', 'bar');
$owa->trackPageView();

Re: how to add code for open web analytics?

Posted: Sat Dec 26, 2020 10:50 am
by Pablo
You can add custom code via Page HTML or an HTML object.
https://www.wysiwygwebbuilder.com/add_html.html

If the code must be included on all pages then you can add it on a master page.

Note that there is no support on programming.

Re: how to add code for open web analytics?

Posted: Sat Dec 26, 2020 11:01 am
by BaconFries
Not sure how this is related to the software and it's use but a quick Google reads that it is required to be installed / inserted on your server
https://www.google.com/search?client=ms ... 4duLkAI9:0

Maybe you will find more at the following on how to use.
http://www.openwebanalytics.com