Inside_Analytics - Version 2.5.0

Version Notes

New Features
- endpoint server configuration

Download this release

Release Info

Developer Hadar Paz
Extension Inside_Analytics
Version 2.5.0
Comparing to
See all releases


Code changes from version 2.4.0 to 2.5.0

app/code/community/Inside/Analytics/Block/Analytics.php CHANGED
@@ -28,6 +28,16 @@ class Inside_Analytics_Block_Analytics extends Mage_Core_Block_Template
28
  return $this->_getData('page_name');
29
  }
30
 
 
 
 
 
 
 
 
 
 
 
31
  /**
32
  * Get main getTracker code. This will initialise the _insideGraph tracker
33
  * object with your account key.
28
  return $this->_getData('page_name');
29
  }
30
 
31
+ /**
32
+ * Get inside server name to connect to
33
+ *
34
+ * @return string
35
+ */
36
+ protected function _getServer()
37
+ {
38
+ return Mage::helper('inside')->getServer();
39
+ }
40
+
41
  /**
42
  * Get main getTracker code. This will initialise the _insideGraph tracker
43
  * object with your account key.
app/code/community/Inside/Analytics/Helper/Data.php CHANGED
@@ -13,7 +13,9 @@ class Inside_Analytics_Helper_Data extends Mage_Core_Helper_Abstract {
13
  * Config paths for using throughout the code
14
  */
15
  const LOG_FILENAME = 'inside-analytics.log';
 
16
  const XML_PATH_ACTIVE = 'inside/analytics/active';
 
17
  const XML_PATH_ACCOUNT = 'inside/analytics/account';
18
  const XML_LOG_ACTIVE = 'inside/debug/log';
19
  const XML_LOG_VERBOSE = 'inside/debug/verbose';
@@ -142,6 +144,21 @@ class Inside_Analytics_Helper_Data extends Mage_Core_Helper_Abstract {
142
  return $title;
143
  }
144
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
145
  /**
146
  * Is extension logging enabled?
147
  *
13
  * Config paths for using throughout the code
14
  */
15
  const LOG_FILENAME = 'inside-analytics.log';
16
+ const DEFAULT_SERVER = 'inside-graph.com';
17
  const XML_PATH_ACTIVE = 'inside/analytics/active';
18
+ const XML_PATH_SERVER = 'inside/analytics/server';
19
  const XML_PATH_ACCOUNT = 'inside/analytics/account';
20
  const XML_LOG_ACTIVE = 'inside/debug/log';
21
  const XML_LOG_VERBOSE = 'inside/debug/verbose';
144
  return $title;
145
  }
146
 
147
+ /**
148
+ * Gets the inside server domain to use
149
+ *
150
+ * @param mixed $store
151
+ * @return string
152
+ */
153
+ public function getServer($store = null)
154
+ {
155
+ $server = Mage::getStoreConfig(self::XML_PATH_SERVER, $store);
156
+ if (strlen(trim($server)) === 0) {
157
+ return self::DEFAULT_SERVER;
158
+ }
159
+ return $server;
160
+ }
161
+
162
  /**
163
  * Is extension logging enabled?
164
  *
app/code/community/Inside/Analytics/etc/config.xml CHANGED
@@ -11,7 +11,7 @@
11
  <config>
12
  <modules>
13
  <Inside_Analytics>
14
- <version>2.4.0</version>
15
  </Inside_Analytics>
16
  </modules>
17
  <global>
@@ -114,4 +114,11 @@
114
  </inside>
115
  </routers>
116
  </admin>
 
 
 
 
 
 
 
117
  </config>
11
  <config>
12
  <modules>
13
  <Inside_Analytics>
14
+ <version>2.5.0</version>
15
  </Inside_Analytics>
16
  </modules>
17
  <global>
114
  </inside>
115
  </routers>
116
  </admin>
117
+ <default>
118
+ <inside>
119
+ <analytics>
120
+ <server><![CDATA[inside-graph.com]]></server>
121
+ </analytics>
122
+ </inside>
123
+ </default>
124
  </config>
app/code/community/Inside/Analytics/etc/system.xml CHANGED
@@ -46,10 +46,19 @@
46
  <show_in_website>1</show_in_website>
47
  <show_in_store>1</show_in_store>
48
  </active>
 
 
 
 
 
 
 
 
 
49
  <account translate="label">
50
  <label>Account ID</label>
51
  <frontend_type>text</frontend_type>
52
- <sort_order>20</sort_order>
53
  <show_in_default>1</show_in_default>
54
  <show_in_website>1</show_in_website>
55
  <show_in_store>1</show_in_store>
46
  <show_in_website>1</show_in_website>
47
  <show_in_store>1</show_in_store>
48
  </active>
49
+ <server>
50
+ <label>Server</label>
51
+ <frontend_type>text</frontend_type>
52
+ <sort_order>20</sort_order>
53
+ <show_in_default>1</show_in_default>
54
+ <show_in_website>1</show_in_website>
55
+ <show_in_store>1</show_in_store>
56
+ <comment><![CDATA[The server to connect to. Defaults to 'inside-graph.com']]></comment>
57
+ </server>
58
  <account translate="label">
59
  <label>Account ID</label>
60
  <frontend_type>text</frontend_type>
61
+ <sort_order>30</sort_order>
62
  <show_in_default>1</show_in_default>
63
  <show_in_website>1</show_in_website>
64
  <show_in_store>1</show_in_store>
app/design/frontend/base/default/template/inside/analytics.phtml CHANGED
@@ -11,7 +11,7 @@
11
 
12
  (function () {
13
  var inside = document.createElement('script'); inside.type = 'text/javascript'; inside.async = true;
14
- inside.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'inside-graph.com/ig.js?hn=' + encodeURIComponent(document.location.hostname) + '&_=' + Math.random();
15
  var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(inside, s);
16
  })();
17
  //]]>
11
 
12
  (function () {
13
  var inside = document.createElement('script'); inside.type = 'text/javascript'; inside.async = true;
14
+ inside.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + '<?php echo $this->_getServer() ?>' +'/ig.js?hn=' + encodeURIComponent(document.location.hostname) + '&_=' + Math.random();
15
  var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(inside, s);
16
  })();
17
  //]]>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Inside_Analytics</name>
4
- <version>2.4.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.inside.tm/servicecontract">Inside Service Contract</license>
7
  <channel>community</channel>
@@ -31,15 +31,12 @@ Call us for an online presentation:&lt;br /&gt;&#xD;
31
  USA Call Hadar on 310.661.0308 9AM - 6PM PST &lt;br /&gt;&#xD;
32
  AUS Call Michael on 03 8637 1534 9AM - 5PM EST </description>
33
  <notes>New Features&#xD;
34
- - page name defaults to meta title&#xD;
35
- &#xD;
36
- Fixed&#xD;
37
- - disabled full page caching of block output&#xD;
38
  </notes>
39
  <authors><author><name>Hadar Paz</name><user>MAG001834167</user><email>hadar.paz@inside.tm</email></author></authors>
40
- <date>2014-08-26</date>
41
- <time>05:44:34</time>
42
- <contents><target name="magecommunity"><dir name="Inside"><dir name="Analytics"><dir name="Block"><dir name="Adminhtml"><dir name="Route"><dir name="Edit"><file name="Form.php" hash="1d33f13c65cd268aa609904a598a4a43"/><dir name="Tab"><file name="General.php" hash="3fb90a753247c42454d942b9c7c12b6a"/></dir><file name="Tabs.php" hash="aeb4125bde86d7d07a1b263e9a776274"/></dir><file name="Edit.php" hash="b250cc9a5b7252d3c8b78fac93bee273"/><file name="Grid.php" hash="6819b33d1e77a64724d3d0d0b61fe894"/></dir><file name="Route.php" hash="1116daacd2d91c25c1b11c238482e9ae"/><dir name="System"><dir name="Config"><dir name="Form"><dir name="Button"><file name="Clearlog.php" hash="2b15b253af80856c7e0f6b18229edb44"/><file name="Showlog.php" hash="3e44b43ce52b5d22806df05ef41fb59a"/></dir></dir></dir></dir></dir><file name="Analytics.php" hash="ea41cfe5c62f00872df628b0bf928c59"/></dir><dir name="Helper"><file name="Data.php" hash="70799e082496c33f0a60ca72f6ed1117"/></dir><dir name="Model"><dir name="Container"><file name="Analytics.php" hash="4bc1c63b05071065d40d1863b5f1235f"/></dir><dir name="Mysql4"><dir name="Route"><file name="Collection.php" hash="8aceeaea4490909d1536f953ba1e28c1"/></dir><file name="Route.php" hash="ef1d9069d996c6e2886a73941fb44c61"/></dir><file name="Observer.php" hash="ff67935a1c07e0c04cf3127a61872cf3"/><dir name="PageView"><file name="Type.php" hash="f74edfe8d845645d3cb2265517306ccd"/></dir><file name="PageView.php" hash="f24017938b8583b82b3b24d7e70472be"/><file name="Route.php" hash="5d5adf4663faa265967e5ae40264b7a1"/><dir name="System"><dir name="Config"><dir name="Source"><file name="Abstract.php" hash="ffd23e007fa3f9fea473c9183bf58bc7"/><dir name="Page"><file name="Type.php" hash="4991eba0607d35132c16b0c7deec0ec0"/></dir></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="DebugController.php" hash="50754bcbce36b1edc99e15445b7f06bc"/><file name="RouteController.php" hash="333445550bd1f8eedf1fc3e7321e1b0d"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="11fbacf4dd6153fdff62b160f3a3cf17"/><file name="cache.xml" hash="b87e8e77bcb7ff06ea305dc371f95719"/><file name="config.xml" hash="70930115decc8ec27df1bc027190e58b"/><file name="system.xml" hash="f47fc8cbf0e91ef1cd2f8478a15b20ba"/></dir><dir name="sql"><dir name="inside_setup"><file name="mysql4-upgrade-1.1.2-2.0.0.php" hash="e123452c8d68d8961663fe6508ca580c"/><file name="mysql4-upgrade-2.0.0-2.1.0.php" hash="59426151530545b4efc807fe22002a18"/><file name="mysql4-upgrade-2.1.0-2.2.0.php" hash="4543cc4128ef9345923e9ac71c05621d"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="inside"><file name="analytics.xml" hash="76a3e04439048e976f23cf7330851ddd"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="inside"><file name="analytics.xml" hash="5d64993f4dec32725664d4ac1073b431"/></dir></dir><dir name="template"><dir name="inside"><file name="analytics.phtml" hash="b276904d6404e5ff773ac4523ea1b729"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Inside_Analytics.xml" hash="4a6e86a99302b7ddecadffb844c4c3a8"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="inside"><file name="route.js" hash="0067644797c73ca5be7c052fdcfaa78d"/></dir></dir></dir></dir></target></contents>
43
  <compatible/>
44
  <dependencies><required><php><min>5.2.13</min><max>6.0.0</max></php></required></dependencies>
45
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Inside_Analytics</name>
4
+ <version>2.5.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.inside.tm/servicecontract">Inside Service Contract</license>
7
  <channel>community</channel>
31
  USA Call Hadar on 310.661.0308 9AM - 6PM PST &lt;br /&gt;&#xD;
32
  AUS Call Michael on 03 8637 1534 9AM - 5PM EST </description>
33
  <notes>New Features&#xD;
34
+ - endpoint server configuration&#xD;
 
 
 
35
  </notes>
36
  <authors><author><name>Hadar Paz</name><user>MAG001834167</user><email>hadar.paz@inside.tm</email></author></authors>
37
+ <date>2014-10-01</date>
38
+ <time>10:00:41</time>
39
+ <contents><target name="magecommunity"><dir name="Inside"><dir name="Analytics"><dir name="Block"><dir name="Adminhtml"><dir name="Route"><dir name="Edit"><file name="Form.php" hash="1d33f13c65cd268aa609904a598a4a43"/><dir name="Tab"><file name="General.php" hash="3fb90a753247c42454d942b9c7c12b6a"/></dir><file name="Tabs.php" hash="aeb4125bde86d7d07a1b263e9a776274"/></dir><file name="Edit.php" hash="b250cc9a5b7252d3c8b78fac93bee273"/><file name="Grid.php" hash="6819b33d1e77a64724d3d0d0b61fe894"/></dir><file name="Route.php" hash="1116daacd2d91c25c1b11c238482e9ae"/><dir name="System"><dir name="Config"><dir name="Form"><dir name="Button"><file name="Clearlog.php" hash="2b15b253af80856c7e0f6b18229edb44"/><file name="Showlog.php" hash="3e44b43ce52b5d22806df05ef41fb59a"/></dir></dir></dir></dir></dir><file name="Analytics.php" hash="f05276c813c4300d154816eb065ee5cc"/></dir><dir name="Helper"><file name="Data.php" hash="685038ac4f7047db4f9b7a18fc16c401"/></dir><dir name="Model"><dir name="Container"><file name="Analytics.php" hash="4bc1c63b05071065d40d1863b5f1235f"/></dir><dir name="Mysql4"><dir name="Route"><file name="Collection.php" hash="8aceeaea4490909d1536f953ba1e28c1"/></dir><file name="Route.php" hash="ef1d9069d996c6e2886a73941fb44c61"/></dir><file name="Observer.php" hash="ff67935a1c07e0c04cf3127a61872cf3"/><dir name="PageView"><file name="Type.php" hash="f74edfe8d845645d3cb2265517306ccd"/></dir><file name="PageView.php" hash="f24017938b8583b82b3b24d7e70472be"/><file name="Route.php" hash="5d5adf4663faa265967e5ae40264b7a1"/><dir name="System"><dir name="Config"><dir name="Source"><file name="Abstract.php" hash="ffd23e007fa3f9fea473c9183bf58bc7"/><dir name="Page"><file name="Type.php" hash="4991eba0607d35132c16b0c7deec0ec0"/></dir></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="DebugController.php" hash="50754bcbce36b1edc99e15445b7f06bc"/><file name="RouteController.php" hash="333445550bd1f8eedf1fc3e7321e1b0d"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="11fbacf4dd6153fdff62b160f3a3cf17"/><file name="cache.xml" hash="b87e8e77bcb7ff06ea305dc371f95719"/><file name="config.xml" hash="634c00e45e3bc9658cacf65956f288e3"/><file name="system.xml" hash="2b8092b04591fdcccbbecc3f19441a5c"/></dir><dir name="sql"><dir name="inside_setup"><file name="mysql4-upgrade-1.1.2-2.0.0.php" hash="e123452c8d68d8961663fe6508ca580c"/><file name="mysql4-upgrade-2.0.0-2.1.0.php" hash="59426151530545b4efc807fe22002a18"/><file name="mysql4-upgrade-2.1.0-2.2.0.php" hash="4543cc4128ef9345923e9ac71c05621d"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="inside"><file name="analytics.xml" hash="76a3e04439048e976f23cf7330851ddd"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="inside"><file name="analytics.xml" hash="5d64993f4dec32725664d4ac1073b431"/></dir></dir><dir name="template"><dir name="inside"><file name="analytics.phtml" hash="c08328c8084fe4b2b0fbf2dbcea12993"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Inside_Analytics.xml" hash="4a6e86a99302b7ddecadffb844c4c3a8"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="inside"><file name="route.js" hash="0067644797c73ca5be7c052fdcfaa78d"/></dir></dir></dir></dir></target></contents>
40
  <compatible/>
41
  <dependencies><required><php><min>5.2.13</min><max>6.0.0</max></php></required></dependencies>
42
  </package>