how to add code for open web analytics?
Posted: Sat Dec 26, 2020 9:57 am
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();
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();