2350 |
robert |
1 |
<br/>
|
1274 |
robert |
2 |
|
5832 |
hartmut |
3 |
<div id="wpsg_tab">
|
|
|
4 |
<ul class="nav nav-tabs" role="tablist">
|
|
|
5 |
<li role="presentation" class="active"><a href="#tab1" aria-controls="home" role="tab" data-toggle="tab"><?php echo __('Auswertung Bestellstatus', 'wpsg'); ?></a></li>
|
8309 |
karl |
6 |
<li role="presentation"><a href="#tab2" aria-controls="profile" role="tab" data-toggle="tab"><?php echo __('Matomo', 'wpsg'); ?></a></li>
|
5832 |
hartmut |
7 |
<li role="presentation"><a href="#tab3" aria-controls="profile" role="tab" data-toggle="tab"><?php echo __('Google', 'wpsg'); ?></a></li>
|
8314 |
karl |
8 |
<!-- <li role="presentation"><a href="#tab4" aria-controls="profile" role="tab" data-toggle="tab"><?php echo __('Social Media', 'wpsg'); ?></a></li> -->
|
7398 |
florian |
9 |
<li role="presentation"><a href="#tab5" aria-controls="messages" role="tab" data-toggle="tab"><?php echo __('Sonstiges', 'wpsg'); ?></a></li>
|
5832 |
hartmut |
10 |
</ul>
|
|
|
11 |
|
|
|
12 |
<div class="tab-content" >
|
2350 |
robert |
13 |
|
5832 |
hartmut |
14 |
<div role="tabpanel" class="tab-pane active" id="tab1" >
|
2352 |
robert |
15 |
|
|
|
16 |
<br/>
|
|
|
17 |
|
2350 |
robert |
18 |
<?php
|
|
|
19 |
|
|
|
20 |
$arSelectedStatus = explode(',', $this->get_option('wpsg_mod_statistics_status'));
|
|
|
21 |
|
|
|
22 |
echo __('Bitte wählen Sie die Zustände aus unter welchen die Bestellung eines Produktes als abgeschlossen Gültigkeit besitzt.', 'wpsg');
|
|
|
23 |
?>
|
|
|
24 |
<br/><br/>
|
|
|
25 |
<?php
|
|
|
26 |
foreach ($this->arStatus as $statusCode => $statusName)
|
|
|
27 |
{
|
|
|
28 |
echo wpsg_drawForm_Checkbox('wpsg_mod_statistics_status['.$statusCode.']', $statusName, (is_array($arSelectedStatus) && is_string($arSelectedStatus[0]) && strlen($arSelectedStatus[0]) && in_array($statusCode, $arSelectedStatus)?true:false));
|
|
|
29 |
}
|
|
|
30 |
?>
|
5830 |
thomas |
31 |
|
|
|
32 |
<?php /* Kartendarstelung START */ ?>
|
|
|
33 |
|
|
|
34 |
<?php echo wpsg_drawForm_Input('wpsg_mod_statistics_googlekey', __('Google API-Key', 'wpsg'), $this->get_option('wpsg_mod_statistics_googlekey'), array('help' => 'wpsg_mod_statistics_googlekey')); ?>
|
|
|
35 |
|
|
|
36 |
<a class="button-primary" id="button-google" target="popup" href="https://console.developers.google.com/flows/enableapi?apiid=maps_backend&keyType=CLIENT_SIDE&reusekey=true" onclick="window.open('', 'popup', 'width=500;height=200,resizable=yes,menubar=yes')">
|
5857 |
thomas |
37 |
<?php echo __('Schlüssel über Ihr Googlekonto anfordern', 'wpsg'); ?>
|
5830 |
thomas |
38 |
</a>
|
|
|
39 |
|
|
|
40 |
<?php /* Kartendarstellung ENDE */?>
|
|
|
41 |
|
2350 |
robert |
42 |
<div class="wpsg_clearer"></div>
|
|
|
43 |
</div>
|
|
|
44 |
|
5832 |
hartmut |
45 |
<div role="tabpanel" class="tab-pane" id="tab2">
|
2352 |
robert |
46 |
|
|
|
47 |
<br/>
|
|
|
48 |
|
8309 |
karl |
49 |
<?php echo __('Ermöglicht die Integration des Trackintools "Matomo".', 'wpsg'); ?>
|
2352 |
robert |
50 |
|
|
|
51 |
<br/><br/>
|
|
|
52 |
|
8310 |
karl |
53 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_statistics_piwik_trackingcode', __('Trackingcode einbinden', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_trackingcode'), array('help' => 'wpsg_mod_statistics_piwik_trackingcode')); ?>
|
8309 |
karl |
54 |
<div id="wpsg_mod_statistik_tracking_layer" style="display:none;">
|
8310 |
karl |
55 |
<?php echo wpsg_drawForm_Input('wpsg_mod_statistics_piwik_url', __('URL zur Matomo Installation', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_url'), array('help' => 'wpsg_mod_statistics_piwik_url'), array('hint' => __('Ohne Protokoll, Beispiel: matomo.domain.de', 'wpsg'))); ?>
|
8309 |
karl |
56 |
<?php echo wpsg_drawForm_Input('wpsg_mod_statistics_piwik_SiteId', __('Matomo Seiten ID', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_SiteId'), array('help' => 'wpsg_mod_statistics_piwik_SiteId')); ?>
|
|
|
57 |
</div>
|
2351 |
robert |
58 |
<br />
|
8310 |
karl |
59 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_statistics_piwik_generel', __('Allgemeine Protokollierung', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_generel'), array('help' => 'wpsg_mod_statistics_piwik_generel')); ?>
|
|
|
60 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_statistics_piwik_ecommerce', __('Käufe (eCommerce) tracken', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_ecommerce'), array('help' => 'wpsg_mod_statistics_piwik_ecommerce')); ?>
|
|
|
61 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_statistics_piwik_productView', __('Produkte tracken', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_productView'), array('help' => 'wpsg_mod_statistics_piwik_productView')); ?>
|
|
|
62 |
<?php if ($this->hasMod('wpsg_mod_produktartikel')) echo wpsg_drawForm_Checkbox('wpsg_mod_statistics_piwik_categoryView', __('Produktkategorien tracken', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_categoryView'), array('help' => 'wpsg_mod_statistics_piwik_categoryView')); ?>
|
|
|
63 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_statistics_piwik_basketdata', __('Warenkorbdaten tracken', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_basketdata'), array('help' => 'wpsg_mod_statistics_piwik_basketdata')); ?>
|
8309 |
karl |
64 |
|
|
|
65 |
<br /><br />
|
|
|
66 |
|
|
|
67 |
<strong><?php echo __('Matomo Goals tracken:', 'wpsg'); ?></strong>
|
|
|
68 |
|
8307 |
karl |
69 |
<br />
|
8309 |
karl |
70 |
|
8310 |
karl |
71 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_statistics_piwik_basket', __('Warenkorb tracken', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_basket'), array('help' => 'wpsg_mod_statistics_piwik_basketdata')); ?>
|
8309 |
karl |
72 |
<div id="wpsg_mod_statistics_piwik_basket_layer" style="display: none;">
|
8314 |
karl |
73 |
<?php echo wpsg_drawForm_Input('wpsg_mod_statistics_piwik_basket_target', __('Matomo ID', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_basket_target')); ?>
|
8309 |
karl |
74 |
</div>
|
2351 |
robert |
75 |
<br />
|
|
|
76 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_statistics_piwik_checkout', __('Checkout tracken', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_checkout')); ?>
|
8309 |
karl |
77 |
<div id="wpsg_mod_statistics_piwik_checkout_layer" style="display: none;">
|
8314 |
karl |
78 |
<?php echo wpsg_drawForm_Input('wpsg_mod_statistics_piwik_checkout_target', __('Matomo ID', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_checkout_target')); ?>
|
8309 |
karl |
79 |
</div>
|
2351 |
robert |
80 |
<br />
|
|
|
81 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_statistics_piwik_checkout2', __('Checkout2 tracken', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_checkout2')); ?>
|
8309 |
karl |
82 |
<div id="wpsg_mod_statistics_piwik_checkout2_layer" style="display: none;">
|
8314 |
karl |
83 |
<?php echo wpsg_drawForm_Input('wpsg_mod_statistics_piwik_checkout2_target', __('Matomo ID', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_checkout2_target')); ?>
|
8309 |
karl |
84 |
</div>
|
2351 |
robert |
85 |
<br />
|
|
|
86 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_statistics_piwik_overview', __('Overview tracken', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_overview')); ?>
|
8309 |
karl |
87 |
<div id="wpsg_mod_statistics_piwik_overview_layer" style="display: none;">
|
8314 |
karl |
88 |
<?php echo wpsg_drawForm_Input('wpsg_mod_statistics_piwik_overview_target', __('Matomo ID', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_overview_target')); ?>
|
8309 |
karl |
89 |
</div>
|
2351 |
robert |
90 |
<br />
|
|
|
91 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_statistics_piwik_done', __('Done tracken', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_done')); ?>
|
8309 |
karl |
92 |
<div id="wpsg_mod_statistics_piwik_done_layer" style="display: none;">
|
8314 |
karl |
93 |
<?php echo wpsg_drawForm_Input('wpsg_mod_statistics_piwik_done_target', __('Matomo ID', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_done_target')); ?>
|
8309 |
karl |
94 |
</div>
|
|
|
95 |
|
2350 |
robert |
96 |
<div class="wpsg_clearer"></div>
|
|
|
97 |
</div>
|
8309 |
karl |
98 |
|
|
|
99 |
<script>
|
|
|
100 |
|
|
|
101 |
document.addEventListener("DOMContentLoaded", function() {
|
|
|
102 |
|
|
|
103 |
var trackingCheckbox = document.getElementById('wpsg_mod_statistics_piwik_trackingcode');
|
|
|
104 |
var trackingDiv = document.getElementById('wpsg_mod_statistik_tracking_layer');
|
|
|
105 |
|
|
|
106 |
var basketCheckbox = document.getElementById("wpsg_mod_statistics_piwik_basket");
|
|
|
107 |
var basketDiv = document.getElementById("wpsg_mod_statistics_piwik_basket_layer");
|
|
|
108 |
|
|
|
109 |
var checkoutCheckbox = document.getElementById("wpsg_mod_statistics_piwik_checkout");
|
|
|
110 |
var checkoutDiv = document.getElementById("wpsg_mod_statistics_piwik_checkout_layer");
|
|
|
111 |
|
|
|
112 |
var checkout2Checkbox = document.getElementById("wpsg_mod_statistics_piwik_checkout2");
|
|
|
113 |
var checkout2Div = document.getElementById("wpsg_mod_statistics_piwik_checkout2_layer");
|
|
|
114 |
|
|
|
115 |
var overviewCheckbox = document.getElementById("wpsg_mod_statistics_piwik_overview");
|
|
|
116 |
var overviewDiv = document.getElementById("wpsg_mod_statistics_piwik_overview_layer");
|
|
|
117 |
|
|
|
118 |
var doneCheckbox = document.getElementById("wpsg_mod_statistics_piwik_done");
|
|
|
119 |
var doneDiv = document.getElementById("wpsg_mod_statistics_piwik_done_layer");
|
|
|
120 |
|
|
|
121 |
|
|
|
122 |
function toggleDivVisibility(checkbox, div)
|
|
|
123 |
{
|
|
|
124 |
|
|
|
125 |
if (checkbox.checked) div.style.display = "block";
|
|
|
126 |
else div.style.display = "none";
|
|
|
127 |
|
|
|
128 |
}
|
|
|
129 |
|
|
|
130 |
// Event Listener für die Checkboxen
|
|
|
131 |
trackingCheckbox.addEventListener("change", function() {
|
|
|
132 |
toggleDivVisibility(trackingCheckbox, trackingDiv);
|
|
|
133 |
});
|
|
|
134 |
|
|
|
135 |
basketCheckbox.addEventListener("change", function() {
|
|
|
136 |
toggleDivVisibility(basketCheckbox, basketDiv);
|
|
|
137 |
});
|
|
|
138 |
|
|
|
139 |
checkoutCheckbox.addEventListener("change", function() {
|
|
|
140 |
toggleDivVisibility(checkoutCheckbox, checkoutDiv);
|
|
|
141 |
});
|
|
|
142 |
|
|
|
143 |
checkout2Checkbox.addEventListener("change", function() {
|
|
|
144 |
toggleDivVisibility(checkout2Checkbox, checkout2Div);
|
|
|
145 |
});
|
|
|
146 |
|
|
|
147 |
overviewCheckbox.addEventListener("change", function() {
|
|
|
148 |
toggleDivVisibility(overviewCheckbox, overviewDiv);
|
|
|
149 |
});
|
|
|
150 |
|
|
|
151 |
doneCheckbox.addEventListener("change", function() {
|
|
|
152 |
toggleDivVisibility(doneCheckbox, doneDiv);
|
|
|
153 |
});
|
|
|
154 |
|
|
|
155 |
// Überprüfen und Initialisieren des Anfangszustands der Checkboxen
|
|
|
156 |
toggleDivVisibility(trackingCheckbox, trackingDiv);
|
|
|
157 |
toggleDivVisibility(basketCheckbox, basketDiv);
|
|
|
158 |
toggleDivVisibility(checkoutCheckbox, checkoutDiv);
|
|
|
159 |
toggleDivVisibility(checkout2Checkbox, checkout2Div);
|
|
|
160 |
toggleDivVisibility(overviewCheckbox, overviewDiv);
|
|
|
161 |
toggleDivVisibility(doneCheckbox, doneDiv);
|
|
|
162 |
});
|
|
|
163 |
|
|
|
164 |
</script>
|
2350 |
robert |
165 |
|
5832 |
hartmut |
166 |
<div role="tabpanel" class="tab-pane" id="tab3">
|
3233 |
robert |
167 |
|
8314 |
karl |
168 |
<br/>
|
3233 |
robert |
169 |
|
8314 |
karl |
170 |
<?php echo __('Ermöglicht die Integration von "Google Analytics 4".', 'wpsg'); ?>
|
|
|
171 |
|
|
|
172 |
<br/><br/>
|
7398 |
florian |
173 |
|
8314 |
karl |
174 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_statistics_google_active', __('Trackingcode einbinden', 'wpsg'), $this->get_option('wpsg_mod_statistics_google_active'), array('help' => 'wpsg_mod_statistics_google_active')); ?>
|
|
|
175 |
<div id="wpsg_mod_statistik_google_tracking_layer" style="display:none;">
|
|
|
176 |
<?php echo wpsg_drawForm_Input('wpsg_mod_statistics_google_tracking_code', __('Google Tag ID', 'wpsg'), $this->get_option('wpsg_mod_statistics_google_tracking_code'), array('help' => 'wpsg_mod_statistics_google_tracking_code')); ?>
|
|
|
177 |
</div>
|
|
|
178 |
<br />
|
7398 |
florian |
179 |
|
8314 |
karl |
180 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_statistics_google_ecommerce', __('Käufe (eCommerce) tracken', 'wpsg'), $this->get_option('wpsg_mod_statistics_google_ecommerce'), array('help' => 'wpsg_mod_statistics_google_ecommerce')); ?>
|
6005 |
hartmut |
181 |
|
3233 |
robert |
182 |
<div class="wpsg_clearer"></div>
|
8314 |
karl |
183 |
|
3233 |
robert |
184 |
</div>
|
8314 |
karl |
185 |
|
|
|
186 |
<script>
|
7398 |
florian |
187 |
|
8314 |
karl |
188 |
document.addEventListener("DOMContentLoaded", function() {
|
|
|
189 |
|
|
|
190 |
var GoogleTrackingCheckbox = document.getElementById('wpsg_mod_statistics_google_active');
|
|
|
191 |
var GoogleTrackingDiv = document.getElementById('wpsg_mod_statistik_google_tracking_layer');
|
|
|
192 |
|
|
|
193 |
function toggleGoogleDivVisibility(checkbox, div)
|
|
|
194 |
{
|
|
|
195 |
|
|
|
196 |
if (checkbox.checked) div.style.display = "block";
|
|
|
197 |
else div.style.display = "none";
|
|
|
198 |
|
|
|
199 |
}
|
|
|
200 |
|
|
|
201 |
// Event Listener für die Checkboxen
|
|
|
202 |
GoogleTrackingCheckbox.addEventListener("change", function() {
|
|
|
203 |
toggleGoogleDivVisibility(GoogleTrackingCheckbox, GoogleTrackingDiv);
|
|
|
204 |
});
|
|
|
205 |
|
|
|
206 |
// Überprüfen und Initialisieren des Anfangszustands der Checkboxen
|
|
|
207 |
toggleGoogleDivVisibility(GoogleTrackingCheckbox, GoogleTrackingDiv);
|
|
|
208 |
|
|
|
209 |
});
|
|
|
210 |
|
|
|
211 |
</script>
|
|
|
212 |
|
|
|
213 |
<!-- <div role="tabpanel" id="tab4" class="tab-pane">
|
|
|
214 |
<?php // echo wpsg_drawForm_input('wpsg_mod_statistics_socialmedia_fb_px', __('Facebook Pixel', 'wpsg'), $this->get_option('wpsg_mod_statistics_socialmedia_fb_px'), array('help' => 'wpsg_mod_statistics_socialmedia_fb_px')); ?>
|
7398 |
florian |
215 |
<div class="wpsg_clearer"></div>
|
8314 |
karl |
216 |
</div> -->
|
7398 |
florian |
217 |
|
|
|
218 |
<div role="tabpanel" class="tab-pane" id="tab5">
|
8314 |
karl |
219 |
<?php echo wpsg_drawForm_Input('wpsg_mod_statistics_line_chart_width', __('Liniendiagramm (Breite in px)', 'wpsg'), $this->get_option('wpsg_mod_statistics_line_chart_width'), array('help' => 'wpsg_mod_statistics_line_chart_width')); ?>
|
|
|
220 |
<?php echo wpsg_drawForm_Input('wpsg_mod_statistics_line_chart_height', __('Liniendiagramm (Hoehe in px)', 'wpsg'), $this->get_option('wpsg_mod_statistics_line_chart_height'), array('help' => 'wpsg_mod_statistics_line_chart_height')); ?>
|
|
|
221 |
<?php echo wpsg_drawForm_Input('wpsg_mod_statistics_pie_chart_width', __('Kuchendiagramm (Breite in px)', 'wpsg'), $this->get_option('wpsg_mod_statistics_pie_chart_width'), array('help' => 'wpsg_mod_statistics_pie_chart_width')); ?>
|
|
|
222 |
<?php echo wpsg_drawForm_Input('wpsg_mod_statistics_pie_chart_height', __('Kuchendiagramm (Höhe in px)', 'wpsg'), $this->get_option('wpsg_mod_statistics_pie_chart_height'), array('help' => 'wpsg_mod_statistics_pie_chart_height')); ?>
|
|
|
223 |
<?php echo wpsg_drawForm_Input('wpsg_mod_statistics_bar_chart_width', __('Balkendiagramm (Breite in px)', 'wpsg'), $this->get_option('wpsg_mod_statistics_bar_chart_width'), array('help' => 'wpsg_mod_statistics_bar_chart_width')); ?>
|
|
|
224 |
<?php echo wpsg_drawForm_Input('wpsg_mod_statistics_bar_chart_height', __('Balkendiagramm (Höhe in px)', 'wpsg'), $this->get_option('wpsg_mod_statistics_bar_chart_height'), array('help' => 'wpsg_mod_statistics_bar_chart_height')); ?>
|
|
|
225 |
<?php echo wpsg_drawForm_Input('wpsg_mod_statistics_topproductcount', __('Anzeige Top-Produkte', 'wpsg'), $this->get_option('wpsg_mod_statistics_topproductcount'), array('help' => 'wpsg_mod_statistics_topproductcount')); ?>
|
|
|
226 |
<?php echo wpsg_drawForm_Input('wpsg_mod_statistics_productinterval', __('Intervall-Zeitraum für Produktstatistik', 'wpsg'), $this->get_option('wpsg_mod_statistics_productinterval'), array('help' => 'wpsg_mod_statistics_productinterval')); ?>
|
2350 |
robert |
227 |
<div class="wpsg_clearer"></div>
|
|
|
228 |
</div>
|
1274 |
robert |
229 |
|
2350 |
robert |
230 |
</div>
|
|
|
231 |
</div>
|
|
|
232 |
|
|
|
233 |
<script type="text/javascript">
|
|
|
234 |
|
|
|
235 |
jQuery(document).ready(function() {
|
|
|
236 |
jQuery('#wpsg_tab').wpsg_tab( {
|
|
|
237 |
'cookiename': 'wpsg_statistics_tab'
|
|
|
238 |
} );
|
|
|
239 |
} );
|
|
|
240 |
|
|
|
241 |
</script>
|