Browse code

Since Oxid strips all whitespaces in head scripts, we have to append our own block to base.tpl

Benjamin Roth authored on08/04/2019 11:40:30
Showing1 changed files
... ...
@@ -53,7 +53,7 @@ $aModule = array(
53 53
 //		'es_article_nutritionfacts.tpl'    => 'esales/es_analytics/views/admin/tpl/es_article_nutritionfacts.tpl',
54 54
 	),
55 55
     'blocks' => array(
56
-        array('template' => 'layout/base.tpl', 'block' => 'head_css', 'file' => 'views/blocks/es_analytics_code_head_css.tpl'),
56
+        array('template' => 'layout/base.tpl', 'block' => 'es_analytics_code', 'file' => 'views/blocks/es_analytics_code_head_css.tpl'),
57 57
     ),
58 58
     'events'       => array(
59 59
         'onActivate'   => 'es_analytics_events::onActivate',
Browse code

Add google ads conversion label to settings

Benjamin Roth authored on26/03/2019 18:04:38
Showing1 changed files
... ...
@@ -62,6 +62,7 @@ $aModule = array(
62 62
     'settings'    => array(
63 63
         array('group' => 'main', 'name' => 'sOxEsAnalyticsId', 'type' => 'str', 'value' => ''),
64 64
         array('group' => 'main', 'name' => 'sOxEsAdsId', 'type' => 'str', 'value' => ''),
65
+        array('group' => 'main', 'name' => 'sOxEsAdsConvLabel', 'type' => 'str', 'value' => ''),
65 66
         array('group' => 'esUninstall', 'name' => 'blOxEsAnalyticsSweep', 'type' => 'bool', 'value' => 'false'),
66 67
     )
67 68
 );
Browse code

Use universal website tag and include google ads

Benjamin Roth authored on26/03/2019 17:37:55
Showing1 changed files
... ...
@@ -61,6 +61,7 @@ $aModule = array(
61 61
     ),
62 62
     'settings'    => array(
63 63
         array('group' => 'main', 'name' => 'sOxEsAnalyticsId', 'type' => 'str', 'value' => ''),
64
+        array('group' => 'main', 'name' => 'sOxEsAdsId', 'type' => 'str', 'value' => ''),
64 65
         array('group' => 'esUninstall', 'name' => 'blOxEsAnalyticsSweep', 'type' => 'bool', 'value' => 'false'),
65 66
     )
66 67
 );
Browse code

Initial commit

Benjamin Roth authored on31/08/2015 14:53:33
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,66 @@
1
+<?php
2
+/**
3
+ * This file is part of OXID eSales PayPal module.
4
+ *
5
+ * OXID eSales PayPal module is free software: you can redistribute it and/or modify
6
+ * it under the terms of the GNU General Public License as published by
7
+ * the Free Software Foundation, either version 3 of the License, or
8
+ * (at your option) any later version.
9
+ *
10
+ * OXID eSales PayPal module is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
+ * GNU General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU General Public License
16
+ * along with OXID eSales PayPal module.  If not, see <http://www.gnu.org/licenses/>.
17
+ *
18
+ * @link      http://www.oxid-esales.com
19
+ * @copyright (C) OXID eSales AG 2003-2015
20
+ */
21
+
22
+/**
23
+ * Metadata version
24
+ */
25
+$sMetadataVersion = '1.2';
26
+
27
+/**
28
+ * Module information
29
+ */
30
+$aModule = array(
31
+    'id'           => 'es_analytics',
32
+    'title'        => array(
33
+		'de' => '<span style="color: #495058; display:inline-block; font-weight: 700;"><span style="-webkit-border-radius: 50%;-moz-border-radius: 50%;border-radius: 50%; background-color: #52aa00; display: inline-block; line-height: 1.2; width: 1.1em; height: 1.2em; padding-right: 0.1em; text-align: right; color: #fff; margin-right: 0.1em;">e</span>Sales <span style="color: #52aa00;">Media</span></span> Google Analytics',
34
+		'en' => '<span style="color: #495058; display:inline-block; font-weight: 700;"><span style="-webkit-border-radius: 50%;-moz-border-radius: 50%;border-radius: 50%; background-color: #52aa00; display: inline-block; line-height: 1.2; width: 1.1em; height: 1.2em; padding-right: 0.1em; text-align: right; color: #fff; margin-right: 0.1em;">e</span>Sales <span style="color: #52aa00;">Media</span></span> Google Analytics',
35
+	),
36
+    'description'  => array(
37
+        'de' => 'Fügt Google Analytics zum Shop hinzu, inkl. E-Commerce Tracking',
38
+        'en' => 'Adds Google Analytics to the shop incl. eCommerce Tracking',
39
+    ),
40
+    'thumbnail'    => 'picture.png',
41
+    'version'      => '1.0.0',
42
+    'author'       => 'eSales Media',
43
+    'url'          => 'http://www.esales-media.de',
44
+    'email'        => 'info@esales-media.de',
45
+	'extend'      => array(
46
+//		'oxarticle' => 'esales/es_analytics/models/es_analytics_oxarticle',
47
+	),
48
+	'files'       => array(
49
+//		'es_article_nutritionfacts' => 'esales/es_analytics/controllers/admin/es_article_nutritionfacts.php',
50
+		'es_analytics_events'  => 'esales/es_analytics/core/es_analytics_events.php',
51
+	),
52
+	'templates'   => array(
53
+//		'es_article_nutritionfacts.tpl'    => 'esales/es_analytics/views/admin/tpl/es_article_nutritionfacts.tpl',
54
+	),
55
+    'blocks' => array(
56
+        array('template' => 'layout/base.tpl', 'block' => 'head_css', 'file' => 'views/blocks/es_analytics_code_head_css.tpl'),
57
+    ),
58
+    'events'       => array(
59
+        'onActivate'   => 'es_analytics_events::onActivate',
60
+        'onDeactivate'   => 'es_analytics_events::onDeactivate'
61
+    ),
62
+    'settings'    => array(
63
+        array('group' => 'main', 'name' => 'sOxEsAnalyticsId', 'type' => 'str', 'value' => ''),
64
+        array('group' => 'esUninstall', 'name' => 'blOxEsAnalyticsSweep', 'type' => 'bool', 'value' => 'false'),
65
+    )
66
+);