Version Notes
Integrate with Attribute Splash Pages plugin
Download this release
Release Info
Developer | Murry Ivanoff |
Extension | Metrilo_Analytics |
Version | 1.1.1 |
Comparing to | |
See all releases |
Code changes from version 1.1.0 to 1.1.1
app/code/community/Metrilo/Analytics/Model/Observer.php
CHANGED
@@ -45,6 +45,7 @@ class Metrilo_Analytics_Model_Observer
|
|
45 |
{
|
46 |
$helper = Mage::helper('metrilo_analytics');
|
47 |
$action = (string)$observer->getEvent()->getAction()->getFullActionName();
|
|
|
48 |
|
49 |
if ($this->_isRejected($action)) {
|
50 |
return;
|
@@ -67,6 +68,11 @@ class Metrilo_Analytics_Model_Observer
|
|
67 |
return;
|
68 |
}
|
69 |
}
|
|
|
|
|
|
|
|
|
|
|
70 |
|
71 |
// homepage & CMS pages
|
72 |
if ($action == 'cms_index_index' || $action == 'cms_page_view') {
|
@@ -274,4 +280,22 @@ class Metrilo_Analytics_Model_Observer
|
|
274 |
|
275 |
$helper->addEvent('track', 'add_to_cart', $data);
|
276 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
277 |
}
|
45 |
{
|
46 |
$helper = Mage::helper('metrilo_analytics');
|
47 |
$action = (string)$observer->getEvent()->getAction()->getFullActionName();
|
48 |
+
var_dump($action);
|
49 |
|
50 |
if ($this->_isRejected($action)) {
|
51 |
return;
|
68 |
return;
|
69 |
}
|
70 |
}
|
71 |
+
// Fishpigs_Attribute_Splash_Page integration plugin
|
72 |
+
if ($action == 'attributeSplash_page_view') {
|
73 |
+
$this->_viewSplashPage($helper);
|
74 |
+
return;
|
75 |
+
}
|
76 |
|
77 |
// homepage & CMS pages
|
78 |
if ($action == 'cms_index_index' || $action == 'cms_page_view') {
|
280 |
|
281 |
$helper->addEvent('track', 'add_to_cart', $data);
|
282 |
}
|
283 |
+
|
284 |
+
/**
|
285 |
+
* Splash page event
|
286 |
+
*/
|
287 |
+
private function _viewSplashPage($helper)
|
288 |
+
{
|
289 |
+
$splashPage = Mage::registry('splash_page');
|
290 |
+
|
291 |
+
if (is_null($splashPage) || !$splashPage->canDisplay()) {
|
292 |
+
return false;
|
293 |
+
}
|
294 |
+
|
295 |
+
$data = array(
|
296 |
+
'id' => 'SPL-'.$splashPage->getId(),
|
297 |
+
'name' => $splashPage->getName()
|
298 |
+
);
|
299 |
+
$helper->addEvent('track', 'view_category', $data);
|
300 |
+
}
|
301 |
}
|
app/code/community/Metrilo/Analytics/etc/adminhtml.xml
CHANGED
@@ -20,4 +20,4 @@
|
|
20 |
</admin>
|
21 |
</resources>
|
22 |
</acl>
|
23 |
-
</config>
|
20 |
</admin>
|
21 |
</resources>
|
22 |
</acl>
|
23 |
+
</config>
|
app/code/community/Metrilo/Analytics/etc/config.xml
CHANGED
@@ -8,7 +8,7 @@
|
|
8 |
<config>
|
9 |
<modules>
|
10 |
<Metrilo_Analytics>
|
11 |
-
<version>1.1.
|
12 |
</Metrilo_Analytics>
|
13 |
</modules>
|
14 |
<frontend>
|
8 |
<config>
|
9 |
<modules>
|
10 |
<Metrilo_Analytics>
|
11 |
+
<version>1.1.1</version>
|
12 |
</Metrilo_Analytics>
|
13 |
</modules>
|
14 |
<frontend>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Metrilo_Analytics</name>
|
4 |
-
<version>1.1.
|
5 |
<stability>stable</stability>
|
6 |
<license>Apache Software License (ASL)</license>
|
7 |
<channel>community</channel>
|
@@ -18,11 +18,11 @@
|
|
18 |
* Powerful intelligence for your sales team&#xD;
|
19 |
* With Metrilo, you have an amazing real-time overview of who's doing what on your eCommerce store.&#xD;
|
20 |
* Metrilo automatically collects and analyzes your eCommerce data to use for your email campaigns.</description>
|
21 |
-
<notes>
|
22 |
<authors><author><name>Murry Ivanoff</name><user>Metrilo</user><email>murry@metrilo.com</email></author><author><name>Zhivko Draganov</name><user>zhivko</user><email>zhivko@metirlo.com</email></author><author><name>Miroslav Petrov</name><user>miro</user><email>miro91tn@gmail.com</email></author></authors>
|
23 |
-
<date>2016-
|
24 |
-
<time>
|
25 |
-
<contents><target name="magecommunity"><dir name="Metrilo"><dir name="Analytics"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Form"><file name="Button.php" hash="056b366e98b9a61a5594679ae4b15cdd"/></dir></dir></dir></dir><file name="Head.php" hash="7fc6870506f8882520b4e2b9596600d7"/></dir><dir name="Helper"><file name="AsyncHttpClient.php" hash="1a4a85f68808e3eee8651a82f86093c5"/><file name="Data.php" hash="9430df17c85bc59687f46cdcaa7cbb28"/></dir><dir name="Model"><file name="Import.php" hash="1eb20cd00c210ee378039edb8d0515dc"/><file name="Observer.php" hash="
|
26 |
<compatible/>
|
27 |
<dependencies><required><php><min>5.2.1</min><max>5.6.22</max></php></required></dependencies>
|
28 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Metrilo_Analytics</name>
|
4 |
+
<version>1.1.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>Apache Software License (ASL)</license>
|
7 |
<channel>community</channel>
|
18 |
* Powerful intelligence for your sales team&#xD;
|
19 |
* With Metrilo, you have an amazing real-time overview of who's doing what on your eCommerce store.&#xD;
|
20 |
* Metrilo automatically collects and analyzes your eCommerce data to use for your email campaigns.</description>
|
21 |
+
<notes>Integrate with Attribute Splash Pages plugin </notes>
|
22 |
<authors><author><name>Murry Ivanoff</name><user>Metrilo</user><email>murry@metrilo.com</email></author><author><name>Zhivko Draganov</name><user>zhivko</user><email>zhivko@metirlo.com</email></author><author><name>Miroslav Petrov</name><user>miro</user><email>miro91tn@gmail.com</email></author></authors>
|
23 |
+
<date>2016-04-11</date>
|
24 |
+
<time>13:28:43</time>
|
25 |
+
<contents><target name="magecommunity"><dir name="Metrilo"><dir name="Analytics"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Form"><file name="Button.php" hash="056b366e98b9a61a5594679ae4b15cdd"/></dir></dir></dir></dir><file name="Head.php" hash="7fc6870506f8882520b4e2b9596600d7"/></dir><dir name="Helper"><file name="AsyncHttpClient.php" hash="1a4a85f68808e3eee8651a82f86093c5"/><file name="Data.php" hash="9430df17c85bc59687f46cdcaa7cbb28"/></dir><dir name="Model"><file name="Import.php" hash="1eb20cd00c210ee378039edb8d0515dc"/><file name="Observer.php" hash="f541233bc249b1ba66e9333b4abfaec8"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="AjaxController.php" hash="e99c1af2e7c9cb18dc2b5ee61022f87b"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="2fdab5ef85143c8c30f4c3bb15628f83"/><file name="config.xml" hash="a82b04ebbeb9e13412c4ecf0431a371d"/><file name="system.xml" hash="7564c68e51df23d7975bc1c9ead7be8f"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="metrilo_analytics.xml" hash="0e6911e2e883992f2182969286d929b1"/></dir><dir name="template"><dir name="metrilo"><dir name="system"><dir name="config"><file name="button.phtml" hash="c69dd7d8286cdff217c8c18c8ef5e2e9"/></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="metrilo_analytics.xml" hash="c7dcf4057bc31d906865e82159ac5eca"/></dir><dir name="template"><dir name="metrilo"><file name="head.phtml" hash="c32d5255058eefcc623c51a1dc51c23e"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="metrilo"><file name="favicon-metrilo.png" hash="743558f1e49a730be9d515197a36567b"/><file name="loader.gif" hash="e05e6bb35d035cac4f3e0c8af213e9ab"/><file name="logo.png" hash="e9e54afd81384e12f77aca4eaebf5be8"/><file name="styles.css" hash="da0c07513d917e4ad08ff50814b536e1"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Metrilo_Analytics.xml" hash="3a4dbecc4e093537f11dd4c8fa2756e7"/></dir></target></contents>
|
26 |
<compatible/>
|
27 |
<dependencies><required><php><min>5.2.1</min><max>5.6.22</max></php></required></dependencies>
|
28 |
</package>
|