Subversion Repositories wpShopGermany4

Rev

Rev 8308 | Rev 8310 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8308 Rev 8309
Line 1... Line 1...
1
<br/>
1
<br/>
2
 
2
 
3
<div id="wpsg_tab">	
3
<div id="wpsg_tab">	
4
    <ul class="nav nav-tabs" role="tablist">
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>
5
        <li role="presentation" class="active"><a href="#tab1" aria-controls="home" role="tab" data-toggle="tab"><?php echo __('Auswertung Bestellstatus', 'wpsg'); ?></a></li>
6
        <li role="presentation"><a href="#tab2" aria-controls="profile" role="tab" data-toggle="tab"><?php echo __('Piwik', 'wpsg'); ?></a></li>
6
        <li role="presentation"><a href="#tab2" aria-controls="profile" role="tab" data-toggle="tab"><?php echo __('Matomo', 'wpsg'); ?></a></li>
7
        <li role="presentation"><a href="#tab3" aria-controls="profile" role="tab" data-toggle="tab"><?php echo __('Google', 'wpsg'); ?></a></li>
7
        <li role="presentation"><a href="#tab3" aria-controls="profile" role="tab" data-toggle="tab"><?php echo __('Google', 'wpsg'); ?></a></li>
8
        <li role="presentation"><a href="#tab4" aria-controls="profile" role="tab" data-toggle="tab"><?php echo __('Social Media', 'wpsg'); ?></a></li>
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>
9
        <li role="presentation"><a href="#tab5" aria-controls="messages" role="tab" data-toggle="tab"><?php echo __('Sonstiges', 'wpsg'); ?></a></li>
10
    </ul>
10
    </ul>
11
 
11
 
Line 44... Line 44...
44
		
44
		
45
		<div role="tabpanel" class="tab-pane" id="tab2">
45
		<div role="tabpanel" class="tab-pane" id="tab2">
46
			
46
			
47
			<br/>
47
			<br/>
48
			
48
			
49
			<?php echo __('Ermöglicht die Integration des Trackintools "Piwik".', 'wpsg'); ?>
49
			<?php echo __('Ermöglicht die Integration des Trackintools "Matomo".', 'wpsg'); ?>
50
			
50
			
51
			<br/><br/>
51
			<br/><br/>
52
		
52
		
-
 
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;">
53
			<?php echo wpsg_drawForm_Input('wpsg_mod_statistics_piwik_url', __('URL zur Piwik Installation', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_url'), array('hint' => __('Ohne Protokoll, Beispiel: piwik.domain.de', 'wpsg'))); ?>
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>
54
			<br />
58
			<br />
55
			<?php echo wpsg_drawForm_Checkbox('wpsg_mod_statistics_piwik_generel', __('Allgemeine Protokollierung', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_generel')); ?>
59
			<?php echo wpsg_drawForm_Checkbox('wpsg_mod_statistics_piwik_generel', __('Allgemeine Protokollierung', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_generel')); ?>
56
			<?php echo wpsg_drawForm_Input('wpsg_mod_statistics_piwik_SiteId', __('Piwik Seiten ID', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_SiteId'), array('help' => 'wpsg_mod_statistics_piwik_SiteId')); ?>
-
 
57
			<?php echo wpsg_drawForm_Checkbox('wpsg_mod_statistics_piwik_ecommerce', __('Käufe (eCommerce) tracken', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_ecommerce')); ?>
60
			<?php echo wpsg_drawForm_Checkbox('wpsg_mod_statistics_piwik_ecommerce', __('Käufe (eCommerce) tracken', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_ecommerce')); ?>
58
			<br />
61
			<br />
59
			<?php echo wpsg_drawForm_Checkbox('wpsg_mod_statistics_piwik_productView', __('Produkte tracken', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_productView')); ?>
62
			<?php echo wpsg_drawForm_Checkbox('wpsg_mod_statistics_piwik_productView', __('Produkte tracken', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_productView')); ?>
60
			<?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')); ?>
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')); ?>
-
 
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
			
61
			<br />
70
			<br />
-
 
71
 
62
			<?php echo wpsg_drawForm_Checkbox('wpsg_mod_statistics_piwik_basket', __('Warenkorb tracken', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_basket')); ?>
72
			<?php echo wpsg_drawForm_Checkbox('wpsg_mod_statistics_piwik_basket', __('Warenkorb tracken', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_basket')); ?>
-
 
73
			<div id="wpsg_mod_statistics_piwik_basket_layer" style="display: none;">
63
			<?php echo wpsg_drawForm_Input('wpsg_mod_statistics_piwik_basket_target', __('Ziel ID', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_basket_target')); ?>
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>
64
			<br />
76
			<br />
65
			<?php echo wpsg_drawForm_Checkbox('wpsg_mod_statistics_piwik_checkout', __('Checkout tracken', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_checkout')); ?>
77
			<?php echo wpsg_drawForm_Checkbox('wpsg_mod_statistics_piwik_checkout', __('Checkout tracken', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_checkout')); ?>
-
 
78
			<div id="wpsg_mod_statistics_piwik_checkout_layer" style="display: none;">
66
			<?php echo wpsg_drawForm_Input('wpsg_mod_statistics_piwik_checkout_target', __('Ziel ID', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_checkout_target')); ?>
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>
67
			<br />
81
			<br />
68
			<?php echo wpsg_drawForm_Checkbox('wpsg_mod_statistics_piwik_checkout2', __('Checkout2 tracken', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_checkout2')); ?>
82
			<?php echo wpsg_drawForm_Checkbox('wpsg_mod_statistics_piwik_checkout2', __('Checkout2 tracken', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_checkout2')); ?>
-
 
83
			<div id="wpsg_mod_statistics_piwik_checkout2_layer" style="display: none;">
69
			<?php echo wpsg_drawForm_Input('wpsg_mod_statistics_piwik_checkout2_target', __('Ziel ID', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_checkout2_target')); ?>
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>
70
			<br />
86
			<br />
71
			<?php echo wpsg_drawForm_Checkbox('wpsg_mod_statistics_piwik_overview', __('Overview tracken', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_overview')); ?>
87
			<?php echo wpsg_drawForm_Checkbox('wpsg_mod_statistics_piwik_overview', __('Overview tracken', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_overview')); ?>
-
 
88
			<div id="wpsg_mod_statistics_piwik_overview_layer" style="display: none;">
72
			<?php echo wpsg_drawForm_Input('wpsg_mod_statistics_piwik_overview_target', __('Ziel ID', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_overview_target')); ?>
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>
73
			<br />
91
			<br />
74
			<?php echo wpsg_drawForm_Checkbox('wpsg_mod_statistics_piwik_done', __('Done tracken', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_done')); ?>
92
			<?php echo wpsg_drawForm_Checkbox('wpsg_mod_statistics_piwik_done', __('Done tracken', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_done')); ?>
-
 
93
			<div id="wpsg_mod_statistics_piwik_done_layer" style="display: none;">
75
			<?php echo wpsg_drawForm_Input('wpsg_mod_statistics_piwik_done_target', __('Ziel ID', 'wpsg'), $this->get_option('wpsg_mod_statistics_piwik_done_target')); ?>
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
 
76
			<div class="wpsg_clearer"></div>
97
			<div class="wpsg_clearer"></div>
77
		</div>
98
		</div>
-
 
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>
78
		
166
		
79
		<div role="tabpanel" class="tab-pane" id="tab3">
167
		<div role="tabpanel" class="tab-pane" id="tab3">
80
		<?php 	
168
		<?php 	
81
 
169
 
82
			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'));
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'));