Version Notes
- Small improvements.
Download this release
Release Info
Developer | Roeland van Oostenbrugge |
Extension | Converdo_Analytics |
Version | 1.2.3.5 |
Comparing to | |
See all releases |
Code changes from version 1.2.3.0 to 1.2.3.5
app/code/community/Converdo/Analytics/controllers/PingController.php
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Converdo_Analytics_PingController extends Mage_Core_Controller_Front_Action
|
4 |
+
{
|
5 |
+
protected $output = [];
|
6 |
+
|
7 |
+
public function pingerAction()
|
8 |
+
{
|
9 |
+
$this->output['plugin']['version'] = reset(Mage::getConfig()->getNode()->modules->Converdo_Analytics->version);
|
10 |
+
|
11 |
+
if (! ($key = $this->getRequest()->getParam('key')) || $key !== Mage::getStoreConfig('converdo/analytics/site')) {
|
12 |
+
return $this->response();
|
13 |
+
}
|
14 |
+
|
15 |
+
$api = file_get_contents('https://www.converdo.com/api/ping/' . Mage::getStoreConfig('converdo/analytics/site'));
|
16 |
+
$api = json_decode($api);
|
17 |
+
|
18 |
+
if (! $api || $api->error) {
|
19 |
+
return $this->response();
|
20 |
+
}
|
21 |
+
|
22 |
+
$validSite = Mage::getStoreConfig('converdo/analytics/site') === $api->tokens->site;
|
23 |
+
$validUser = Mage::getStoreConfig('converdo/analytics/token') === $api->tokens->user;
|
24 |
+
$validEncryption = Mage::getStoreConfig('converdo/analytics/encryption') === $api->tokens->encryption;
|
25 |
+
|
26 |
+
$this->output['validation']['enabled'] = (bool) Mage::getStoreConfigFlag('converdo/analytics/active');
|
27 |
+
$this->output['validation']['valid'] = $validSite && $validUser && $validEncryption;
|
28 |
+
|
29 |
+
$this->output['validation']['tokens']['site'] = $validSite;
|
30 |
+
$this->output['validation']['tokens']['user'] = $validUser;
|
31 |
+
$this->output['validation']['tokens']['encryption'] = $validEncryption;
|
32 |
+
|
33 |
+
$this->output['info']['site'] = $api->site;
|
34 |
+
$this->output['info']['url'] = $api->url;
|
35 |
+
$this->output['info']['hash'] = $api->hash;
|
36 |
+
|
37 |
+
return $this->response();
|
38 |
+
}
|
39 |
+
|
40 |
+
protected function response()
|
41 |
+
{
|
42 |
+
header('Content-Type: application/json;charset=utf-8');
|
43 |
+
|
44 |
+
echo '<pre>';
|
45 |
+
|
46 |
+
echo json_encode($this->output, true);
|
47 |
+
}
|
48 |
+
}
|
app/code/community/Converdo/Analytics/etc/config.xml
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
<config>
|
4 |
<modules>
|
5 |
<Converdo_Analytics>
|
6 |
-
<version>1.
|
7 |
</Converdo_Analytics>
|
8 |
</modules>
|
9 |
<global>
|
@@ -58,6 +58,15 @@
|
|
58 |
</analytics>
|
59 |
</updates>
|
60 |
</layout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
</frontend>
|
62 |
<adminhtml>
|
63 |
<translate>
|
3 |
<config>
|
4 |
<modules>
|
5 |
<Converdo_Analytics>
|
6 |
+
<version>1.2.3.5</version>
|
7 |
</Converdo_Analytics>
|
8 |
</modules>
|
9 |
<global>
|
58 |
</analytics>
|
59 |
</updates>
|
60 |
</layout>
|
61 |
+
<routers>
|
62 |
+
<Converdo_Analytics>
|
63 |
+
<use>standard</use>
|
64 |
+
<args>
|
65 |
+
<module>Converdo_Analytics</module>
|
66 |
+
<frontName>converdoanalytics</frontName>
|
67 |
+
</args>
|
68 |
+
</Converdo_Analytics>
|
69 |
+
</routers>
|
70 |
</frontend>
|
71 |
<adminhtml>
|
72 |
<translate>
|
package.xml
CHANGED
@@ -1,20 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Converdo_Analytics</name>
|
4 |
-
<version>1.2.3.
|
5 |
<stability>stable</stability>
|
6 |
<license>MITL</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Better E-commerce Analytics. Clear, actionable insight in the behavior of your visitors. Improve your campaigns and conversion rate easily.</summary>
|
10 |
<description>Better E-commerce Analytics. Clear, actionable insight in the behavior of your visitors. Improve your campaigns and conversion rate easily. This plugin, installed in a minute, is all you need to have a complete and powerfull Analytics Suite. View your KPI's and sales funnels, segmented on dozens of dimensions like page type, device, landing page, campaign, etc. This plugin collects your users behaviour so you can view the insights on your dashboard on converdo.com. You can use Converdo Analytics side by side with Google Analytics without a problem. It works asynchronous so it will never impact your user experience. This extension is made especially for Magento ecommerce stores, which provides you powerfull insights out of the box.</description>
|
11 |
-
<notes
|
12 |
-

|
13 |
-
- Many improvements.</notes>
|
14 |
<authors><author><name>Roeland van Oostenbrugge</name><user>converdo</user><email>roeland@converdo.nl</email></author></authors>
|
15 |
-
<date>2016-
|
16 |
-
<time>
|
17 |
-
<contents><target name="magecommunity"><dir name="Converdo"><dir name="Analytics"><dir name="Block"><file name="Tracker.php" hash="422523c3d976717a9ef5c4e1515ea729"/></dir><dir name="Helper"><file name="Data.php" hash="27385e6557623570e777de0c6d5c1b6e"/></dir><dir name="Model"><file name="Observer.php" hash="24adfe1dc5f87c8c2dd2e0553520246c"/></dir><dir name="etc"><file name="adminhtml.xml" hash="72ef32eccf0bc6854b630776413f4ebe"/><file name="config.xml" hash="
|
18 |
<compatible/>
|
19 |
<dependencies><required><php><min>5.5.37</min><max>7.0.5</max></php></required></dependencies>
|
20 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Converdo_Analytics</name>
|
4 |
+
<version>1.2.3.5</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>MITL</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Better E-commerce Analytics. Clear, actionable insight in the behavior of your visitors. Improve your campaigns and conversion rate easily.</summary>
|
10 |
<description>Better E-commerce Analytics. Clear, actionable insight in the behavior of your visitors. Improve your campaigns and conversion rate easily. This plugin, installed in a minute, is all you need to have a complete and powerfull Analytics Suite. View your KPI's and sales funnels, segmented on dozens of dimensions like page type, device, landing page, campaign, etc. This plugin collects your users behaviour so you can view the insights on your dashboard on converdo.com. You can use Converdo Analytics side by side with Google Analytics without a problem. It works asynchronous so it will never impact your user experience. This extension is made especially for Magento ecommerce stores, which provides you powerfull insights out of the box.</description>
|
11 |
+
<notes>- Small improvements.</notes>
|
|
|
|
|
12 |
<authors><author><name>Roeland van Oostenbrugge</name><user>converdo</user><email>roeland@converdo.nl</email></author></authors>
|
13 |
+
<date>2016-10-14</date>
|
14 |
+
<time>13:21:22</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Converdo"><dir name="Analytics"><dir name="Block"><file name="Tracker.php" hash="422523c3d976717a9ef5c4e1515ea729"/></dir><dir name="Helper"><file name="Data.php" hash="27385e6557623570e777de0c6d5c1b6e"/></dir><dir name="Model"><file name="Observer.php" hash="24adfe1dc5f87c8c2dd2e0553520246c"/></dir><dir name="controllers"><file name="PingController.php" hash="75cd32ba2a0fb49df2753dac65bd6a6c"/></dir><dir name="etc"><file name="adminhtml.xml" hash="72ef32eccf0bc6854b630776413f4ebe"/><file name="config.xml" hash="3a8cd229e7a26b7dc52ce22278dcfbaf"/><file name="system.xml" hash="432595ca6c57ba9cfc70e2624c3c7e5a"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="analytics.xml" hash="d3f9d35df1981968a55a331c2b92d473"/></dir><dir name="template"><dir name="analytics"><file name="analytics.phtml" hash="4a1ddca578fc575a4ef3a7015641eb2b"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Converdo_Analytics.xml" hash="119a038ca81bdf03767b1b12d81414ad"/></dir></target><target name="magelib"><dir name="Converdo"><dir name="Entity"><file name="AbstractEntity.php" hash="4130576c917771fdafcb4055363b2861"/><dir name="Interface"><file name="EntityInterface.php" hash="cb6a4e6da90518a9ffa8445314de56c1"/><file name="ProductInterface.php" hash="6245b2cadfec44d4965f2d93f9241b55"/></dir><file name="Product.php" hash="a529c1e7510bf8ebefde1b4e75750cc7"/></dir><dir name="Support"><file name="Crypt.php" hash="265f44cafba70116f72c255dd737a805"/><file name="StringBuilder.php" hash="282b1a3111f7cdf4c3b88f6320a8c57e"/><file name="Writer.php" hash="72ddf88a177d1b59ad46e2f2b5756ede"/></dir><dir name="Tracker"><dir name="Processor"><file name="AbstractProcessor.php" hash="7ed0d1a62b21ce92bf39b3633c244a21"/><file name="CartProcessor.php" hash="bdbc21c783342e0ffa7e4b49391720b7"/><file name="CategoryViewProcessor.php" hash="262399dd5a15e577776873501d78209a"/><file name="CheckoutProcessor.php" hash="f3a83827431e5a1fa540116c7c085648"/><file name="CustomVariableProcessor.php" hash="c7858262f2d175e731e3607210ce8b80"/><file name="FootProcessor.php" hash="bbd5f24e239e71e81bf4180e70fa084c"/><file name="HeadProcessor.php" hash="1b71ac4503572f41f1db66428f3a7f3e"/><dir name="Interface"><file name="ProcessorInterface.php" hash="fc6d581fcfbf71f877ce8fba8805e903"/></dir><file name="PageViewProcessor.php" hash="ae4a41d59efb23b69f80f7965f4652be"/><file name="ProductViewProcessor.php" hash="cea41f6559afb83dde200567e8e8aac8"/></dir><dir name="Query"><file name="AbstractQuery.php" hash="9daedd7877adf28b5e1e13089e32a715"/><file name="CategoryView.php" hash="e9782292c36a21c747b375304e59388a"/><file name="CustomVariable.php" hash="533d329bb755fefd36b8abd65279b793"/><file name="EcommerceCartUpdate.php" hash="eb0cb9d2ea01d761762cc124dc496555"/><file name="EcommerceItem.php" hash="847dd043b925b4424d7a29bc2a891455"/><file name="EcommerceTracking.php" hash="77338e3786a8331905d722c87d47125c"/><file name="EcommerceView.php" hash="f2d2efb863c62b71db3301b034e84a87"/><file name="HeartBeat.php" hash="f1ac7be35779f0eba50b6426f888f1dc"/><dir name="Interface"><file name="QueryInterface.php" hash="8dc5c4a79e032b5d4e559c72e9edfea4"/></dir><file name="LinkTracking.php" hash="300dbcbb9a43e194a595c424b53e9cf5"/><file name="PageTracking.php" hash="cbcbdd882e3754339b609c0273dd547c"/><file name="PageView.php" hash="2485e3efd4247a288dfef778ade53677"/><file name="ProductView.php" hash="8389b29f4c4ecee11d7831317bd5f0ab"/><file name="SiteId.php" hash="ec1c75338016275b4b63f4abc587f7c2"/><file name="TrackerUrl.php" hash="d432ebf964a333c7852935b48b8e17f7"/></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="Converdo_Magento.csv" hash="1d58be97f37a234562d96d603bac7d21"/></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.5.37</min><max>7.0.5</max></php></required></dependencies>
|
18 |
</package>
|