Navegg - Version 0.1.5

Version Notes

Works with Magento Community Edition 1.3.3.0 or later.

Download this release

Release Info

Developer Navegg
Extension Navegg
Version 0.1.5
Comparing to
See all releases


Code changes from version 0.1.3 to 0.1.5

app/code/community/Buscape/Navegg/Helper/Data.php DELETED
@@ -1,31 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to suporte.developer@buscape-inc.com so we can send you a copy immediately.
14
- *
15
- * @category Buscape
16
- * @package Buscape_Navegg
17
- * @copyright Copyright (c) 2010 Buscapé Company (http://www.buscapecompany.com)
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- */
20
-
21
- class Buscape_Navegg_Helper_Data extends Mage_Core_Helper_Abstract
22
- {
23
-
24
-
25
- public function isAvailable($store = null)
26
- {
27
- // you must do the call for getConfig and get the informations of account
28
- $accountId = Mage::getStoreConfig(Buscape_Navegg_Model_Config::XML_PATH_ACCOUNT, $store);
29
- return $accountId && Mage::getStoreConfigFlag(Buscape_Navegg_Model_Config::XML_PATH_ACTIVE, $store);
30
- }
31
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Buscape/Navegg/etc/system.xml DELETED
@@ -1,159 +0,0 @@
1
- <?xml version="1.0" ?>
2
- <!--
3
- /**
4
- * Magento
5
- *
6
- * NOTICE OF LICENSE
7
- *
8
- * This source file is subject to the Open Software License (OSL 3.0)
9
- * that is bundled with this package in the file LICENSE.txt.
10
- * It is also available through the world-wide-web at this URL:
11
- * http://opensource.org/licenses/osl-3.0.php
12
- * If you did not receive a copy of the license and are unable to
13
- * obtain it through the world-wide-web, please send an email
14
- * to suporte.developer@buscape-inc.com so we can send you a copy immediately.
15
- *
16
- * @category Buscape
17
- * @package Buscape_Navegg
18
- * @copyright Copyright (c) 2010 Buscapé Company (http://www.buscapecompany.com)
19
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
- */
21
- -->
22
-
23
-
24
- <config>
25
- <tabs>
26
- <navegg translate="label" >
27
- <label>Navegg</label>
28
- <sort_order>100</sort_order>
29
- </navegg>
30
- </tabs>
31
- <sections>
32
- <navegg_options translate="label" module="navegg">
33
- <label>Setup</label>
34
- <tab>navegg</tab>
35
- <sort_order>10</sort_order>
36
- <show_in_default>1</show_in_default>
37
- <show_in_website>1</show_in_website>
38
- <show_in_store>1</show_in_store>
39
-
40
- <groups>
41
- <navegg translate="label">
42
- <label>Navegg</label>
43
- <frontend_type>text</frontend_type>
44
- <sort_order>1</sort_order>
45
- <show_in_default>1</show_in_default>
46
- <show_in_website>1</show_in_website>
47
- <show_in_store>1</show_in_store>
48
- <comment>
49
- <![CDATA[
50
-
51
- <div style="background:#fafafa">
52
-
53
- <img src="http://www.navegg.com/wp-content/themes/navegg/i/logo.png" style="display:block;margin-bottom:10px">
54
-
55
- <div style="float:left;width:49%">
56
-
57
- <h2 style="font-family:Arial;font-size:14px">Know your website&#39;s audience and deliver personalized content and ads, user by user</h2>
58
-
59
- <p style="font-family:Arial;font-size:12px">Based on user behavior in and out of your website, Navegg segments your audience, allowing personalized content and advertising offers. Make your website more attractive and increase clickthrough rates, driving revenue up.</p>
60
-
61
- <p style="font-family:Arial;font-size:12px">Online audience targeting with network intelligence With the Navegg technology, your website&#39;s audience is automatically classified into 9 smart segmentation criteria, such as demographic data, content interest, purchase intent and education. Always from the browsing behavior analysis, completely anonymous – that is, Navegg does not store data that may identify the users, such as e-mails or IPs.</p>
62
-
63
- <p style="font-family:Arial;font-size:12px">Control Panel: Regardless of how specific your website is, audience segmentation can bring great surprises about who accesses your page. To help you in these findings, all information about your visitors can be accessed through the new Navegg Control Panel.</p>
64
-
65
-
66
-
67
- <h2 style="font-family:Arial;font-size:14px;margin-top:40px">Your Navegg ID</h2>
68
-
69
- <p style="font-family:Arial;font-size:12px">Enter the Navegg ID it was send to your e-mail. Navegg&#39;s tag will be inserted on your website and your visitors, targeted.</p>
70
-
71
- <ul style="font-family:Arial;font-size:12px;font-weight:bold;list-style:none">
72
-
73
- <li style="background:url(&#39;http://www.navegg.com/wp-content/themes/navegg/i/ui_wp_nvg.png&#39;) no-repeat 3px -63px;width:200px;margin-bottom:8px;padding:2px 0 2px 22px">
74
- <a href="http://www.navegg.com/en/client-area/documentation/implementing-naveggs-technology/" target="_blank" style="color:#3880ae;text-decoration:none">How does Navegg ID works?</a>
75
- </li>
76
-
77
- <li style="background:url(&#39;http://www.navegg.com/wp-content/themes/navegg/i/ui_wp_nvg.png&#39;) no-repeat left -289px;width:300px;margin-bottom:8px;padding:2px 0 2px 22px">
78
- <a href="http://www.navegg.com/en/start-now/?utm_campaign=assine&utm_medium=naveggcom&utm_source=pluginMagento" target="_blank" style="color:#3880ae;text-decoration:none">Don&#39;t you have a Navegg ID? <span style="color:#60a51b">Sign up now!</span></a>
79
- </li>
80
-
81
- </ul>
82
-
83
- </div>
84
-
85
- <div style="float:right;width:48%">
86
-
87
- <div style="height:215px;background:url(&#39;http://www.navegg.com/wp-content/themes/navegg/i/magento-blocos-links.png&#39;) no-repeat 175px 0">
88
-
89
- <h2 style="font-family:Arial;font-size:14px">Links</h2>
90
-
91
- <ul style="font-family:Arial;font-size:12px;font-weight:bold;list-style:none">
92
-
93
- <li style="background:url(&#39;http://www.navegg.com/wp-content/themes/navegg/i/ui_wp_nvg.png&#39;) no-repeat 1px -17px;width:200px;margin-bottom:8px;padding:2px 0 2px 22px">
94
- <a href="http://www.navegg.com/en/client-area/documentation/" target="_blank" style="color:#3880ae;text-decoration:none">Documentation</a>
95
- </li>
96
-
97
- <li style="background:url(&#39;http://www.navegg.com/wp-content/themes/navegg/i/ui_wp_nvg.png&#39;) no-repeat 3px -63px;width:200px;margin-bottom:8px;padding:2px 0 2px 22px">
98
- <a href="http://www.navegg.com/en/solution/faq/" target="_blank" style="color:#3880ae;text-decoration:none">FAQ</a>
99
- </li>
100
-
101
- <li style="background:url(&#39;http://www.navegg.com/wp-content/themes/navegg/i/ui_wp_nvg.png&#39;) no-repeat 1px -108px;width:200px;margin-bottom:8px;padding:2px 0 2px 22px">
102
- <a href="http://www.navegg.com/en/solution/" target="_blank" style="color:#3880ae;text-decoration:none">Solutions</a>
103
- </li>
104
-
105
- <li style="background:url(&#39;http://www.navegg.com/wp-content/themes/navegg/i/ui_wp_nvg.png&#39;) no-repeat left -153px;width:200px;margin-bottom:8px;padding:2px 0 2px 22px">
106
- <a href="http://www.navegg.com/en/start-now/?utm_campaign=assine&utm_medium=naveggcom&utm_source=pluginMagento" target="_blank" style="color:#3880ae;text-decoration:none">Plans and Pricing</a>
107
- </li>
108
-
109
- <li style="background:url(&#39;http://www.navegg.com/wp-content/themes/navegg/i/ui_wp_nvg.png&#39;) no-repeat left -243px;width:200px;margin-bottom:8px;padding:2px 0 2px 22px">
110
- <a href="http://www.navegg.com/en/about-navegg/contact/" target="_blank" style="color:#3880ae;text-decoration:none">Contact</a>
111
- </li>
112
-
113
- </ul>
114
-
115
- </div>
116
-
117
- <div style="margin-top:40px;height:60px;padding-top:9px;background:url(&#39;http://www.navegg.com/wp-content/themes/navegg/i/magento-painel.png&#39;) no-repeat left top">
118
-
119
- <p style="font-family:Arial;font-size:12px;margin-left:180px">
120
- <a href="http://navegg.com/panel" target="_blank" style="font-weight:bold;color:#60a51b;text-decoration:none">Click here</a> to access your Control Panel and check our reports abour your audience.
121
- </p>
122
-
123
- </div>
124
-
125
- <p style="font-family:Arial;font-size:12px; text-align:right; margin-top:40px;">Developed by <a href="http://www.buscapecompany.com/" target="_blank" style="color:#3880ae;text-decoration:none;font-weight:bold;" >Buscapé Company</a></p>
126
- </div>
127
-
128
- </div>
129
-
130
-
131
- ]]>
132
- </comment>
133
- <fields>
134
- <active translate="label">
135
- <label>Enable</label>
136
- <frontend_type>select</frontend_type>
137
- <source_model>adminhtml/system_config_source_yesno</source_model>
138
- <sort_order>10</sort_order>
139
- <show_in_default>1</show_in_default>
140
- <show_in_website>1</show_in_website>
141
- <show_in_store>1</show_in_store>
142
- </active>
143
- <advertising translate="label">
144
- <label>Navegg ID</label>
145
- <frontend_type>text</frontend_type>
146
- <sort_order>20</sort_order>
147
- <show_in_default>1</show_in_default>
148
- <show_in_website>1</show_in_website>
149
- <show_in_store>1</show_in_store>
150
- <validate>validate-number required-entry</validate>
151
- </advertising>
152
-
153
- </fields>
154
- </navegg>
155
- </groups>
156
-
157
- </navegg_options>
158
- </sections>
159
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/{Buscape/Navegg → Navegg/Analytics}/Block/Page/Body.php RENAMED
@@ -13,12 +13,12 @@
13
  * to suporte.developer@buscape-inc.com so we can send you a copy immediately.
14
  *
15
  * @category Buscape
16
- * @package Buscape_Navegg
17
- * @copyright Copyright (c) 2010 Buscapé Company (http://www.buscapecompany.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
21
- class Buscape_Navegg_Block_Page_Body extends Mage_Core_Block_Text
22
  {
23
  /**
24
  * Render tracking scripts
13
  * to suporte.developer@buscape-inc.com so we can send you a copy immediately.
14
  *
15
  * @category Buscape
16
+ * @package Navegg_Analytics
17
+ * @copyright Copyright (c) 2015 Navegg (http://www.navegg.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
21
+ class Navegg_Analytics_Block_Page_Body extends Mage_Core_Block_Text
22
  {
23
  /**
24
  * Render tracking scripts
app/code/community/{Buscape/Navegg → Navegg/Analytics}/Block/Page/Head.php RENAMED
@@ -13,12 +13,12 @@
13
  * to suporte.developer@buscape-inc.com so we can send you a copy immediately.
14
  *
15
  * @category Buscape
16
- * @package Buscape_Navegg
17
- * @copyright Copyright (c) 2010 Buscapé Company (http://www.buscapecompany.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
21
- class Buscape_Navegg_Block_Page_Head extends Mage_Core_Block_Text
22
  {
23
  /**
24
  * Render tracking scripts
@@ -33,10 +33,10 @@ class Buscape_Navegg_Block_Page_Head extends Mage_Core_Block_Text
33
 
34
  $html = '<!-- Navegg Code Begin -->';
35
 
36
- $html .= '<script id="navegg" type="text/javascript" src="http://navdmp.com/lt.js?'. $this->getNavegg() .'"></script>';
37
-
38
  $html .= '<!-- Navegg Code End -->';
39
 
40
  return $html;
41
  }
42
- }
13
  * to suporte.developer@buscape-inc.com so we can send you a copy immediately.
14
  *
15
  * @category Buscape
16
+ * @package Navegg_Analytics
17
+ * @copyright Copyright (c) 2015 Navegg (http://www.navegg.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
21
+ class Navegg_Analytics_Block_Page_Head extends Mage_Core_Block_Text
22
  {
23
  /**
24
  * Render tracking scripts
33
 
34
  $html = '<!-- Navegg Code Begin -->';
35
 
36
+ $html .= '<script id="navegg" type="text/javascript" src="//tag.navdmp.com/tm'. $this->getNavegg() .'.js"></script>';
37
+
38
  $html .= '<!-- Navegg Code End -->';
39
 
40
  return $html;
41
  }
42
+ }
app/code/community/Navegg/Analytics/Helper/Data.php ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to suporte.developer@buscape-inc.com so we can send you a copy immediately.
14
+ *
15
+ * @category Buscape
16
+ * @package Navegg_Analytics
17
+ * @copyright Copyright (c) 2015 Navegg (http://www.navegg.com)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+
21
+ class Navegg_Analytics_Helper_Data extends Mage_Core_Helper_Abstract
22
+ {
23
+
24
+
25
+ public function isAvailable($store = null)
26
+ {
27
+ // you must do the call for getConfig and get the informations of account
28
+ $accountId = Mage::getStoreConfig(Navegg_Analytics_Model_Config::XML_PATH_ACCOUNT, $store);
29
+ return $accountId && Mage::getStoreConfigFlag(Navegg_Analytics_Model_Config::XML_PATH_ACTIVE, $store);
30
+ }
31
+
32
+ protected function _getHttpsPage($host, $parameter)
33
+ {
34
+ $client = new Varien_Http_Client();
35
+ $client->setUri($host)
36
+ ->setConfig(array('timeout' => 30))
37
+ ->setHeaders('accept-encoding', '')
38
+ ->setParameterGet($parameter)
39
+ ->setMethod(Zend_Http_Client::GET);
40
+ $request = $client->request();
41
+ // Workaround for pseudo chunked messages which are yet too short, so
42
+ // only an exception is is thrown instead of returning raw body
43
+ if (!preg_match("/^([\da-fA-F]+)[^\r\n]*\r\n/sm", $request->getRawBody(), $m))
44
+ return $request->getRawBody();
45
+
46
+ return $request->getBody();
47
+ }
48
+ }
app/code/community/{Buscape/Navegg → Navegg/Analytics}/Model/Config.php RENAMED
@@ -13,20 +13,21 @@
13
  * to suporte.developer@buscape-inc.com so we can send you a copy immediately.
14
  *
15
  * @category Buscape
16
- * @package Buscape_Navegg
17
- * @copyright Copyright (c) 2010 Buscapé Company (http://www.buscapecompany.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
21
- class Buscape_Navegg_Model_Config extends Varien_Object
22
  {
23
- const XML_PATH = 'navegg_options/navegg/';
24
 
25
- const XML_PATH_ACTIVE = 'navegg_options/navegg/active';
26
 
27
- const XML_PATH_ACCOUNT = 'navegg_options/navegg/advertising';
28
 
29
  protected $_config = array();
 
30
 
31
  public function getConfigData($key, $storeId = null)
32
  {
@@ -48,6 +49,7 @@ class Buscape_Navegg_Model_Config extends Varien_Object
48
 
49
  public function getEvent($store = null)
50
  {
 
51
  if (!$this->hasData('navegg_event')) {
52
  $this->setData('navegg_event', $this->getConfigData('event', $store));
53
  }
13
  * to suporte.developer@buscape-inc.com so we can send you a copy immediately.
14
  *
15
  * @category Buscape
16
+ * @package Navegg_Analytics
17
+ * @copyright Copyright (c) 2015 Navegg (http://www.navegg.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
21
+ class Navegg_Analytics_Model_Config extends Varien_Object
22
  {
23
+ const XML_PATH = 'navegg_analytics/navegg/';
24
 
25
+ const XML_PATH_ACTIVE = 'navegg_analytics/navegg/active';
26
 
27
+ const XML_PATH_ACCOUNT = 'navegg_analytics/navegg/advertising';
28
 
29
  protected $_config = array();
30
+
31
 
32
  public function getConfigData($key, $storeId = null)
33
  {
49
 
50
  public function getEvent($store = null)
51
  {
52
+ die(var_dump($this->_config));
53
  if (!$this->hasData('navegg_event')) {
54
  $this->setData('navegg_event', $this->getConfigData('event', $store));
55
  }
app/code/community/{Buscape/Navegg → Navegg/Analytics}/Model/Observer.php RENAMED
@@ -13,19 +13,19 @@
13
  * to suporte.developer@buscape-inc.com so we can send you a copy immediately.
14
  *
15
  * @category Buscape
16
- * @package Buscape_Navegg
17
- * @copyright Copyright (c) 2010 Buscapé Company (http://www.buscapecompany.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
21
- class Buscape_Navegg_Model_Observer
22
  {
23
- const BLOCK_PAGE_HEAD = 'Buscape_Navegg_Block_Page_Head';
24
-
25
- const BLOCK_PAGE_BODY = 'Buscape_Navegg_Block_Page_Body';
26
-
27
  private static $_config;
28
-
29
  private function _getConfig()
30
  {
31
  if(is_null(self::$_config)) {
@@ -33,7 +33,7 @@ class Buscape_Navegg_Model_Observer
33
  }
34
  return self::$_config;
35
  }
36
-
37
  public function setPageHeadNavegg(Varien_Event_Observer $observer)
38
  {
39
  $head = Mage::app()->getFrontController()->getAction()->getLayout()->getBlock('head');
13
  * to suporte.developer@buscape-inc.com so we can send you a copy immediately.
14
  *
15
  * @category Buscape
16
+ * @package Navegg_Analytics
17
+ * @copyright Copyright (c) 2015 Navegg (http://www.navegg.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
21
+ class Navegg_Analytics_Model_Observer
22
  {
23
+ const BLOCK_PAGE_HEAD = 'Navegg_Analytics_Block_Page_Head';
24
+
25
+ const BLOCK_PAGE_BODY = 'Navegg_Analytics_Block_Page_Body';
26
+
27
  private static $_config;
28
+
29
  private function _getConfig()
30
  {
31
  if(is_null(self::$_config)) {
33
  }
34
  return self::$_config;
35
  }
36
+
37
  public function setPageHeadNavegg(Varien_Event_Observer $observer)
38
  {
39
  $head = Mage::app()->getFrontController()->getAction()->getLayout()->getBlock('head');
app/code/community/Navegg/Analytics/controllers/IndexController.php ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Navegg_Analytics_IndexController extends Mage_Core_Controller_Front_Action
4
+ {
5
+
6
+ private static $nvgApiUrl = 'http://cluster.navegg.com/ws/';
7
+ private static $nvgApiKey = 'cfcd208495d565ef66e7dff9f98764da';
8
+
9
+ protected function _getHelper()
10
+ {
11
+ return Mage::helper('navegg');
12
+ }
13
+
14
+ public function getidAction(){
15
+ $params = $this->getRequest()->getParams();
16
+ if (empty($params['email'])) {
17
+ print '{"error":"true"}';
18
+ // Mage::throwException('Error: No parameters specified');
19
+ }
20
+ $url = Navegg_Analytics_IndexController::$nvgApiUrl;
21
+ $url .= '?action=partneruseremail';
22
+ $url .= '&part_key='.Navegg_Analytics_IndexController::$nvgApiKey;
23
+ $url .= '&email='.urlencode($params['email']);
24
+ if (!$data = file_get_contents($url)) {
25
+ print '{"error":"true"}';
26
+ } else {
27
+ print $data;
28
+ }
29
+ }
30
+
31
+ public function newaccAction(){
32
+ $params = $this->getRequest()->getParams();
33
+ if (count($params)<4) {
34
+ print '{"error":"true","message":"parameters"}';
35
+ Mage::throwException('Error: No parameters specified');
36
+ }
37
+ // $postdata = http_build_query(
38
+ // array(
39
+ // 'action' => 'partneraccount',
40
+ // 'usr_name' => $name,
41
+ // 'usr_email' => $email,
42
+ // 'usr_site_name' => $siteName,
43
+ // 'usr_domain' => $siteUrl,
44
+ // 'part_key' => Navegg_Analytics_IndexController::$nvgApiKey
45
+ // )
46
+ // );
47
+
48
+ // $opts = array('http' =>array('method' => 'POST','content' => $postdata));
49
+ // $context = stream_context_create($opts);
50
+ // $content = file_get_contents(Navegg_Analytics_IndexController::$nvgApiUrl, 0, $context);
51
+ $url = Navegg_Analytics_IndexController::$nvgApiUrl;
52
+ $url .= '?action=partneraccount';
53
+ $url .= '&part_key='.Navegg_Analytics_IndexController::$nvgApiKey;
54
+ $url .= '&usr_name='.urlencode($params['usr_name']);
55
+ $url .= '&usr_email='.urlencode($params['usr_email']);
56
+ $url .= '&usr_site_name='.urlencode($params['usr_site_name']);
57
+ $url .= '&usr_domain='.urlencode($params['usr_domain']);
58
+ if (!$data = file_get_contents($url)) {
59
+ print '{"error":"true"}';
60
+ } else {
61
+ print $data;
62
+ }
63
+ }
64
+
65
+ public function checkemailAction()
66
+ {
67
+ try {
68
+ $params = $this->getRequest()->getParams();
69
+ if (empty($params['email'])) {
70
+ Mage::throwException('Error: No parameters specified');
71
+ }
72
+ $response = $this->_getHelper()->checkEmailRequest($params);
73
+ if (empty($response)) {
74
+ Mage::throwException('Error: Connection to moneybookers.com failed');
75
+ }
76
+ $this->getResponse()->setBody($response);
77
+ return;
78
+ } catch (Mage_Core_Exception $e) {
79
+ $response = $e->getMessage();
80
+ } catch (Exception $e) {
81
+ $response = 'Error: System error during request';
82
+ }
83
+ $this->getResponse()->setBody($response);
84
+ }
85
+
86
+ }
app/code/community/{Buscape/Navegg → Navegg/Analytics}/etc/config.xml RENAMED
@@ -14,35 +14,44 @@
14
  * to suporte.developer@buscape-inc.com so we can send you a copy immediately.
15
  *
16
  * @category Buscape
17
- * @package Buscape_Navegg
18
- * @copyright Copyright (c) 2010 Buscapé Company (http://www.buscapecompany.com)
19
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
  */
21
  -->
22
  <config>
23
  <modules>
24
- <Buscape_Navegg>
25
  <version>0.1.0</version>
26
- </Buscape_Navegg>
27
  </modules>
28
  <global>
29
  <models>
30
  <navegg>
31
- <class>Buscape_Navegg_Model</class>
32
  </navegg>
33
  </models>
34
  <blocks>
35
  <navegg>
36
- <class>Buscape_Navegg_Block</class>
37
  </navegg>
38
  </blocks>
39
  <helpers>
40
  <navegg>
41
- <class>Buscape_Navegg_Helper</class>
42
  </navegg>
43
  </helpers>
44
  </global>
45
  <frontend>
 
 
 
 
 
 
 
 
 
46
  <events>
47
  <controller_action_layout_generate_blocks_after>
48
  <observers>
@@ -54,9 +63,25 @@
54
  </controller_action_layout_generate_blocks_after>
55
  </events>
56
  </frontend>
57
-
58
-
 
 
 
 
 
 
 
 
 
59
  <adminhtml>
 
 
 
 
 
 
 
60
  <acl>
61
  <resources>
62
  <admin>
@@ -65,9 +90,9 @@
65
  <children>
66
  <config>
67
  <children>
68
- <navegg_options>
69
- <title>Navegg</title>
70
- </navegg_options>
71
  </children>
72
  </config>
73
  </children>
@@ -77,6 +102,4 @@
77
  </resources>
78
  </acl>
79
  </adminhtml>
80
-
81
-
82
- </config>
14
  * to suporte.developer@buscape-inc.com so we can send you a copy immediately.
15
  *
16
  * @category Buscape
17
+ * @package Navegg_Analytics
18
+ * @copyright Copyright (c) 2015 Navegg (http://www.navegg.com)
19
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
  */
21
  -->
22
  <config>
23
  <modules>
24
+ <Navegg_Analytics>
25
  <version>0.1.0</version>
26
+ </Navegg_Analytics>
27
  </modules>
28
  <global>
29
  <models>
30
  <navegg>
31
+ <class>Navegg_Analytics_Model</class>
32
  </navegg>
33
  </models>
34
  <blocks>
35
  <navegg>
36
+ <class>Navegg_Analytics_Block</class>
37
  </navegg>
38
  </blocks>
39
  <helpers>
40
  <navegg>
41
+ <class>Navegg_Analytics_Helper</class>
42
  </navegg>
43
  </helpers>
44
  </global>
45
  <frontend>
46
+ <routers>
47
+ <navegg>
48
+ <use>standard</use>
49
+ <args>
50
+ <module>Navegg_Analytics</module>
51
+ <frontName>navegg_analytics</frontName>
52
+ </args>
53
+ </navegg>
54
+ </routers>
55
  <events>
56
  <controller_action_layout_generate_blocks_after>
57
  <observers>
63
  </controller_action_layout_generate_blocks_after>
64
  </events>
65
  </frontend>
66
+ <!-- <admin>
67
+ <routers>
68
+ <adminhtml>
69
+ <args>
70
+ <modules>
71
+ <navegg after="Mage_Adminhtml">Navegg_Analytics</navegg>
72
+ </modules>
73
+ </args>
74
+ </adminhtml>
75
+ </routers>
76
+ </admin> -->
77
  <adminhtml>
78
+ <layout>
79
+ <updates>
80
+ <Navegg_Analytics>
81
+ <file>analytics.xml</file>
82
+ </Navegg_Analytics>
83
+ </updates>
84
+ </layout>
85
  <acl>
86
  <resources>
87
  <admin>
90
  <children>
91
  <config>
92
  <children>
93
+ <navegg_analytics>
94
+ <title>Navegg Analytics</title>
95
+ </navegg_analytics>
96
  </children>
97
  </config>
98
  </children>
102
  </resources>
103
  </acl>
104
  </adminhtml>
105
+ </config>
 
 
app/code/community/Navegg/Analytics/etc/system.xml ADDED
@@ -0,0 +1,200 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" ?>
2
+ <!--
3
+ /**
4
+ * Magento
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * that is bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/osl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to suporte.developer@buscape-inc.com so we can send you a copy immediately.
15
+ *
16
+ * @category Buscape
17
+ * @package Navegg_Analytics
18
+ * @copyright Copyright (c) 2015 Navegg (http://www.navegg.com)
19
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
+ */
21
+ -->
22
+
23
+
24
+ <config>
25
+ <tabs>
26
+ <navegg translate="label" >
27
+ <label>Navegg</label>
28
+ <sort_order>100</sort_order>
29
+ </navegg>
30
+ </tabs>
31
+ <sections>
32
+ <navegg_analytics translate="label" module="navegg">
33
+ <label>Setup</label>
34
+ <tab>navegg</tab>
35
+ <sort_order>10</sort_order>
36
+ <show_in_default>1</show_in_default>
37
+ <show_in_website>1</show_in_website>
38
+ <show_in_store>1</show_in_store>
39
+
40
+ <groups>
41
+ <navegg translate="label">
42
+ <label>Navegg Analytics</label>
43
+ <frontend_type>text</frontend_type>
44
+ <sort_order>1</sort_order>
45
+ <show_in_default>1</show_in_default>
46
+ <show_in_website>1</show_in_website>
47
+ <show_in_store>1</show_in_store>
48
+ <comment>
49
+ <![CDATA[
50
+ <div class="wrap">
51
+ <h2>Navegg Analytics</h2>
52
+ <div id="dashboard-widgets-wrap">
53
+ <div id="dashboard-widgets" class="metabox-holder">
54
+ <div style="width:49%; float: left;">
55
+ <div class="postbox-container" style="width:99%;">
56
+ <div id="normal-sortables" class="meta-box-sortables ui-sortable">
57
+ <div id="dashboard_right_now" class="postbox ">
58
+ <h3><span>About Navegg Analytics</span></h3>
59
+ <div class="inside">
60
+ <img src="/media/navegg/analytics/navegg-analytics.png" style="width: 300px; height: 50px; margin: 0 auto 20px auto;" />
61
+ <h4><strong>Identify the 8 different groups your visitors belong to and customize your website and content.</strong></h4><br />
62
+ <p><strong>Navegg Analytics</strong> is <strong>Navegg’s</strong> solution for companies that wish to monitor the website audience’s consumption behavior and profile, to welcome each user with personalized banners and to improve marketing strategies.</p>
63
+ <p><strong></strong> Learn more about the 8 internet users’ profile and find out which one is your target audience. You can use this information to create personalized banners to welcome each visitor with a relevant offer for that person.
64
+ Besides that you can use the information to improve your marketing strategy, to guide content and to find out if the website visitors are the right audience to increase sales.</p>
65
+ <p><strong></strong> <strong>Navegg Analytics</strong> provides basic analytics data such as amount of website visits, unique visitors, pageviews, bounce rate, demography (age, social class, localization) and also <strong>who</strong> are the visitors – their main interests, which websites they visit the most,
66
+ which brands and products they like, technologies and social networks used and their profile category according to EveryOne.</p>
67
+ <p><strong></strong> </p>
68
+ <ul class="nvg_lst">
69
+ <li class="tlt">Links:</li>
70
+ <li class="d">
71
+ <a href="http://www.navegg.com/en/documentation/websites-blogs-ecommerces/how-to-install/magento-plugin/" target="_blank">
72
+ Documentation</a>
73
+ </li>
74
+ <li class="s">
75
+ <a href="http://www.navegg.com/en/analytics/" target="_blank">
76
+ Resources</a>
77
+ </li>
78
+ <li class="b">
79
+ <a href="http://www.navegg.com/en/blog/" target="_blank">
80
+ Blog</a>
81
+ </li>
82
+ <li class="f">
83
+ <a href="http://www.navegg.com/en/client-area/faq/" target="_blank">
84
+ FAQ </a>
85
+ </li>
86
+ <li class="p">
87
+ <a href="http://www.navegg.com/en/solutions/sites-blogs-ecommerces/" target="_blank">
88
+ Sign up</a>
89
+ </li>
90
+ <li class="c">
91
+ <a href="http://www.navegg.com/en/about/#contact" target="_blank">
92
+ Contact </a>
93
+ </li>
94
+ </ul>
95
+ <div class="clearme"></div>
96
+ </div>
97
+ </div>
98
+ </div>
99
+ </div>
100
+ <div class="clearme"></div>
101
+ </div>
102
+ <div style="width:49%; float: left;">
103
+ <div class="postbox-container" style="width:99%;">
104
+ <div class="meta-box-sortables ui-sortable">
105
+ <div class="postbox id_nvg" style="max-height: 315px;">
106
+ <div class="inside">
107
+ <p>Don’t know your ID? Enter your e-mail:</p>
108
+ <input type="text" name="emNvg" id="emNvg" value="" style="float: left; width: 200px; padding-left: 6px !important; background-image: none; font-size: 13px;" />
109
+ <a class="button" style="float: left; margin-top: -1px; text-transform: uppercase;" title="Search" onclick="api('getId')">
110
+ Search </a>
111
+ <div class="clearme"></div>
112
+ <div id="result_ids"></div>
113
+ <div class="clearme"></div>
114
+ <ul class="nvg_lst" style="clear: both;">
115
+ <li class="r">
116
+ <a href="javascript:void(0)" onClick="document.getElementById('containerNewAccount').style.display = 'block'" >
117
+ Don't you have a Navegg ID?
118
+ <span>Sign up now!</span>
119
+ </a>
120
+ </li>
121
+ </ul>
122
+ <div class="clearme"></div>
123
+ </div>
124
+ </div>
125
+ </div>
126
+ </div>
127
+ <div id="containerNewAccount" class="postbox-container" style="width:99%; display:none;">
128
+ <div class="meta-box-sortables ui-sortable">
129
+ <div class="postbox cnt_nvg" style="max-height: 315px;">
130
+ <h3><span>Create account</span></h3>
131
+ <div class="inside">
132
+ <input type="hidden" name="newNvg" value="true"/>
133
+ <p>Create Navegg Analytics account</p>
134
+ <label for="nmNvg" style="display: block; float: left; width: 80px; margin-right: 8px; padding-top: 7px; text-align: right;">
135
+ * Name:</label>
136
+ <input type="text" name="nmNvg" id="nmNvg" value="" style="width: 200px; padding-left: 6px !important; background-image: none; font-size: 13px;" /><br />
137
+ <label for="nemNvg" style="display: block; float: left; width: 80px; margin-right: 8px; padding-top: 7px; text-align: right;">
138
+ * E-mail:</label>
139
+ <input type="text" name="nemNvg" id="nemNvg" value="" style="width: 200px; padding-left: 6px !important; background-image: none; font-size: 13px;" /><br />
140
+ <label for="stNvg" style="display: block; float: left; width: 80px; margin-right: 8px; padding-top: 0px; text-align: right;">
141
+ Website’s name:</label>
142
+ <input type="text" name="stNvg" id="stNvg" value="" style="width: 200px; padding-left: 6px !important; background-image: none; font-size: 13px;" /><br />
143
+ <label for="urNvg" style="display: block; float: left; width: 80px; margin-right: 8px; padding-top: 0px; text-align: right;">
144
+ Website’s URL: </label>
145
+ <input type="text" name="urNvg" id="urNvg" value="" style="float: left; width: 200px; padding-left: 6px !important; background-image: none; font-size: 13px;" />
146
+ <a class="button" style="float: left; margin-top: 4px; text-transform: uppercase;" title="Create account" onclick="api('newAcc')">
147
+ Create account </a><br/><br/>
148
+ </div>
149
+ </div>
150
+ </div>
151
+ </div>
152
+ <div class="postbox-container" style="width:99%;">
153
+ <div class="meta-box-sortables ui-sortable">
154
+ <div class="postbox pn_nvg" style="max-height: 315px;">
155
+
156
+ <div class="inside">
157
+ <p>
158
+ <a href="http://auth.navegg.com/" target="_blank">
159
+ Click here</a>
160
+ to access your audience’s complete reports. </p>
161
+ </div>
162
+ </div>
163
+ </div>
164
+ </div>
165
+ <div class="clearme"></div>
166
+ </div>
167
+ <div class="clear"></div>
168
+ </div>
169
+ </div>
170
+ <div class="clear"></div>
171
+ </div>
172
+ ]]>
173
+ </comment>
174
+ <fields>
175
+ <active translate="label">
176
+ <label>Enable</label>
177
+ <frontend_type>select</frontend_type>
178
+ <source_model>adminhtml/system_config_source_yesno</source_model>
179
+ <sort_order>10</sort_order>
180
+ <show_in_default>1</show_in_default>
181
+ <show_in_website>1</show_in_website>
182
+ <show_in_store>1</show_in_store>
183
+ </active>
184
+ <advertising translate="label">
185
+ <label>Navegg ID</label>
186
+ <frontend_type>text</frontend_type>
187
+ <sort_order>20</sort_order>
188
+ <show_in_default>1</show_in_default>
189
+ <show_in_website>1</show_in_website>
190
+ <show_in_store>1</show_in_store>
191
+ <validate>validate-number required-entry</validate>
192
+ </advertising>
193
+
194
+ </fields>
195
+ </navegg>
196
+ </groups>
197
+
198
+ </navegg_analytics>
199
+ </sections>
200
+ </config>
app/design/adminhtml/default/default/layout/analytics.xml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <layout>
3
+ <default>
4
+ <reference name="head">
5
+ <action method="addCss">
6
+ <name>analytics/custom.css</name>
7
+ </action>
8
+ </reference>
9
+ <reference name="head">
10
+ <action method="addJs"><script>navegg/analytics/adminhtml/admin.js</script></action>
11
+ </reference>
12
+ <!-- <reference name="data">
13
+ <block type="centinel/adminhtml_validation" as="card_validation" name="card_validation" template="sales/order/create/abstract.phtml">
14
+ <block type="centinel/adminhtml_validation_form" template="centinel/validation/form.phtml" name="form" />
15
+ </block>
16
+ </reference> -->
17
+ </default>
18
+ </layout>
app/etc/modules/{Buscape_Navegg.xml → Navegg_Analytics.xml} RENAMED
@@ -14,16 +14,16 @@
14
  * to suporte.developer@buscape-inc.com so we can send you a copy immediately.
15
  *
16
  * @category Buscape
17
- * @package Buscape_Navegg
18
  * @copyright Copyright (c) 2010 Buscapé Company (http://www.buscapecompany.com)
19
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
  */
21
  -->
22
  <config>
23
  <modules>
24
- <Buscape_Navegg>
25
  <active>true</active>
26
  <codePool>community</codePool>
27
- </Buscape_Navegg>
28
  </modules>
29
- </config>
14
  * to suporte.developer@buscape-inc.com so we can send you a copy immediately.
15
  *
16
  * @category Buscape
17
+ * @package Navegg_Analytics
18
  * @copyright Copyright (c) 2010 Buscapé Company (http://www.buscapecompany.com)
19
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
  */
21
  -->
22
  <config>
23
  <modules>
24
+ <Navegg_Analytics>
25
  <active>true</active>
26
  <codePool>community</codePool>
27
+ </Navegg_Analytics>
28
  </modules>
29
+ </config>
js/navegg/analytics/adminhtml/admin.js ADDED
@@ -0,0 +1 @@
 
1
+ var _0x3544=["\x76\x61\x6C\x75\x65","\x6E\x61\x76\x65\x67\x67\x5F\x61\x6E\x61\x6C\x79\x74\x69\x63\x73\x5F\x6E\x61\x76\x65\x67\x67\x5F\x61\x64\x76\x65\x72\x74\x69\x73\x69\x6E\x67","\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x42\x79\x49\x64","","\x45\x6E\x74\x65\x72\x20\x79\x6F\x75\x72\x20\x49\x44","\x50\x6C\x65\x61\x73\x65\x2C\x20\x65\x6E\x74\x65\x72\x20\x79\x6F\x75\x72\x20\x49\x44\x20\x6E\x75\x6D\x62\x65\x72\x2E","\x50\x6C\x65\x61\x73\x65\x2C\x20\x65\x6E\x74\x65\x72\x20\x79\x6F\x75\x72\x20\x65\x2D\x6D\x61\x69\x6C\x20\x61\x64\x64\x72\x65\x73\x73\x2E","\x66\x6F\x63\x75\x73","\x50\x6C\x65\x61\x73\x65\x2C\x20\x65\x6E\x74\x65\x72\x20\x61\x20\x76\x61\x6C\x69\x64\x20\x65\x2D\x6D\x61\x69\x6C\x20\x61\x64\x64\x72\x65\x73\x73\x2E","\x73\x74\x72\x69\x6E\x67","\x74\x65\x73\x74","\x6F\x62\x6A\x65\x63\x74","\x6F\x6E\x72\x65\x61\x64\x79\x73\x74\x61\x74\x65\x63\x68\x61\x6E\x67\x65","\x72\x65\x61\x64\x79\x53\x74\x61\x74\x65","\x73\x74\x61\x74\x75\x73","\x72\x65\x73\x70\x6F\x6E\x73\x65\x54\x65\x78\x74","\x47\x45\x54","\x6F\x70\x65\x6E","\x73\x65\x6E\x64","\x65\x6D\x4E\x76\x67","\x2F\x6E\x61\x76\x65\x67\x67\x5F\x61\x6E\x61\x6C\x79\x74\x69\x63\x73\x2F\x69\x6E\x64\x65\x78\x2F\x67\x65\x74\x69\x64\x3F\x65\x6D\x61\x69\x6C\x3D","\x70\x61\x72\x73\x65","\x65\x72\x72\x6F\x72","\x3C\x68\x33\x3E\x54\x68\x65\x20\x65\x6E\x74\x65\x72\x65\x64\x20\x65\x2D\x6D\x61\x69\x6C\x20\x69\x73\x20\x69\x6E\x76\x61\x6C\x69\x64\x3C\x2F\x68\x33\x3E","\x69\x6E\x6E\x65\x72\x48\x54\x4D\x4C","\x72\x65\x73\x75\x6C\x74\x5F\x69\x64\x73","\x6C\x65\x6E\x67\x74\x68","\x61\x63\x63\x69\x64","\x3C\x68\x33\x3E\x54\x68\x65\x20\x65\x6E\x74\x65\x72\x65\x64\x20\x65\x2D\x6D\x61\x69\x6C\x20\x68\x61\x73\x20\x6D\x75\x6C\x74\x69\x70\x6C\x65\x73\x20\x61\x63\x63\x6F\x75\x6E\x74\x73\x2C\x20\x73\x65\x6C\x65\x63\x74\x20\x6F\x6E\x65\x3C\x2F\x68\x33\x3E","\x3C\x68\x33\x3E\x54\x68\x65\x20\x65\x6E\x74\x65\x72\x65\x64\x20\x65\x2D\x6D\x61\x69\x6C\x20\x68\x61\x73\x20\x74\x68\x65\x20\x66\x6F\x6C\x6C\x6F\x77\x69\x6E\x67\x20\x61\x63\x63\x6F\x75\x6E\x74\x3C\x2F\x68\x33\x3E","\x3C\x68\x33\x3E\x54\x68\x65\x20\x65\x6E\x74\x65\x72\x65\x64\x20\x65\x2D\x6D\x61\x69\x6C\x20\x68\x61\x76\x65\x20\x6E\x6F\x20\x61\x63\x63\x6F\x75\x6E\x74\x73\x3C\x2F\x68\x33\x3E","\x3C\x75\x6C\x3E","\x3C\x6C\x69\x3E","\x3C\x2F\x6C\x69\x3E","\x3C\x2F\x75\x6C\x3E","\x67\x65\x74\x49\x64","\x6E\x6D\x4E\x76\x67","\x6E\x65\x6D\x4E\x76\x67","\x73\x74\x4E\x76\x67","\x75\x72\x4E\x76\x67","\x54\x68\x65\x20\x65\x6E\x74\x65\x72\x65\x64\x20\x65\x2D\x6D\x61\x69\x6C\x20\x69\x73\x20\x69\x6E\x76\x61\x6C\x69\x64","\x2F\x6E\x61\x76\x65\x67\x67\x5F\x61\x6E\x61\x6C\x79\x74\x69\x63\x73\x2F\x69\x6E\x64\x65\x78\x2F\x6E\x65\x77\x61\x63\x63\x3F\x75\x73\x72\x5F\x6E\x61\x6D\x65\x3D","\x26\x75\x73\x72\x5F\x65\x6D\x61\x69\x6C\x3D","\x26\x75\x73\x72\x5F\x73\x69\x74\x65\x5F\x6E\x61\x6D\x65\x3D","\x26\x75\x73\x72\x5F\x64\x6F\x6D\x61\x69\x6E\x3D","\x73\x75\x63\x63\x65\x73\x73","\x74\x72\x75\x65","\x41\x63\x63\x6F\x75\x6E\x74\x20\x72\x65\x67\x69\x73\x74\x65\x72\x65\x64\x20\x73\x75\x63\x63\x65\x73\x73\x66\x75\x6C\x6C\x79\x2C\x20\x63\x68\x65\x63\x6B\x20\x79\x6F\x75\x72\x20\x65\x2D\x6D\x61\x69\x6C","\x69\x64\x5F\x6E\x61\x76\x65\x67\x67","\x64\x69\x73\x70\x6C\x61\x79","\x73\x74\x79\x6C\x65","\x63\x6F\x6E\x74\x61\x69\x6E\x65\x72\x4E\x65\x77\x41\x63\x63\x6F\x75\x6E\x74","\x6E\x6F\x6E\x65","\x6D\x65\x73\x73\x61\x67\x65","\x50\x6C\x65\x61\x73\x65\x2C\x20\x63\x68\x65\x63\x6B\x20\x79\x6F\x75\x72\x20\x66\x6F\x72\x6D","\x45\x72\x72\x6F\x72\x20\x6F\x6E\x20\x70\x72\x6F\x63\x65\x73\x73\x2E\x20\x49\x66\x20\x74\x68\x65\x20\x65\x72\x72\x6F\x72\x20\x70\x65\x72\x73\x69\x73\x74\x2C\x20\x70\x6C\x65\x61\x73\x65\x20\x63\x6F\x6E\x74\x61\x63\x74\x20\x6F\x75\x72\x20\x73\x75\x70\x70\x6F\x72\x74\x20\x61\x74\x20\x69\x74\x40\x6E\x61\x76\x65\x67\x67\x2E\x63\x6F\x6D","\x6E\x65\x77\x41\x63\x63"];function validaFormId(){if(document[_0x3544[2]](_0x3544[1])[_0x3544[0]]==_0x3544[3]||document[_0x3544[2]](_0x3544[1])[_0x3544[0]]==_0x3544[4]){alert(_0x3544[5]);return false;};return true;}function validaEmail(_0x3fd4x3){if(document[_0x3544[2]](_0x3fd4x3)[_0x3544[0]]==_0x3544[3]){alert(_0x3544[6]);document[_0x3544[2]](_0x3fd4x3)[_0x3544[7]]();return false;}else {if(!checkMail(document[_0x3544[2]](_0x3fd4x3)[_0x3544[0]])){alert(_0x3544[8]);document[_0x3544[2]](_0x3fd4x3)[_0x3544[7]]();return false;};return true;}}function checkMail(_0x3fd4x5){var _0x3fd4x6= new RegExp(/^[A-Za-z0-9_\-\.]+@[A-Za-z0-9_\-\.]{2,}\.[A-Za-z0-9]{2,}(\.[A-Za-z0-9])?/);if( typeof _0x3fd4x5==_0x3544[9]){if(_0x3fd4x6[_0x3544[10]](_0x3fd4x5)){return true}}else {if( typeof _0x3fd4x5==_0x3544[11]){if(_0x3fd4x6[_0x3544[10]](_0x3fd4x5[_0x3544[0]])){return true}}else {return false}};}function callAjax(_0x3fd4x8,_0x3fd4x9){var _0x3fd4xa;_0x3fd4xa= new XMLHttpRequest();_0x3fd4xa[_0x3544[12]]=function(){if(_0x3fd4xa[_0x3544[13]]==4&&_0x3fd4xa[_0x3544[14]]==200){_0x3fd4x9(_0x3fd4xa[_0x3544[15]])}};_0x3fd4xa[_0x3544[17]](_0x3544[16],_0x3fd4x8,true);_0x3fd4xa[_0x3544[18]]();}function api(_0x3fd4xc){if( typeof _0x3fd4xc!==undefined){switch(_0x3fd4xc){case _0x3544[35]:elemento=document[_0x3544[2]](_0x3544[19]);email=elemento[_0x3544[0]];if(checkMail(email)){callAjax(_0x3544[20]+email,function(_0x3fd4xd){var _0x3fd4xd=JSON[_0x3544[21]](_0x3fd4xd);if(_0x3fd4xd[_0x3544[22]]){var _0x3fd4xe=_0x3544[23];document[_0x3544[2]](_0x3544[25])[_0x3544[24]]=_0x3fd4xe;elemento[_0x3544[7]]();}else {if(_0x3fd4xd[_0x3544[27]][_0x3544[26]]>1){var _0x3fd4xe=_0x3544[28]}else {if(_0x3fd4xd[_0x3544[27]][_0x3544[26]]==1){var _0x3fd4xe=_0x3544[29]}else {var _0x3fd4xe=_0x3544[30]}};_0x3fd4xe+=_0x3544[31];for(var _0x3fd4xf=0;_0x3fd4xf<_0x3fd4xd[_0x3544[27]][_0x3544[26]];_0x3fd4xf++){_0x3fd4xe+=_0x3544[32]+_0x3fd4xd[_0x3544[27]][_0x3fd4xf]+_0x3544[33]};_0x3fd4xe+=_0x3544[34];document[_0x3544[2]](_0x3544[25])[_0x3544[24]]=_0x3fd4xe;};})}else {var _0x3fd4xe=_0x3544[23];document[_0x3544[2]](_0x3544[25])[_0x3544[24]]=_0x3fd4xe;};break ;;case _0x3544[56]:_name=document[_0x3544[2]](_0x3544[36]);_email=document[_0x3544[2]](_0x3544[37]);_storeName=document[_0x3544[2]](_0x3544[38]);_storeUrl=document[_0x3544[2]](_0x3544[39]);if(!checkMail(_email[_0x3544[0]])){alert(_0x3544[40]);_email[_0x3544[7]]();}else {callAjax(_0x3544[41]+_name[_0x3544[0]]+_0x3544[42]+_email[_0x3544[0]]+_0x3544[43]+_storeName[_0x3544[0]]+_0x3544[44]+_storeUrl[_0x3544[0]],function(_0x3fd4xd){var _0x3fd4xd=JSON[_0x3544[21]](_0x3fd4xd);if(_0x3fd4xd[_0x3544[45]]==_0x3544[46]){alert(_0x3544[47]);document[_0x3544[2]](_0x3544[1])[_0x3544[0]]=_0x3fd4xd[_0x3544[48]];document[_0x3544[2]](_0x3544[51])[_0x3544[50]][_0x3544[49]]=_0x3544[52];_name[_0x3544[0]]=_0x3544[3];_email[_0x3544[0]]=_0x3544[3];_storeName[_0x3544[0]]=_0x3544[3];_storeUrl[_0x3544[0]]=_0x3544[3];}else {if(_0x3fd4xd[_0x3544[53]]){alert(_0x3544[54])}else {alert(_0x3544[55])}};})};break ;;default:break ;;}}}
media/navegg/analytics/navegg-analytics.png ADDED
Binary file
media/navegg/analytics/ui_wp_nvg.png ADDED
Binary file
media/navegg/analytics/ui_wp_nvg_usr.png ADDED
Binary file
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
- <name>Navegg</name>
4
- <version>0.1.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
@@ -23,11 +23,11 @@ Unleash all the power of the online audience segmentation in your store! Know yo
23
  You can enjoy the advantages of audience segmentation right now: Navegg offers 3 plans that can be hired online at http://www.navegg.com/en, including a completely free-of-charge option. Just choose the one that suits you best and start using it!&#xD;
24
  &#xD;
25
  Navegg's plugin for Magento automatically inserts Navegg's tag on every page of your store - no setup, no code, no hassles.</description>
26
- <notes>Works with Magento Enterprise Edition 1.7.0.0 or later, Professional Edition 1.9.0.0 or later, and Magento Community Edition 1.3.3.0 or later.</notes>
27
  <authors><author><name>Navegg</name><user>naveggit</user><email>it@navegg.com</email></author></authors>
28
- <date>2012-05-28</date>
29
- <time>14:59:33</time>
30
- <contents><target name="magecommunity"><dir name="Buscape"><dir name="Navegg"><dir name="Block"><dir name="Page"><file name="Body.php" hash="59a2dbb6785833d17a63b70787651d3a"/><file name="Head.php" hash="2d96ba478755d41329734a12b5b4b6bc"/></dir></dir><dir name="Helper"><file name="Data.php" hash="f3b4f9fcacd819ffe2a890946be89d76"/></dir><dir name="Model"><file name="Config.php" hash="5045a50afca42fc7f88a11a67e21eb39"/><file name="Observer.php" hash="5cff59fba61c448887851401a9f79d1a"/></dir><dir name="etc"><file name="config.xml" hash="71636ef236f27da354fa50bd68af8065"/><file name="system.xml" hash="b0b92817a3c444995ca08f48be6a5638"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Buscape_Navegg.xml" hash="a26c9693f912667045aace553839bf3c"/></dir></target></contents>
31
  <compatible/>
32
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
33
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
+ <name>Navegg_Analytics</name>
4
+ <version>0.1.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
23
  You can enjoy the advantages of audience segmentation right now: Navegg offers 3 plans that can be hired online at http://www.navegg.com/en, including a completely free-of-charge option. Just choose the one that suits you best and start using it!&#xD;
24
  &#xD;
25
  Navegg's plugin for Magento automatically inserts Navegg's tag on every page of your store - no setup, no code, no hassles.</description>
26
+ <notes>Works with Magento Community Edition 1.3.3.0 or later.</notes>
27
  <authors><author><name>Navegg</name><user>naveggit</user><email>it@navegg.com</email></author></authors>
28
+ <date>2015-10-30</date>
29
+ <time>16:11:30</time>
30
+ <contents><target name="magecommunity"><dir name="Navegg"><dir name="Analytics"><dir name="Block"><dir name="Page"><file name="Body.php" hash="5d62c29fd9791b8e414c99c0c9b4253c"/><file name="Head.php" hash="cd32419c5e698aba1ba4a496822a1c0b"/></dir></dir><dir name="Helper"><file name="Data.php" hash="b76493e32b3088a9e8dc0b55a3f7bc34"/></dir><dir name="Model"><file name="Config.php" hash="6471ba07067b5212f45a8020ff2e6c24"/><file name="Observer.php" hash="05fa51b0696965de817a18f4338385f6"/></dir><dir name="controllers"><file name="IndexController.php" hash="8adbc9657796ae93d7f7f4bffeb972a8"/></dir><dir name="etc"><file name="config.xml" hash="fba3e0a1de318d2bb3e744d9c9f7d066"/><file name="system.xml" hash="826ffc4e39d0ca3bd440b2e8549408ae"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="analytics.xml" hash="9f36d65d1dfce762bb93d186c2408341"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Navegg_Analytics.xml" hash="263b9288bbc0dae24ae40ac7b3bffbda"/></dir></target><target name="magemedia"><dir name="navegg"><dir name="analytics"><file name="navegg-analytics.png" hash="85e7fa0ca60466aa2f754acdc66da8d9"/><file name="ui_wp_nvg.png" hash="0a6902ae1e271c72cba49f2f0cabb826"/><file name="ui_wp_nvg_usr.png" hash="80a810f023211f22140f2dd0a51e1d01"/></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="base"><dir name="default"><dir name="analytics"><file name="custom.css" hash="eb741188fa0184ffb53123e4122b5e54"/></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="navegg"><dir name="analytics"><dir><dir name="adminhtml"><file name="admin.js" hash="9a7a3f6da55d03e69be145f84adb247a"/></dir></dir></dir></dir></dir></target></contents>
31
  <compatible/>
32
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
33
  </package>
skin/adminhtml/base/default/analytics/custom.css ADDED
@@ -0,0 +1,2 @@
 
 
1
+ <style type="text/css" media="screen">.toplevel-navegg .ic_nvg{background:url(/media/navegg/analytics/ui_wp_nvg.png) right -231px no-repeat}.inside{padding:10px!important}.inside p{line-height:20px;padding-bottom:10px;margin:5px 0 0 5px}.nvg-menu-image{float:left;width:28px;height:28px;background:url(/media/navegg/analytics/ui_wp_nvg.png) right -256px no-repeat}.rep_nvg{float:left;width:49%;margin:0 5px}.rep_nvg div{background:url(/media/navegg/analytics/ui_wp_nvg.png) -637px -103px no-repeat #FFFBCC;height:80px;border:1px solid #E6DB55;width:98%;min-width:550px;max-width:782px}.rep_nvg div p{padding:15px 15px 0 181px}.rep_nvg div p a{color:#60A51B;font-weight:700}.rep_nvg div p a:hover{color:#D54E21}#icon-navegg{background:url(/media/navegg/analytics/ui_wp_nvg.png) right top no-repeat}.nvg_lst{margin:0}.nvg_lst li.b,.nvg_lst li.c,.nvg_lst li.d,.nvg_lst li.f,.nvg_lst li.p,.nvg_lst li.s{margin-bottom:8px}.nvg_lst li.tlt{float:none;padding:0 0 10px;width:auto}.nvg_lst li{float:left;padding:2px 0 2px 22px;font-weight:700;min-width:120px}.nvg_lst li.d{background:url(/media/navegg/analytics/ui_wp_nvg.png) 1px -14px no-repeat}.nvg_lst li.d:hover{background-position:1px -36px}.nvg_lst li.s{background:url(/media/navegg/analytics/ui_wp_nvg.png) 1px -104px no-repeat}.nvg_lst li.s:hover{background-position:1px -126px}.nvg_lst li.b{background:url(/media/navegg/analytics/ui_wp_nvg.png) left -193px no-repeat}.nvg_lst li.b:hover{background-position:left -215px}.nvg_lst li.f{background:url(/media/navegg/analytics/ui_wp_nvg.png) 3px -59px no-repeat;clear:left}.nvg_lst li.f:hover{background-position:3px -81px}.nvg_lst li.p{background:url(/media/navegg/analytics/ui_wp_nvg.png) left -149px no-repeat}.nvg_lst li.p:hover{background-position:left -171px}.nvg_lst li.c{background:url(/media/navegg/analytics/ui_wp_nvg.png) left -241px no-repeat}.nvg_lst li.c:hover{background-position:left -263px}.nvg_lst li.h{background:url(/media/navegg/analytics/ui_wp_nvg.png) 3px -59px no-repeat;float:none;margin-bottom:5px}.nvg_lst li.h:hover{background-position:3px -81px}.nvg_lst li.r{background:url(/media/navegg/analytics/ui_wp_nvg.png) left -288px no-repeat;float:none}.nvg_lst li.r:hover{background-position:left -310px}.postbox-container a{color:#63969f}.postbox-container a:hover{color:#4a737b}#dashboard-widgets-wrap{min-width:950px}.cnt_nvg,.id_nvg,.pn_nvg{min-width:550px;max-width:782px}#dashboard-widgets h4{font-size:16px;margin:0 0 0 5px}.postbox h3 .off,.postbox h3 .on{font-size:11px;padding:2px 0;text-align:left}.postbox h3 .off span,.postbox h3 .on span{width:12px;height:16px;margin-top:-2px;margin-right:6px}#dashboard-widgets a{margin-left:5px;vertical-align:baseline}#dashboard_right_now ul.nvg_lst li a:before{display:none}.postbox h3{cursor:auto!important}.postbox h3 .on{color:#3270fb;float:right}.postbox h3 .on span{background:url(/media/navegg/analytics/ui_wp_nvg.png) -785px -336px no-repeat;display:block;float:left}.postbox h3 .off{color:#9c9a9a;float:right}.cnt_nvg,.id_nvg{padding-bottom:10px}.cnt_nvg .inside,.id_nvg .inside,.pn_nvg .inside{padding-left:178px!important}.postbox h3 .off span{background:url(/media/navegg/analytics/ui_wp_nvg.png) -785px -365px no-repeat;display:block;float:left}.postbox-container .meta-box-sortables{min-height:150px}#dashboard-widgets .postbox-container{width:99%;display:block}.clearme{clear:both}.id_nvg{background:url(/media/navegg/analytics/ui_wp_nvg.png) left bottom no-repeat #fff;min-height:250px;max-height:265px}.cnt_nvg{background:url(/media/navegg/analytics/ui_wp_nvg_usr.png) left bottom no-repeat #fff}.cnt_nvg input,.id_nvg input{background:url(/media/navegg/analytics/ui_wp_nvg.png) 7px -329px no-repeat #FFF;padding:3px 5px 3px 30px!important;margin:0 10px 15px 0;font-size:15px;width:131px}.cnt_nvg input{margin-top:5px}.updtFail,.updtSucess{padding:0 0 7px 23px!important;margin:0}.pn_nvg{background:url(/media/navegg/analytics/ui_wp_nvg.png) -637px -59px no-repeat #F9F9F9}.updtSucess{color:#090;background:url(/media/navegg/analytics/ui_wp_nvg.png) -783px -430px no-repeat}.updtFail{color:#f82b33;background:url(/media/navegg/analytics/ui_wp_nvg.png) -783px -454px no-repeat}.inside .nvgerror{clear:both;margin-top:-5px;color:red;font-weight:700}
2
+ </style>