|
|
1 |
<fieldset>
|
|
|
2 |
<legend>Javascript</legend>
|
|
|
3 |
<div style="padding:10px;">
|
|
|
4 |
<P>To track page views using Javascript, cut and paste this tracking tag into the HTML of your web pages. Learn more about how to use OWA's <a href="<?php echo $this->makeWikiLink('Javascript_Invocation');?>">Javascript tracking API</a> to track your web site and pages.</P>
|
|
|
5 |
|
|
|
6 |
<textarea cols="110" rows="18">
|
|
|
7 |
|
|
|
8 |
|
|
|
9 |
<?php include('js_log_tag.tpl');?>
|
|
|
10 |
|
|
|
11 |
</textarea>
|
|
|
12 |
</div>
|
|
|
13 |
</fieldset>
|
|
|
14 |
|
|
|
15 |
<fieldset>
|
|
|
16 |
<legend>PHP</legend>
|
|
|
17 |
<div style="padding:10px;">
|
|
|
18 |
|
|
|
19 |
<P>To track page views using PHP, cut and paste the following code to your PHP script/application. Learn more about how to use OWA's <a href="<?php echo $this->makeWikiLink('PHP_Invocation');?>">PHP Tracking API</a> to track your web site and pages.</P>
|
|
|
20 |
|
|
|
21 |
<textarea cols="75" rows="12">
|
|
|
22 |
|
|
|
23 |
require_once('<?php echo OWA_BASE_CLASSES_DIR;?>owa_php.php');
|
|
|
24 |
|
|
|
25 |
$owa = new owa_php();
|
|
|
26 |
// Set the site id you want to track
|
|
|
27 |
$owa->setSiteId('<?php echo $site_id;?>');
|
|
|
28 |
// Uncomment the next line to set your page title
|
|
|
29 |
//$owa->setPageTitle('somepagetitle');
|
|
|
30 |
// Set other page properties
|
|
|
31 |
//$owa->setProperty('foo', 'bar');
|
|
|
32 |
$owa->trackPageView();
|
|
|
33 |
</textarea>
|
|
|
34 |
|
|
|
35 |
</div>
|
|
|
36 |
</fieldset>
|
|
|
37 |
|
|
|
38 |
|