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>
|
7398 |
florian |
8 |
<li role="presentation"><a href="#tab4" aria-controls="profile" role="tab" data-toggle="tab"><?php echo __('Social Media', 'wpsg'); ?></a></li>
|
|
|
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 |
|
8309 |
karl |
53 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_statistics_piwik_trackingcode', __('Trackingcode einbinden', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_trackingcode')); ?>
|
|
|
54 |
<div id="wpsg_mod_statistik_tracking_layer" style="display:none;">
|
|
|
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('hint' => __('Ohne Protokoll, Beispiel: matomo.domain.de', 'wpsg'))); ?>
|
|
|
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 />
|
|
|
59 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_statistics_piwik_generel', __('Allgemeine Protokollierung', 'wpsg'), $this->get_option('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')); ?>
|
8307 |
karl |
61 |
<br />
|
|
|
62 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_statistics_piwik_productView', __('Produkte tracken', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_productView')); ?>
|
8308 |
karl |
63 |
<?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')); ?>
|
8309 |
karl |
64 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_statistics_piwik_basketdata', __('Warenkorbdaten tracken', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_basketdata')); ?>
|
|
|
65 |
|
|
|
66 |
<br /><br />
|
|
|
67 |
|
|
|
68 |
<strong><?php echo __('Matomo Goals tracken:', 'wpsg'); ?></strong>
|
|
|
69 |
|
8307 |
karl |
70 |
<br />
|
8309 |
karl |
71 |
|
2351 |
robert |
72 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_statistics_piwik_basket', __('Warenkorb tracken', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_basket')); ?>
|
8309 |
karl |
73 |
<div id="wpsg_mod_statistics_piwik_basket_layer" style="display: none;">
|
|
|
74 |
<?php echo wpsg_drawForm_Input('wpsg_mod_statistics_piwik_basket_target', __('Matomo ID', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_basket_target')); ?>
|
|
|
75 |
</div>
|
2351 |
robert |
76 |
<br />
|
|
|
77 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_statistics_piwik_checkout', __('Checkout tracken', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_checkout')); ?>
|
8309 |
karl |
78 |
<div id="wpsg_mod_statistics_piwik_checkout_layer" style="display: none;">
|
|
|
79 |
<?php echo wpsg_drawForm_Input('wpsg_mod_statistics_piwik_checkout_target', __('Matomo ID', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_checkout_target')); ?>
|
|
|
80 |
</div>
|
2351 |
robert |
81 |
<br />
|
|
|
82 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_statistics_piwik_checkout2', __('Checkout2 tracken', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_checkout2')); ?>
|
8309 |
karl |
83 |
<div id="wpsg_mod_statistics_piwik_checkout2_layer" style="display: none;">
|
|
|
84 |
<?php echo wpsg_drawForm_Input('wpsg_mod_statistics_piwik_checkout2_target', __('Matomo ID', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_checkout2_target')); ?>
|
|
|
85 |
</div>
|
2351 |
robert |
86 |
<br />
|
|
|
87 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_statistics_piwik_overview', __('Overview tracken', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_overview')); ?>
|
8309 |
karl |
88 |
<div id="wpsg_mod_statistics_piwik_overview_layer" style="display: none;">
|
|
|
89 |
<?php echo wpsg_drawForm_Input('wpsg_mod_statistics_piwik_overview_target', __('Matomo ID', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_overview_target')); ?>
|
|
|
90 |
</div>
|
2351 |
robert |
91 |
<br />
|
|
|
92 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_statistics_piwik_done', __('Done tracken', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_done')); ?>
|
8309 |
karl |
93 |
<div id="wpsg_mod_statistics_piwik_done_layer" style="display: none;">
|
|
|
94 |
<?php echo wpsg_drawForm_Input('wpsg_mod_statistics_piwik_done_target', __('Matomo ID', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_done_target')); ?>
|
|
|
95 |
</div>
|
|
|
96 |
|
2350 |
robert |
97 |
<div class="wpsg_clearer"></div>
|
|
|
98 |
</div>
|
8309 |
karl |
99 |
|
|
|
100 |
<script>
|
|
|
101 |
|
|
|
102 |
document.addEventListener("DOMContentLoaded", function() {
|
|
|
103 |
|
|
|
104 |
var trackingCheckbox = document.getElementById('wpsg_mod_statistics_piwik_trackingcode');
|
|
|
105 |
var trackingDiv = document.getElementById('wpsg_mod_statistik_tracking_layer');
|
|
|
106 |
|
|
|
107 |
var basketCheckbox = document.getElementById("wpsg_mod_statistics_piwik_basket");
|
|
|
108 |
var basketDiv = document.getElementById("wpsg_mod_statistics_piwik_basket_layer");
|
|
|
109 |
|
|
|
110 |
var checkoutCheckbox = document.getElementById("wpsg_mod_statistics_piwik_checkout");
|
|
|
111 |
var checkoutDiv = document.getElementById("wpsg_mod_statistics_piwik_checkout_layer");
|
|
|
112 |
|
|
|
113 |
var checkout2Checkbox = document.getElementById("wpsg_mod_statistics_piwik_checkout2");
|
|
|
114 |
var checkout2Div = document.getElementById("wpsg_mod_statistics_piwik_checkout2_layer");
|
|
|
115 |
|
|
|
116 |
var overviewCheckbox = document.getElementById("wpsg_mod_statistics_piwik_overview");
|
|
|
117 |
var overviewDiv = document.getElementById("wpsg_mod_statistics_piwik_overview_layer");
|
|
|
118 |
|
|
|
119 |
var doneCheckbox = document.getElementById("wpsg_mod_statistics_piwik_done");
|
|
|
120 |
var doneDiv = document.getElementById("wpsg_mod_statistics_piwik_done_layer");
|
|
|
121 |
|
|
|
122 |
|
|
|
123 |
function toggleDivVisibility(checkbox, div)
|
|
|
124 |
{
|
|
|
125 |
|
|
|
126 |
if (checkbox.checked) div.style.display = "block";
|
|
|
127 |
else div.style.display = "none";
|
|
|
128 |
|
|
|
129 |
}
|
|
|
130 |
|
|
|
131 |
// Event Listener für die Checkboxen
|
|
|
132 |
trackingCheckbox.addEventListener("change", function() {
|
|
|
133 |
toggleDivVisibility(trackingCheckbox, trackingDiv);
|
|
|
134 |
});
|
|
|
135 |
|
|
|
136 |
basketCheckbox.addEventListener("change", function() {
|
|
|
137 |
toggleDivVisibility(basketCheckbox, basketDiv);
|
|
|
138 |
});
|
|
|
139 |
|
|
|
140 |
checkoutCheckbox.addEventListener("change", function() {
|
|
|
141 |
toggleDivVisibility(checkoutCheckbox, checkoutDiv);
|
|
|
142 |
});
|
|
|
143 |
|
|
|
144 |
checkout2Checkbox.addEventListener("change", function() {
|
|
|
145 |
toggleDivVisibility(checkout2Checkbox, checkout2Div);
|
|
|
146 |
});
|
|
|
147 |
|
|
|
148 |
overviewCheckbox.addEventListener("change", function() {
|
|
|
149 |
toggleDivVisibility(overviewCheckbox, overviewDiv);
|
|
|
150 |
});
|
|
|
151 |
|
|
|
152 |
doneCheckbox.addEventListener("change", function() {
|
|
|
153 |
toggleDivVisibility(doneCheckbox, doneDiv);
|
|
|
154 |
});
|
|
|
155 |
|
|
|
156 |
// Überprüfen und Initialisieren des Anfangszustands der Checkboxen
|
|
|
157 |
toggleDivVisibility(trackingCheckbox, trackingDiv);
|
|
|
158 |
toggleDivVisibility(basketCheckbox, basketDiv);
|
|
|
159 |
toggleDivVisibility(checkoutCheckbox, checkoutDiv);
|
|
|
160 |
toggleDivVisibility(checkout2Checkbox, checkout2Div);
|
|
|
161 |
toggleDivVisibility(overviewCheckbox, overviewDiv);
|
|
|
162 |
toggleDivVisibility(doneCheckbox, doneDiv);
|
|
|
163 |
});
|
|
|
164 |
|
|
|
165 |
</script>
|
2350 |
robert |
166 |
|
5832 |
hartmut |
167 |
<div role="tabpanel" class="tab-pane" id="tab3">
|
3233 |
robert |
168 |
<?php
|
|
|
169 |
|
5255 |
thomas |
170 |
echo wpsg_drawForm_Checkbox('wpsg_mod_statistics_google_active', __('Google Analytics aktivieren', 'wpsg'), $this->get_option('wpsg_mod_statistics_google_active'), array('help' => 'wpsg_mod_statistics_google_active'));
|
3233 |
robert |
171 |
|
5255 |
thomas |
172 |
echo wpsg_drawForm_Input('wpsg_mod_statistics_google_tracking_code', __('Tracking-Code', 'wpsg'), $this->get_option('wpsg_mod_statistics_google_tracking_code'), array('help' => 'wpsg_mod_statistics_google_tracking_code'));
|
3233 |
robert |
173 |
|
5255 |
thomas |
174 |
echo wpsg_drawForm_Input('wpsg_mod_statistics_google_domainname', __('Domainname', 'wpsg'), $this->get_option('wpsg_mod_statistics_google_domainname'), array('help' => 'wpsg_mod_statistics_google_domainname'));
|
3233 |
robert |
175 |
|
5255 |
thomas |
176 |
echo wpsg_drawForm_Checkbox('wpsg_mod_statistics_google_anonymise_ip_address', __('IP Adresse anonymisieren', 'wpsg'), $this->get_option('wpsg_mod_statistics_google_anonymise_ip_address'), array('help' => 'wpsg_mod_statistics_google_anonymise_ip_address'));
|
3233 |
robert |
177 |
|
|
|
178 |
//echo wpsg_drawForm_Checkbox('wpsg_mod_statistics_google_enable_first_touch_tracking', __('Enable First Touch Tracking', 'wpsg'), $this->get_option('wpsg_mod_statistics_google_enable_first_touch_tracking'));
|
|
|
179 |
|
5255 |
thomas |
180 |
echo wpsg_drawForm_Checkbox('wpsg_mod_statistics_google_track_page_load_time', __('Ladegeschwindigkeit der Website erfassen', 'wpsg'), $this->get_option('wpsg_mod_statistics_google_track_page_load_time'), array('help' => 'wpsg_mod_statistics_google_track_page_load_time'));
|
7398 |
florian |
181 |
|
|
|
182 |
echo wpsg_drawForm_Checkbox('wpsg_mod_statistics_google_opt_out', __('Google Opt Out', 'wpsg'), $this->get_option('wpsg_mod_statistics_google_opt_out'), array('help' => 'wpsg_mod_statistics_google_opt_out'));
|
|
|
183 |
|
|
|
184 |
echo wpsg_drawForm_Checkbox('wpsg_mod_statistics_google_enhanced_tracking_code', __('Enhanced Tacking Code', 'wpsg'), $this->get_option('wpsg_mod_statistics_google_enhanced_tracking_code'), array('help' => 'wpsg_mod_statistics_google_enhanced_tracking_code'));
|
|
|
185 |
?>
|
3233 |
robert |
186 |
<h3><?php echo __('Zieleinrichtung in Google Analytics', 'wpsg'); ?></h3>
|
|
|
187 |
|
6005 |
hartmut |
188 |
<?php
|
|
|
189 |
echo wpsg_drawForm_Textstart();
|
|
|
190 |
echo wpsg_drawForm_TextEnd(__('Ziel', 'wpsg'), array('noP' => true));
|
|
|
191 |
?>
|
|
|
192 |
|
3233 |
robert |
193 |
<ul>
|
|
|
194 |
<li>
|
2350 |
robert |
195 |
<?php
|
3233 |
robert |
196 |
|
|
|
197 |
echo wpsg_drawForm_Input('wpsg_mod_statistics_google_done', __('Bestellabschluss', 'wpsg'), trim(str_replace(get_site_url(), '', $this->getURL(wpsg_ShopController::URL_BASKET).'?wpsg_done')).'=', array('text' => true));
|
|
|
198 |
|
|
|
199 |
?>
|
|
|
200 |
</li>
|
|
|
201 |
</ul>
|
6005 |
hartmut |
202 |
<?php
|
|
|
203 |
echo wpsg_drawForm_Textstart();
|
|
|
204 |
echo wpsg_drawForm_TextEnd(__('Trichter (optional)', 'wpsg'), array('noP' => true));
|
|
|
205 |
?>
|
|
|
206 |
|
3233 |
robert |
207 |
<ul>
|
|
|
208 |
|
|
|
209 |
<li><?php echo wpsg_drawForm_Input('wpsg_mod_statistics_google_basket', __('Warenkorb', 'wpsg'), trim(str_replace(get_site_url(), '', $this->getURL(wpsg_ShopController::URL_BASKET))), array('text' => true)); ?></li>
|
|
|
210 |
<li><?php echo wpsg_drawForm_Input('wpsg_mod_statistics_google_checkout', __('Adresse', 'wpsg'), trim(str_replace(get_site_url(), '', $this->getURL(wpsg_ShopController::URL_CHECKOUT))).'=', array('text' => true)); ?></li>
|
|
|
211 |
<li><?php echo wpsg_drawForm_Input('wpsg_mod_statistics_google_checkout2', __('Versand', 'wpsg'), trim(str_replace(get_site_url(), '', $this->getURL(wpsg_ShopController::URL_CHECKOUT2))).'=', array('text' => true)); ?></li>
|
|
|
212 |
<li><?php echo wpsg_drawForm_Input('wpsg_mod_statistics_google_overview', __('Warenkorbübersicht', 'wpsg'), trim(str_replace(get_site_url(), '', $this->getURL(wpsg_ShopController::URL_OVERVIEW))).'=', array('text' => true)); ?></li>
|
|
|
213 |
|
|
|
214 |
</ul>
|
|
|
215 |
|
|
|
216 |
<div class="wpsg_clearer"></div>
|
|
|
217 |
</div>
|
7398 |
florian |
218 |
|
|
|
219 |
<div role="tabpanel" id="tab4" class="tab-pane">
|
|
|
220 |
<?php
|
|
|
221 |
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'));
|
|
|
222 |
?>
|
|
|
223 |
<div class="wpsg_clearer"></div>
|
|
|
224 |
</div>
|
|
|
225 |
|
|
|
226 |
<div role="tabpanel" class="tab-pane" id="tab5">
|
3233 |
robert |
227 |
<?php
|
4932 |
thomas |
228 |
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'));
|
|
|
229 |
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'));
|
2350 |
robert |
230 |
|
4932 |
thomas |
231 |
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'));
|
|
|
232 |
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'));
|
2350 |
robert |
233 |
|
4932 |
thomas |
234 |
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'));
|
|
|
235 |
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'));
|
2350 |
robert |
236 |
|
4932 |
thomas |
237 |
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'));
|
6030 |
hartmut |
238 |
|
|
|
239 |
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 |
240 |
?>
|
|
|
241 |
<div class="wpsg_clearer"></div>
|
|
|
242 |
</div>
|
1274 |
robert |
243 |
|
2350 |
robert |
244 |
</div>
|
|
|
245 |
</div>
|
|
|
246 |
|
|
|
247 |
<script type="text/javascript">
|
|
|
248 |
|
|
|
249 |
jQuery(document).ready(function() {
|
|
|
250 |
jQuery('#wpsg_tab').wpsg_tab( {
|
|
|
251 |
'cookiename': 'wpsg_statistics_tab'
|
|
|
252 |
} );
|
|
|
253 |
} );
|
|
|
254 |
|
|
|
255 |
</script>
|