|
|
1 |
<div class="owa_reportSectionContent">
|
|
|
2 |
<div id="trend-chart" style="height:125px;width:auto;"></div>
|
|
|
3 |
<div class="owa_reportHeadline" id="content-headline"></div>
|
|
|
4 |
<div id="trend-metrics"></div>
|
|
|
5 |
</div>
|
|
|
6 |
|
|
|
7 |
<div class="clear"></div>
|
|
|
8 |
<BR>
|
|
|
9 |
|
|
|
10 |
<table style="width:100%;margin-top:;">
|
|
|
11 |
<tr>
|
|
|
12 |
<td valign="top" style="width:50%;">
|
|
|
13 |
|
|
|
14 |
<div class="owa_reportSectionContent">
|
|
|
15 |
|
|
|
16 |
|
|
|
17 |
<div class="owa_reportSectionContent" style="min-width:350px;">
|
|
|
18 |
<div class="owa_reportSectionHeader">Top Pages</div>
|
|
|
19 |
|
|
|
20 |
<div id="top-pages"></div>
|
|
|
21 |
<div class="owa_genericHorizonalList owa_moreLinks">
|
|
|
22 |
<UL>
|
|
|
23 |
<LI>
|
|
|
24 |
<a href="<?php echo $this->makeLink(array('do' => 'base.reportPages'), true);?>">View Full Report »</a>
|
|
|
25 |
</LI>
|
|
|
26 |
</UL>
|
|
|
27 |
</div>
|
|
|
28 |
</div>
|
|
|
29 |
|
|
|
30 |
</td>
|
|
|
31 |
|
|
|
32 |
<td valign="top" style="width:50%;">
|
|
|
33 |
<div class="owa_reportSectionHeader">Content Reports</div>
|
|
|
34 |
<div class="relatedReports">
|
|
|
35 |
<UL>
|
|
|
36 |
<LI>
|
|
|
37 |
<a href="<?php echo $this->makeLink(array('do' => 'base.reportDomstreams'));?>">Domstream Recordings</a></span> - See user mouse movement and keypress recordings.
|
|
|
38 |
</LI>
|
|
|
39 |
<LI>
|
|
|
40 |
<a href="<?php echo $this->makeLink(array('do' => 'base.reportActions'));?>">Actions</a></span> - See which actions your user performed.
|
|
|
41 |
</LI>
|
|
|
42 |
<LI>
|
|
|
43 |
<a href="<?php echo $this->makeLink(array('do' => 'base.reportReferringSites'));?>">Entry & Exits</a></span> - See which web pages user entered and exited on.
|
|
|
44 |
</LI>
|
|
|
45 |
<LI>
|
|
|
46 |
<a href="<?php echo $this->makeLink(array('do' => 'base.reportAnchortext'));?>">Feeds</a></span> - See trends for feed subscribers and usage.
|
|
|
47 |
</LI>
|
|
|
48 |
</UL>
|
|
|
49 |
</div>
|
|
|
50 |
</div>
|
|
|
51 |
|
|
|
52 |
<div class="owa_reportSectionContent" style="min-width:350px;">
|
|
|
53 |
<div class="owa_reportSectionHeader">Top Page Types</div>
|
|
|
54 |
<div id="top-pagetypes"></div>
|
|
|
55 |
<div class="owa_genericHorizonalList owa_moreLinks">
|
|
|
56 |
<UL>
|
|
|
57 |
<LI>
|
|
|
58 |
<a href="<?php echo $this->makeLink(array('do' => 'base.reportPageTypes'), true);?>">View Full Report »</a>
|
|
|
59 |
</LI>
|
|
|
60 |
</UL>
|
|
|
61 |
</div>
|
|
|
62 |
</div>
|
|
|
63 |
|
|
|
64 |
</td>
|
|
|
65 |
</tr>
|
|
|
66 |
</table>
|
|
|
67 |
|
|
|
68 |
<script>
|
|
|
69 |
//OWA.setSetting('debug', true);
|
|
|
70 |
|
|
|
71 |
var aurl = '<?php echo $this->makeApiLink(array('do' => 'getResultSet',
|
|
|
72 |
'metrics' => 'visits,pageViews,bounceRate',
|
|
|
73 |
'dimensions' => 'date',
|
|
|
74 |
'sort' => 'date',
|
|
|
75 |
'format' => 'json',
|
|
|
76 |
'constraints' => urlencode($this->substituteValue('siteId==%s,','siteId'))), true);?>';
|
|
|
77 |
|
|
|
78 |
OWA.items.rsh = new OWA.resultSetExplorer('trend-chart');
|
|
|
79 |
OWA.items.rsh.options.metricBoxes.width = '125px';
|
|
|
80 |
OWA.items.rsh.asyncQueue.push(['makeAreaChart', [{x:'date',y:'pageViews'}]]);
|
|
|
81 |
OWA.items.rsh.asyncQueue.push(['makeMetricBoxes', 'trend-metrics']);
|
|
|
82 |
OWA.items.rsh.asyncQueue.push(['renderTemplate','#content-headline-template', {data: OWA.items.rsh}, 'replace', 'content-headline']);
|
|
|
83 |
OWA.items.rsh.load(aurl);
|
|
|
84 |
|
|
|
85 |
|
|
|
86 |
|
|
|
87 |
var vmurl = '<?php echo $this->makeApiLink(array('do' => 'getResultSet',
|
|
|
88 |
'metrics' => 'visits',
|
|
|
89 |
'dimensions' => 'medium',
|
|
|
90 |
'sort' => 'visits-',
|
|
|
91 |
'format' => 'json',
|
|
|
92 |
'constraints' => urlencode($this->substituteValue('siteId==%s,','siteId'))),true);?>';
|
|
|
93 |
|
|
|
94 |
OWA.items.vm = new OWA.resultSetExplorer('traffic-sources');
|
|
|
95 |
OWA.items.vm.options.pieChart.metric = 'visits';
|
|
|
96 |
OWA.items.vm.options.pieChart.dimension = 'medium';
|
|
|
97 |
OWA.items.vm.options.chartWidth = '300px';
|
|
|
98 |
OWA.items.vm.asyncQueue.push(['makePieChart']);
|
|
|
99 |
OWA.items.vm.load(vmurl);
|
|
|
100 |
|
|
|
101 |
|
|
|
102 |
var toppagesurl = '<?php echo $this->makeApiLink(array('do' => 'getResultSet',
|
|
|
103 |
'metrics' => 'visits',
|
|
|
104 |
'dimensions' => 'pageTitle,pageUrl',
|
|
|
105 |
'sort' => 'visits-',
|
|
|
106 |
'format' => 'json',
|
|
|
107 |
'resultsPerPage' => 25,
|
|
|
108 |
'constraints' => urlencode($this->substituteValue('siteId==%s,','siteId'))), true);?>';
|
|
|
109 |
|
|
|
110 |
OWA.items.toppages = new OWA.resultSetExplorer('top-pages');
|
|
|
111 |
OWA.items.toppages.addLinkToColumn('pageTitle', '<?php echo $this->makeLink(array('do' => 'base.reportDocument', 'pageUrl' => '%s'),true);?>', ['pageUrl']);
|
|
|
112 |
OWA.items.toppages.options.grid.excludeColumns = ['pageUrl'];
|
|
|
113 |
OWA.items.toppages.asyncQueue.push(['refreshGrid']);
|
|
|
114 |
OWA.items.toppages.load(toppagesurl);
|
|
|
115 |
|
|
|
116 |
var toppagetypesurl = '<?php echo $this->makeApiLink(array('do' => 'getResultSet',
|
|
|
117 |
'metrics' => 'visits',
|
|
|
118 |
'dimensions' => 'pageType',
|
|
|
119 |
'sort' => 'visits-',
|
|
|
120 |
'format' => 'json',
|
|
|
121 |
'constraints' => urlencode($this->substituteValue('siteId==%s,','siteId'))), true);?>';
|
|
|
122 |
|
|
|
123 |
OWA.items.toppagetypes = new OWA.resultSetExplorer('top-pagetypes');
|
|
|
124 |
OWA.items.toppagetypes.asyncQueue.push(['refreshGrid']);
|
|
|
125 |
OWA.items.toppagetypes.addLinkToColumn('pageType', '<?php echo $this->makeLink(array('do' => 'base.reportPageTypeDetail', 'pageType' => '%s'),true);?>', ['pageType']);
|
|
|
126 |
OWA.items.toppagetypes.load(toppagetypesurl);
|
|
|
127 |
|
|
|
128 |
|
|
|
129 |
</script>
|
|
|
130 |
|
|
|
131 |
<?php require_once('js_report_templates.php');?>
|
|
|
132 |
|
|
|
133 |
<script type="text/x-jqote-template" id="content-headline-template">
|
|
|
134 |
<![CDATA[
|
|
|
135 |
There were <*= this.data.resultSet.aggregates.pageViews.value *> <* if (this.data.resultSet.aggregates.pageViews.value > 1) {this.label = 'page views';} else {this.label = 'page view';} *> <*= this.label *> of all pages.
|
|
|
136 |
]]>
|
|
|
137 |
</script>
|
|
|
138 |
|
|
|
139 |
|