Version Notes
Initial release.
Download this release
Release Info
Developer | Rashmi Porwal |
Extension | Ensighten_Webanalytics |
Version | 1.0.0 |
Comparing to | |
See all releases |
Version 1.0.0
- app/code/community/Ensighten/Webanalytics/Block/Js.php +21 -0
- app/code/community/Ensighten/Webanalytics/Helper/Data.php +35 -0
- app/code/community/Ensighten/Webanalytics/etc/config.xml +60 -0
- app/code/community/Ensighten/Webanalytics/etc/system.xml +50 -0
- app/design/adminhtml/default/default/layout/webanalytics.xml +17 -0
- app/design/frontend/default/default/layout/webanalytics.xml +8 -0
- app/design/frontend/default/default/template/webanalytics/js.phtml +5 -0
- app/etc/modules/Ensighten_Webanalytics.xml +9 -0
- package.xml +18 -0
- skin/adminhtml/default/default/webanalytics/css/window.css +14 -0
- skin/adminhtml/default/default/webanalytics/images/ensighten-icon.png +0 -0
app/code/community/Ensighten/Webanalytics/Block/Js.php
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Ensighten_Webanalytics_Block_Js extends Mage_Core_Block_Template
|
3 |
+
{
|
4 |
+
public function _prepareLayout()
|
5 |
+
{
|
6 |
+
return parent::_prepareLayout();
|
7 |
+
}
|
8 |
+
|
9 |
+
public function getJsHtml()
|
10 |
+
{
|
11 |
+
if (Mage::getStoreConfig('ensighten/general/active'))
|
12 |
+
{
|
13 |
+
|
14 |
+
$clientName = Mage::getStoreConfig('ensighten/general/clientname');
|
15 |
+
$protocol = Mage::app()->getStore()->isCurrentlySecure() ? 'https' : 'http';
|
16 |
+
return '<script src="' . $protocol
|
17 |
+
. '://nexus.ensighten.com/'.$clientName.'/Bootstrap.js" type="text/javascript"></script>';
|
18 |
+
}
|
19 |
+
return '';
|
20 |
+
} //end of function
|
21 |
+
}//end of class
|
app/code/community/Ensighten/Webanalytics/Helper/Data.php
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category Mage
|
22 |
+
* @package Mage_GoogleAnalytics
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
+
*/
|
26 |
+
|
27 |
+
|
28 |
+
/**
|
29 |
+
* GoogleAnalytics data helper
|
30 |
+
*
|
31 |
+
* @category Mage
|
32 |
+
* @package Mage_GoogleAnalytics
|
33 |
+
*/
|
34 |
+
class Ensighten_Webanalytics_Helper_Data extends Mage_Core_Helper_Abstract
|
35 |
+
{}
|
app/code/community/Ensighten/Webanalytics/etc/config.xml
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Ensighten_Webanalytics>
|
5 |
+
<version>1.0.0</version>
|
6 |
+
</Ensighten_Webanalytics>
|
7 |
+
</modules>
|
8 |
+
<global>
|
9 |
+
<blocks>
|
10 |
+
<webanalytics>
|
11 |
+
<class>Ensighten_Webanalytics_Block</class>
|
12 |
+
</webanalytics>
|
13 |
+
</blocks>
|
14 |
+
<helpers>
|
15 |
+
<webanalytics>
|
16 |
+
<class>Ensighten_Webanalytics_Helper</class>
|
17 |
+
</webanalytics>
|
18 |
+
</helpers>
|
19 |
+
</global>
|
20 |
+
<frontend>
|
21 |
+
<layout>
|
22 |
+
<updates>
|
23 |
+
<webanalytics>
|
24 |
+
<file>webanalytics.xml</file>
|
25 |
+
</webanalytics>
|
26 |
+
</updates>
|
27 |
+
</layout>
|
28 |
+
</frontend>
|
29 |
+
<adminhtml>
|
30 |
+
<layout>
|
31 |
+
<updates>
|
32 |
+
<webanalytics>
|
33 |
+
<file>webanalytics.xml</file>
|
34 |
+
</webanalytics>
|
35 |
+
</updates>
|
36 |
+
</layout>
|
37 |
+
<acl>
|
38 |
+
<resources>
|
39 |
+
<all>
|
40 |
+
<title>Allow Everything</title>
|
41 |
+
</all>
|
42 |
+
<admin>
|
43 |
+
<children>
|
44 |
+
<system>
|
45 |
+
<children>
|
46 |
+
<config>
|
47 |
+
<children>
|
48 |
+
<ensighten>
|
49 |
+
<title>Ensighten API</title>
|
50 |
+
</ensighten>
|
51 |
+
</children>
|
52 |
+
</config>
|
53 |
+
</children>
|
54 |
+
</system>
|
55 |
+
</children>
|
56 |
+
</admin>
|
57 |
+
</resources>
|
58 |
+
</acl>
|
59 |
+
</adminhtml>
|
60 |
+
</config>
|
app/code/community/Ensighten/Webanalytics/etc/system.xml
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<tabs>
|
4 |
+
<ensighten module="webanalytics">
|
5 |
+
<label>Ensighten</label>
|
6 |
+
<sort_order>500</sort_order>
|
7 |
+
</ensighten>
|
8 |
+
</tabs>
|
9 |
+
<sections>
|
10 |
+
<ensighten module="webanalytics">
|
11 |
+
<label>Ensighten API</label>
|
12 |
+
<class>webanalytics-section</class>
|
13 |
+
<tab>ensighten</tab>
|
14 |
+
<frontend_type>text</frontend_type>
|
15 |
+
<sort_order>550</sort_order>
|
16 |
+
<show_in_default>1</show_in_default>
|
17 |
+
<show_in_website>1</show_in_website>
|
18 |
+
<show_in_store>1</show_in_store>
|
19 |
+
<groups>
|
20 |
+
<general >
|
21 |
+
<label>General</label>
|
22 |
+
<frontend_type>text</frontend_type>
|
23 |
+
<sort_order>10</sort_order>
|
24 |
+
<show_in_default>1</show_in_default>
|
25 |
+
<show_in_website>1</show_in_website>
|
26 |
+
<show_in_store>1</show_in_store>
|
27 |
+
<fields>
|
28 |
+
<active >
|
29 |
+
<label>Enable</label>
|
30 |
+
<frontend_type>select</frontend_type>
|
31 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
32 |
+
<sort_order>10</sort_order>
|
33 |
+
<show_in_default>1</show_in_default>
|
34 |
+
<show_in_website>1</show_in_website>
|
35 |
+
<show_in_store>1</show_in_store>
|
36 |
+
</active>
|
37 |
+
<clientname >
|
38 |
+
<label>Client Name</label>
|
39 |
+
<frontend_type>text</frontend_type>
|
40 |
+
<sort_order>20</sort_order>
|
41 |
+
<show_in_default>1</show_in_default>
|
42 |
+
<show_in_website>1</show_in_website>
|
43 |
+
<show_in_store>1</show_in_store>
|
44 |
+
</clientname>
|
45 |
+
</fields>
|
46 |
+
</general>
|
47 |
+
</groups>
|
48 |
+
</ensighten>
|
49 |
+
</sections>
|
50 |
+
</config>
|
app/design/adminhtml/default/default/layout/webanalytics.xml
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<layout>
|
3 |
+
<default>
|
4 |
+
<reference name="head">
|
5 |
+
<action method="addCss">
|
6 |
+
<name>webanalytics/css/window.css</name>
|
7 |
+
</action>
|
8 |
+
|
9 |
+
</reference>
|
10 |
+
</default>
|
11 |
+
<!--<adminhtml_system_config_edit>
|
12 |
+
<reference name="content">
|
13 |
+
<block type="awall/jsinit" name="aw_all_jsinit" template="aw_all/jsinit.phtml"></block>
|
14 |
+
</reference>
|
15 |
+
</adminhtml_system_config_edit>-->
|
16 |
+
|
17 |
+
</layout>
|
app/design/frontend/default/default/layout/webanalytics.xml
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<layout version="0.1.0">
|
3 |
+
<default>
|
4 |
+
<reference name="head">
|
5 |
+
<block type="webanalytics/js" name="web_analytics" as="web_analytics" template="webanalytics/js.phtml" />
|
6 |
+
</reference>
|
7 |
+
</default>
|
8 |
+
</layout>
|
app/design/frontend/default/default/template/webanalytics/js.phtml
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
echo $this->getJsHtml();
|
4 |
+
|
5 |
+
?>
|
app/etc/modules/Ensighten_Webanalytics.xml
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Ensighten_Webanalytics>
|
5 |
+
<active>true</active>
|
6 |
+
<codePool>community</codePool>
|
7 |
+
</Ensighten_Webanalytics>
|
8 |
+
</modules>
|
9 |
+
</config>
|
package.xml
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>Ensighten_Webanalytics</name>
|
4 |
+
<version>1.0.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>
|
8 |
+
<extends/>
|
9 |
+
<summary>This extension empowers marketers with an easy-to-use Web interface that lets them quickly add, remove or manage any third-party service such as Web analytics tags or advertising pixels.</summary>
|
10 |
+
<description>Ensighten’s enterprise tag management and privacy solutions enable the world’s largest enterprises to manage their websites more effectively. Ensighten’s industry-leading tag management platform replaces hundreds of lines of code per Web page with a single line of code, and empowers marketers with an easy-to-use Web interface that lets them quickly add, remove or manage any third-party service such as Web analytics tags or advertising pixels.</description>
|
11 |
+
<notes>Initial release.</notes>
|
12 |
+
<authors><author><name>Rashmi Porwal</name><user>ebizneedsindia</user><email>rashmi.porwal08@gmail.com</email></author></authors>
|
13 |
+
<date>2012-12-10</date>
|
14 |
+
<time>12:33:35</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Ensighten"><dir name="Webanalytics"><dir name="Block"><file name="Js.php" hash="a0aaca09b75d4a987abc39c20d062bae"/></dir><dir name="Helper"><file name="Data.php" hash="55ba3f084b86359ffc0a6f7de17dc7e9"/></dir><dir name="etc"><file name="config.xml" hash="cf6f8b868bca9961a18e312fce0890ac"/><file name="system.xml" hash="35fe3e3cf50e4f17e4da5ce668d69839"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Ensighten_Webanalytics.xml" hash="192ef4105aaf4579979600fc7f3a3e6a"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="webanalytics.xml" hash="929b84d8f4427051f0bddf42b6590e32"/></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="webanalytics.xml" hash="b25462fc8d72d4be11ec70da615253fb"/></dir><dir name="template"><dir name="webanalytics"><file name="js.phtml" hash="43d6589a59ee94ef82053846f11b5477"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="webanalytics"><dir name="css"><file name="window.css" hash="cf091a611e9c3330016dd38e5a4768cf"/></dir><dir name="images"><file name="ensighten-icon.png" hash="e9dbd483179eec95b9970ca2753c417f"/></dir></dir></dir></dir></dir></target></contents>
|
16 |
+
<compatible/>
|
17 |
+
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
+
</package>
|
skin/adminhtml/default/default/webanalytics/css/window.css
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
ul.tabs a.webanalytics-section span, ul.tabs a.webanalytics-section:hover span {
|
2 |
+
background: url('../images/ensighten-icon.png') no-repeat scroll 0 0 transparent;
|
3 |
+
height: 0;
|
4 |
+
overflow: hidden;
|
5 |
+
padding: 40px 0 0;
|
6 |
+
width: 40px;
|
7 |
+
}
|
8 |
+
ul.tabs a.webanalytics-section:hover {
|
9 |
+
background-color: #d8e6e6;
|
10 |
+
}
|
11 |
+
|
12 |
+
ul.tabs a.webanalytics-section.active, ul.tabs a.webanalytics-section.active:hover {
|
13 |
+
background-color: #FFFFFF;
|
14 |
+
}
|
skin/adminhtml/default/default/webanalytics/images/ensighten-icon.png
ADDED
Binary file
|