|
maxious
|
1 |
<div class="owa_reportSectionContent" style="width:auto;">
|
|
|
2 |
<div class="owa_reportSectionHeader">Site Metrics</div>
|
|
|
3 |
|
|
|
4 |
<div id="trend-chart" style="height:125px;"></div><BR>
|
|
|
5 |
<div id="trend-metrics" style="width:auto;"></div>
|
|
|
6 |
|
|
|
7 |
</div>
|
|
|
8 |
<div class="clear"></div>
|
|
|
9 |
<table style="padding:0px;width:auto;">
|
|
|
10 |
<TR>
|
|
|
11 |
<TD style="width:50%" valign="top">
|
|
|
12 |
|
|
|
13 |
<div class="owa_reportSectionContent">
|
|
|
14 |
<div class="owa_reportSectionHeader">Top Content</div>
|
|
|
15 |
|
|
|
16 |
<div id="top-pages" style="min-width:350px"></div>
|
|
|
17 |
<div class="owa_moreLinks">
|
|
|
18 |
<a href="<?php echo $this->makeLink(array('do' => 'base.reportPages'), true);?>">View Full Report »</a>
|
|
|
19 |
</div>
|
|
|
20 |
</div>
|
|
|
21 |
|
|
|
22 |
<div class="owa_reportSectionContent">
|
|
|
23 |
<div class="owa_reportSectionHeader">Visitor Types</div>
|
|
|
24 |
<div id="visitor-types" style="width:250px;margin-top:-10px;"></div>
|
|
|
25 |
</div>
|
|
|
26 |
|
|
|
27 |
<div class="owa_reportSectionContent">
|
|
|
28 |
<div class="section_header">Latest Visits</div>
|
|
|
29 |
<?php include('report_latest_visits.tpl')?>
|
|
|
30 |
</div>
|
|
|
31 |
|
|
|
32 |
</TD>
|
|
|
33 |
<TD style="width:50%" valign="top">
|
|
|
34 |
|
|
|
35 |
<?php if ($actions->getDataRows()):?>
|
|
|
36 |
<div class="owa_reportSectionContent" style="min-width:200px; height:;">
|
|
|
37 |
<div class="section_header">Actions</div>
|
|
|
38 |
|
|
|
39 |
<div id="actions-trend" style="width:200px;height:;"></div>
|
|
|
40 |
|
|
|
41 |
|
|
|
42 |
<table cellpadding="0" cellspacing="0" width="100%">
|
|
|
43 |
<tr>
|
|
|
44 |
<td valign="top">
|
|
|
45 |
<?php foreach($actions->getDataRows() as $k => $row):?>
|
|
|
46 |
<div class="owa_metricInfobox" style="width:150px;">
|
|
|
47 |
<p class="owa_metricInfoboxLabel"><?php echo $row['actionName']['value'];?></p>
|
|
|
48 |
<p class="owa_metricInfoboxLargeNumber"><?php echo $row['actions']['value'];?></p>
|
|
|
49 |
</div>
|
|
|
50 |
<?php endforeach;?>
|
|
|
51 |
</td>
|
|
|
52 |
</tr>
|
|
|
53 |
</table>
|
|
|
54 |
|
|
|
55 |
|
|
|
56 |
<div class="owa_genericHorizontalList owa_moreLinks">
|
|
|
57 |
<UL>
|
|
|
58 |
<LI>
|
|
|
59 |
<a href="<?php echo $this->makeLink(array('do' => 'base.reportActionTracking'), true);?>">View Full Report »</a>
|
|
|
60 |
</LI>
|
|
|
61 |
</UL>
|
|
|
62 |
</div>
|
|
|
63 |
<div class="clear"></div>
|
|
|
64 |
</div>
|
|
|
65 |
<?php endif;?>
|
|
|
66 |
|
|
|
67 |
<div class="owa_reportSectionContent">
|
|
|
68 |
<div class="owa_reportSectionHeader">Traffic Sources</div>
|
|
|
69 |
<div id="visitor-mediums" style="width:250px;margin-top:-10px;"></div>
|
|
|
70 |
</div>
|
|
|
71 |
|
|
|
72 |
<div class="owa_reportSectionContent">
|
|
|
73 |
<div class="owa_reportSectionHeader">Top Referrers</div>
|
|
|
74 |
|
|
|
75 |
<div id="top-referers" style="min-width:350px"></div>
|
|
|
76 |
<div class="owa_moreLinks">
|
|
|
77 |
<a href="<?php echo $this->makeLink(array('do' => 'base.reportReferringSites'), true);?>">View Full Report »</a>
|
|
|
78 |
</div>
|
|
|
79 |
</div>
|
|
|
80 |
|
|
|
81 |
<div class="owa_reportSectionContent">
|
|
|
82 |
<div class="section_header">OWA News</div>
|
|
|
83 |
<?php echo $this->getWidget('base.widgetOwaNews','',false);?>
|
|
|
84 |
</div>
|
|
|
85 |
</TD>
|
|
|
86 |
</TR>
|
|
|
87 |
</table>
|
|
|
88 |
|
|
|
89 |
<script>
|
|
|
90 |
|
|
|
91 |
var aurl = '<?php
|
|
|
92 |
|
|
|
93 |
echo $this->makeApiLink(array(
|
|
|
94 |
'do' => 'getResultSet',
|
|
|
95 |
'metrics' => $metrics,
|
|
|
96 |
'dimensions' => 'date',
|
|
|
97 |
'sort' => 'date',
|
|
|
98 |
'format' => 'json'
|
|
|
99 |
), true);
|
|
|
100 |
?>';
|
|
|
101 |
|
|
|
102 |
var rsh = new OWA.resultSetExplorer('site-trend');
|
|
|
103 |
|
|
|
104 |
rsh.asyncQueue.push(['makeAreaChart', [{x: 'date', y: 'visits'}], 'trend-chart']);
|
|
|
105 |
rsh.options.metricBoxes.width = '150px';
|
|
|
106 |
rsh.asyncQueue.push(['makeMetricBoxes' , 'trend-metrics']);
|
|
|
107 |
|
|
|
108 |
rsh.load(aurl);
|
|
|
109 |
|
|
|
110 |
(function() {
|
|
|
111 |
var tcurl = '<?php echo $this->makeApiLink(array('do' => 'getResultSet',
|
|
|
112 |
'metrics' => 'pageViews',
|
|
|
113 |
'dimensions' => 'pageTitle,pageUrl',
|
|
|
114 |
'sort' => 'pageViews-',
|
|
|
115 |
'format' => 'json',
|
|
|
116 |
'page' => 1,
|
|
|
117 |
'resultsPerPage' => 10
|
|
|
118 |
),true);?>';
|
|
|
119 |
|
|
|
120 |
OWA.items.tc = new OWA.resultSetExplorer('top-pages');
|
|
|
121 |
OWA.items.tc.options.grid.showRowNumbers = false;
|
|
|
122 |
OWA.items.tc.addLinkToColumn('pageTitle', '<?php echo $this->makeLink(array('do' => 'base.reportDocument', 'pageUrl' => '%s'), true);?>', ['pageUrl']);
|
|
|
123 |
OWA.items.tc.options.grid.excludeColumns = ['pageUrl'];
|
|
|
124 |
OWA.items.tc.asyncQueue.push(['refreshGrid']);
|
|
|
125 |
OWA.items.tc.load(tcurl);
|
|
|
126 |
})();
|
|
|
127 |
|
|
|
128 |
(function() {
|
|
|
129 |
var traurl = '<?php echo $this->makeApiLink(array('do' => 'getResultSet',
|
|
|
130 |
'metrics' => 'visits',
|
|
|
131 |
'dimensions' => 'referralPageTitle,referralPageUrl',
|
|
|
132 |
'sort' => 'visits-',
|
|
|
133 |
'format' => 'json',
|
|
|
134 |
'resultsPerPage' => 10
|
|
|
135 |
),true);?>';
|
|
|
136 |
|
|
|
137 |
|
|
|
138 |
OWA.items.topreferers = new OWA.resultSetExplorer('top-referers');
|
|
|
139 |
OWA.items.topreferers.options.grid.showRowNumbers = false;
|
|
|
140 |
OWA.items.topreferers.addLinkToColumn('referralPageTitle', '<?php echo $this->makeLink(array('do' => 'base.reportReferralDetail', 'referralPageUrl' => '%s'),true);?>', ['referralPageUrl']);
|
|
|
141 |
OWA.items.topreferers.options.grid.excludeColumns = ['referralPageUrl'];
|
|
|
142 |
OWA.items.topreferers.asyncQueue.push(['refreshGrid']);
|
|
|
143 |
OWA.items.topreferers.load(traurl);
|
|
|
144 |
})();
|
|
|
145 |
|
|
|
146 |
(function() {
|
|
|
147 |
var aturl = '<?php echo $this->makeApiLink(array(
|
|
|
148 |
'do' => 'getResultSet',
|
|
|
149 |
'metrics' => 'actions',
|
|
|
150 |
'dimensions' => 'date',
|
|
|
151 |
'sort' => 'date',
|
|
|
152 |
'format' => 'json',
|
|
|
153 |
'period' => 'last_seven_days',
|
|
|
154 |
'constraints' => urlencode($this->substituteValue('siteId==%s,','siteId'))
|
|
|
155 |
));?>';
|
|
|
156 |
|
|
|
157 |
at = new OWA.resultSetExplorer('actions-trend');
|
|
|
158 |
at.options.areaChart.series.push({x:'date',y:'actions'});
|
|
|
159 |
at.setView('areaChart');
|
|
|
160 |
//at.load(aturl);
|
|
|
161 |
})();
|
|
|
162 |
|
|
|
163 |
(function() {
|
|
|
164 |
var vmurl = '<?php echo $this->makeApiLink(array('do' => 'getResultSet',
|
|
|
165 |
'metrics' => 'visits',
|
|
|
166 |
'dimensions' => 'medium',
|
|
|
167 |
'sort' => 'visits-',
|
|
|
168 |
'format' => 'json',
|
|
|
169 |
'constraints' => urlencode($this->substituteValue('siteId==%s,','siteId'))),true);?>';
|
|
|
170 |
|
|
|
171 |
var vm = new OWA.resultSetExplorer('visitor-mediums');
|
|
|
172 |
vm.options.pieChart.metric = 'visits';
|
|
|
173 |
vm.options.pieChart.dimension = 'medium';
|
|
|
174 |
vm.setView('pie');
|
|
|
175 |
vm.load(vmurl);
|
|
|
176 |
})();
|
|
|
177 |
|
|
|
178 |
(function() {
|
|
|
179 |
var aurl = '<?php echo $this->makeApiLink(array('do' => 'getResultSet',
|
|
|
180 |
'metrics' => 'repeatVisitors,newVisitors',
|
|
|
181 |
'dimensions' => '',
|
|
|
182 |
'sort' => 'visits',
|
|
|
183 |
'format' => 'json',
|
|
|
184 |
'constraints' => urlencode($this->substituteValue('siteId==%s,','siteId'))),true);?>';
|
|
|
185 |
|
|
|
186 |
OWA.items.vt = new OWA.resultSetExplorer('visitor-types');
|
|
|
187 |
OWA.items.vt.options.pieChart.metrics = ['repeatVisitors', 'newVisitors'];
|
|
|
188 |
OWA.items.vt.asyncQueue.push(['makePieChart']);
|
|
|
189 |
OWA.items.vt.load(aurl);
|
|
|
190 |
})();
|
|
|
191 |
|
|
|
192 |
</script>
|
|
|
193 |
|
|
|
194 |
<?php require_once('js_report_templates.php');?> |