Version Notes
- enable / disable support
- tag placement support for before head end, after body start, before body end
- 1 or multiple ids
Download this release
Release Info
Developer | Matthew Parke |
Extension | Pinterest_Tag |
Version | 1.0.0 |
Comparing to | |
See all releases |
Version 1.0.0
- app/code/community/EngageCommerce/Pinterest/Helper/Data.php +36 -0
- app/code/community/EngageCommerce/Pinterest/Model/LoadOrder.php +30 -0
- app/code/community/EngageCommerce/Pinterest/etc/adminhtml.xml +43 -0
- app/code/community/EngageCommerce/Pinterest/etc/config.xml +69 -0
- app/code/community/EngageCommerce/Pinterest/etc/system.xml +81 -0
- app/design/frontend/base/default/layout/engagecommerce_pinterest.xml +45 -0
- app/design/frontend/base/default/template/EngageCommerce/Pinterest/pinterest_pixel.phtml +28 -0
- app/design/frontend/base/default/template/EngageCommerce/Pinterest/pixel_after_body_start.phtml +24 -0
- app/design/frontend/base/default/template/EngageCommerce/Pinterest/pixel_before_body_end.phtml +24 -0
- app/design/frontend/base/default/template/EngageCommerce/Pinterest/pixel_before_head_end.phtml +24 -0
- app/etc/modules/EngageCommerce_Pinterest.xml +29 -0
- package.xml +20 -0
app/code/community/EngageCommerce/Pinterest/Helper/Data.php
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Engage Commerce
|
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 |
+
* @category EngageCommerce
|
16 |
+
* @package EngageCommerce_Pinterest
|
17 |
+
* @copyright Copyright (c) 2016 Engage Commerce (http://engagecommerce.io)
|
18 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
+
*/
|
20 |
+
class EngageCommerce_Pinterest_Helper_Data extends Mage_Core_Helper_Abstract
|
21 |
+
{
|
22 |
+
public function isPixelEnabled()
|
23 |
+
{
|
24 |
+
return Mage::getStoreConfig("engagecommerce_pinterest/pinterest_pixel/enabled");
|
25 |
+
}
|
26 |
+
|
27 |
+
public function getLoadOrder()
|
28 |
+
{
|
29 |
+
return Mage::getStoreConfig("engagecommerce_pinterest/pinterest_pixel/loadorder");
|
30 |
+
}
|
31 |
+
|
32 |
+
public function getPixelId()
|
33 |
+
{
|
34 |
+
return Mage::getStoreConfig("engagecommerce_pinterest/pinterest_pixel/pixel_id");
|
35 |
+
}
|
36 |
+
}
|
app/code/community/EngageCommerce/Pinterest/Model/LoadOrder.php
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Engage Commerce
|
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 |
+
* @category EngageCommerce
|
16 |
+
* @package EngageCommerce_Pinterest
|
17 |
+
* @copyright Copyright (c) 2016 Engage Commerce (http://engagecommerce.io)
|
18 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
+
*/
|
20 |
+
class EngageCommerce_Pinterest_Model_LoadOrder extends Mage_Adminhtml_Model_System_Config_Source_Yesno
|
21 |
+
{
|
22 |
+
public function toOptionArray()
|
23 |
+
{
|
24 |
+
return array(
|
25 |
+
array('value' => 'before_head_end', 'label'=>Mage::helper('adminhtml')->__('Before Head End')),
|
26 |
+
array('value' => 'after_body_start', 'label'=>Mage::helper('adminhtml')->__('After Body Start')),
|
27 |
+
array('value' => 'before_body_end', 'label'=>Mage::helper('adminhtml')->__('Before Body End'))
|
28 |
+
);
|
29 |
+
}
|
30 |
+
}
|
app/code/community/EngageCommerce/Pinterest/etc/adminhtml.xml
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Engage Commerce
|
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 license@magentocommerce.com so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* @category EngageCommerce
|
17 |
+
* @package EngageCommerce_Pinterest
|
18 |
+
* @copyright Copyright (c) 2016 Engage Commerce (http://engagecommerce.io)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
-->
|
22 |
+
<config>
|
23 |
+
<acl>
|
24 |
+
<resources>
|
25 |
+
<admin>
|
26 |
+
<children>
|
27 |
+
<system>
|
28 |
+
<children>
|
29 |
+
<config>
|
30 |
+
<children>
|
31 |
+
<engagecommerce_pinterest>
|
32 |
+
<title>Engage Commerce Pinterest Tag</title>
|
33 |
+
<sort_order>990</sort_order>
|
34 |
+
</engagecommerce_pinterest>
|
35 |
+
</children>
|
36 |
+
</config>
|
37 |
+
</children>
|
38 |
+
</system>
|
39 |
+
</children>
|
40 |
+
</admin>
|
41 |
+
</resources>
|
42 |
+
</acl>
|
43 |
+
</config>
|
app/code/community/EngageCommerce/Pinterest/etc/config.xml
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Engage Commerce
|
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 license@magentocommerce.com so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* @category EngageCommerce
|
17 |
+
* @package EngageCommerce_Pinterest
|
18 |
+
* @copyright Copyright (c) 2016 Engage Commerce (http://engagecommerce.io)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
-->
|
22 |
+
<config>
|
23 |
+
<modules>
|
24 |
+
<engagecommerce_pinterest>
|
25 |
+
<version>0.0.1</version>
|
26 |
+
</engagecommerce_pinterest>
|
27 |
+
</modules>
|
28 |
+
<global>
|
29 |
+
<models>
|
30 |
+
<engagecommerce_pinterest>
|
31 |
+
<class>EngageCommerce_Pinterest_Model</class>
|
32 |
+
<resourceModel>engagecommerce_pinterest_resource</resourceModel>
|
33 |
+
</engagecommerce_pinterest>
|
34 |
+
<engagecommerce_pinterest_resource>
|
35 |
+
<class>EngageCommerce_Pinterest_Model_Resource</class>
|
36 |
+
</engagecommerce_pinterest_resource>
|
37 |
+
|
38 |
+
<engagecommerce_pinterest_loadorder>
|
39 |
+
<class>EngageCommerce_Pinterest_Model_LoadOrder</class>
|
40 |
+
<resourceModel>engagecommerce_pinterest_loadorder_resource</resourceModel>
|
41 |
+
</engagecommerce_pinterest_loadorder>
|
42 |
+
<engagecommerce_pinterest_loadorder_resource>
|
43 |
+
<class>EngageCommerce_Pinterest_Model_LoadOrder_Resource</class>
|
44 |
+
</engagecommerce_pinterest_loadorder_resource>
|
45 |
+
</models>
|
46 |
+
<helpers>
|
47 |
+
<engagecommerce_pinterest>
|
48 |
+
<class>EngageCommerce_Pinterest_Helper</class>
|
49 |
+
</engagecommerce_pinterest>
|
50 |
+
</helpers>
|
51 |
+
</global>
|
52 |
+
<frontend>
|
53 |
+
<layout>
|
54 |
+
<updates>
|
55 |
+
<engagecommerce_pinterest>
|
56 |
+
<file>engagecommerce_pinterest.xml</file>
|
57 |
+
</engagecommerce_pinterest>
|
58 |
+
</updates>
|
59 |
+
</layout>
|
60 |
+
</frontend>
|
61 |
+
<default>
|
62 |
+
<engagecommerce_pinterest>
|
63 |
+
<pinterest_pixel>
|
64 |
+
<enabled>0</enabled>
|
65 |
+
<loadorder>before_body_end</loadorder>
|
66 |
+
</pinterest_pixel>
|
67 |
+
</engagecommerce_pinterest>
|
68 |
+
</default>
|
69 |
+
</config>
|
app/code/community/EngageCommerce/Pinterest/etc/system.xml
ADDED
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Engage Commerce
|
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 license@magentocommerce.com so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* @category EngageCommerce
|
17 |
+
* @package EngageCommerce_Pinterest
|
18 |
+
* @copyright Copyright (c) 2016 Engage Commerce (http://engagecommerce.io)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
-->
|
22 |
+
<config>
|
23 |
+
<tabs>
|
24 |
+
<engagecommerce>
|
25 |
+
<label>Engage Commerce</label>
|
26 |
+
<sort_order>100</sort_order>
|
27 |
+
</engagecommerce>
|
28 |
+
</tabs>
|
29 |
+
<sections>
|
30 |
+
<engagecommerce_pinterest translate="label">
|
31 |
+
<label>Pinterest Tag</label>
|
32 |
+
<tab>engagecommerce</tab>
|
33 |
+
<frontend_type>text</frontend_type>
|
34 |
+
<sort_order>2</sort_order>
|
35 |
+
<show_in_default>1</show_in_default>
|
36 |
+
<show_in_website>1</show_in_website>
|
37 |
+
<show_in_store>1</show_in_store>
|
38 |
+
<groups>
|
39 |
+
<pinterest_pixel translate="label">
|
40 |
+
<label>Setup All "Page Visits" Tag</label>
|
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 |
+
<sort_order>1</sort_order>
|
45 |
+
<expanded>1</expanded>
|
46 |
+
<fields>
|
47 |
+
<enabled translate="label">
|
48 |
+
<label>Enabled</label>
|
49 |
+
<frontend_type>select</frontend_type>
|
50 |
+
<source_model>adminhtml/system_config_source_enabledisable</source_model>
|
51 |
+
<sort_order>10</sort_order>
|
52 |
+
<show_in_default>1</show_in_default>
|
53 |
+
<show_in_website>1</show_in_website>
|
54 |
+
<show_in_store>1</show_in_store>
|
55 |
+
<comment><![CDATA[Enabling the Pinterest tag for "Page Visits" will allow the tag to load on every page, sending your visitor traffic to Pinterest so that you can utilize <a href="https://help.pinterest.com/en/articles/website-conversion-tracking" target="_blank">conversion tracking</a>.]]></comment>
|
56 |
+
</enabled>
|
57 |
+
<pixel_id translate="label">
|
58 |
+
<label>Pinterest Tag ID(s)</label>
|
59 |
+
<frontend_type>text</frontend_type>
|
60 |
+
<sort_order>20</sort_order>
|
61 |
+
<show_in_default>1</show_in_default>
|
62 |
+
<show_in_website>1</show_in_website>
|
63 |
+
<show_in_store>1</show_in_store>
|
64 |
+
<comment><![CDATA[Your Pinterest tag ID(s) can be found when you edit tags from the <a href="https://ads.pinterest.com/conversion_tags/" target="_blank">conversion tracking</a> page. See this <a href="https://help.pinterest.com/sites/help/files/conversion-tracking.pdf" target="_blank">help pdf</a> for more info. If entering multiple IDs, please separate them with a comma.]]></comment>
|
65 |
+
</pixel_id>
|
66 |
+
<loadorder translate="label">
|
67 |
+
<label>Pinterest Tag Load Order</label>
|
68 |
+
<frontend_type>select</frontend_type>
|
69 |
+
<source_model>EngageCommerce_Pinterest_Model_LoadOrder</source_model>
|
70 |
+
<sort_order>10</sort_order>
|
71 |
+
<show_in_default>1</show_in_default>
|
72 |
+
<show_in_website>1</show_in_website>
|
73 |
+
<show_in_store>1</show_in_store>
|
74 |
+
<comment><![CDATA[Change where in your page the Pinterest tag will load if needed, but <a href="https://help.pinterest.com/en/articles/website-conversion-tracking" target="_blank">Pinterest recommends</a> loading it at the end of the body section.]]></comment>
|
75 |
+
</loadorder>
|
76 |
+
</fields>
|
77 |
+
</pinterest_pixel>
|
78 |
+
</groups>
|
79 |
+
</engagecommerce_pinterest>
|
80 |
+
</sections>
|
81 |
+
</config>
|
app/design/frontend/base/default/layout/engagecommerce_pinterest.xml
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Engage Commerce
|
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 license@magentocommerce.com so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* @category EngageCommerce
|
17 |
+
* @package EngageCommerce_Pinterest
|
18 |
+
* @copyright Copyright (c) 2016 Engage Commerce (http://engagecommerce.io)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
-->
|
22 |
+
<layout version="0.1.0">
|
23 |
+
<default>
|
24 |
+
<reference name="head">
|
25 |
+
<block type="core/template" name="engagecommerce_pinterest_before_head_end" as="engagecommerce_pinterest_before_head_end" template="EngageCommerce/Pinterest/pixel_before_head_end.phtml" />
|
26 |
+
</reference>
|
27 |
+
<reference name="engagecommerce_pinterest_before_head_end">
|
28 |
+
<block type="core/template" name="engagecommerce_pinterest_pixel" as="engagecommerce_pinterest_pixel" template="EngageCommerce/Pinterest/pinterest_pixel.phtml" />
|
29 |
+
</reference>
|
30 |
+
|
31 |
+
<reference name="after_body_start">
|
32 |
+
<block type="core/template" name="engagecommerce_pinterest_after_body_start" as="engagecommerce_pinterest_after_body_start" template="EngageCommerce/Pinterest/pixel_after_body_start.phtml" />
|
33 |
+
</reference>
|
34 |
+
<reference name="engagecommerce_pinterest_after_body_start">
|
35 |
+
<block type="core/template" name="engagecommerce_pinterest_pixel" as="engagecommerce_pinterest_pixel" template="EngageCommerce/Pinterest/pinterest_pixel.phtml" />
|
36 |
+
</reference>
|
37 |
+
|
38 |
+
<reference name="before_body_end">
|
39 |
+
<block type="core/template" name="engagecommerce_pinterest_before_body_end" as="engagecommerce_pinterest_before_body_end" template="EngageCommerce/Pinterest/pixel_before_body_end.phtml" />
|
40 |
+
</reference>
|
41 |
+
<reference name="engagecommerce_pinterest_before_body_end">
|
42 |
+
<block type="core/template" name="engagecommerce_pinterest_pixel" as="engagecommerce_pinterest_pixel" template="EngageCommerce/Pinterest/pinterest_pixel.phtml" />
|
43 |
+
</reference>
|
44 |
+
</default>
|
45 |
+
</layout>
|
app/design/frontend/base/default/template/EngageCommerce/Pinterest/pinterest_pixel.phtml
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Engage Commerce
|
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 |
+
* @category EngageCommerce
|
16 |
+
* @package EngageCommerce_Pinterest
|
17 |
+
* @copyright Copyright (c) 2016 Engage Commerce (http://engagecommerce.io)
|
18 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
+
*/
|
20 |
+
$pixelHelper = Mage::helper("engagecommerce_pinterest");
|
21 |
+
$pixelId = $pixelHelper->getPixelId();
|
22 |
+
$pixelArr = array_filter(array_map('trim', explode(',', $pixelId)), 'strlen');
|
23 |
+
?>
|
24 |
+
|
25 |
+
<!-- Engage Commerce: Pinterest Tag Code -->
|
26 |
+
<?php foreach($pixelArr as $id): ?>
|
27 |
+
<img height="1" width="1" alt="" src="//ct.pinterest.com/?tid=<?php echo $id ?>"/>
|
28 |
+
<?php endforeach; ?>
|
app/design/frontend/base/default/template/EngageCommerce/Pinterest/pixel_after_body_start.phtml
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Engage Commerce
|
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 |
+
* @category EngageCommerce
|
16 |
+
* @package EngageCommerce_Pinterest
|
17 |
+
* @copyright Copyright (c) 2016 Engage Commerce (http://engagecommerce.io)
|
18 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
+
*/
|
20 |
+
$pixelHelper = Mage::helper("engagecommerce_pinterest");
|
21 |
+
if ($pixelHelper->isPixelEnabled() && ($pixelHelper->getLoadOrder() === 'after_body_start')) {
|
22 |
+
echo $this->getChildHtml('engagecommerce_pinterest_pixel');
|
23 |
+
}
|
24 |
+
?>
|
app/design/frontend/base/default/template/EngageCommerce/Pinterest/pixel_before_body_end.phtml
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Engage Commerce
|
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 |
+
* @category EngageCommerce
|
16 |
+
* @package EngageCommerce_Pinterest
|
17 |
+
* @copyright Copyright (c) 2016 Engage Commerce (http://engagecommerce.io)
|
18 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
+
*/
|
20 |
+
$pixelHelper = Mage::helper("engagecommerce_pinterest");
|
21 |
+
if ($pixelHelper->isPixelEnabled() && ($pixelHelper->getLoadOrder() === 'before_body_end')) {
|
22 |
+
echo $this->getChildHtml('engagecommerce_pinterest_pixel');
|
23 |
+
}
|
24 |
+
?>
|
app/design/frontend/base/default/template/EngageCommerce/Pinterest/pixel_before_head_end.phtml
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Engage Commerce
|
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 |
+
* @category EngageCommerce
|
16 |
+
* @package EngageCommerce_Pinterest
|
17 |
+
* @copyright Copyright (c) 2016 Engage Commerce (http://engagecommerce.io)
|
18 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
+
*/
|
20 |
+
$pixelHelper = Mage::helper("engagecommerce_pinterest");
|
21 |
+
if ($pixelHelper->isPixelEnabled() && ($pixelHelper->getLoadOrder() === 'before_head_end')) {
|
22 |
+
echo $this->getChildHtml('engagecommerce_pinterest_pixel');
|
23 |
+
}
|
24 |
+
?>
|
app/etc/modules/EngageCommerce_Pinterest.xml
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Engage Commerce
|
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 license@magentocommerce.com so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* @category EngageCommerce
|
17 |
+
* @package EngageCommerce_Pinterest
|
18 |
+
* @copyright Copyright (c) 2016 Engage Commerce (http://engagecommerce.io)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
-->
|
22 |
+
<config>
|
23 |
+
<modules>
|
24 |
+
<EngageCommerce_Pinterest>
|
25 |
+
<active>true</active>
|
26 |
+
<codePool>community</codePool>
|
27 |
+
</EngageCommerce_Pinterest>
|
28 |
+
</modules>
|
29 |
+
</config>
|
package.xml
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>Pinterest_Tag</name>
|
4 |
+
<version>1.0.0</version>
|
5 |
+
<stability>stable</stability>
|
6 |
+
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
|
7 |
+
<channel>community</channel>
|
8 |
+
<extends/>
|
9 |
+
<summary>The Pinterest Tag for All “Page Visits” is for advertisers that want to track conversions from their Pinterest Promoted Pins.</summary>
|
10 |
+
<description>The Pinterest Tag for All “Page Visits” is a javascript analytics tag that captures when a user visits a page. For more details, visit http://engagecommerce.io/downloads/pinterest-tag-all-page-visits-magento/</description>
|
11 |
+
<notes> - enable / disable support
|
12 |
+
- tag placement support for before head end, after body start, before body end
|
13 |
+
- 1 or multiple ids</notes>
|
14 |
+
<authors><author><name>Matthew Parke</name><user>MAG003281797</user><email>magento@engagecommerce.io</email></author></authors>
|
15 |
+
<date>2016-01-19</date>
|
16 |
+
<time>03:48:40</time>
|
17 |
+
<contents><target name="magecommunity"><dir name="EngageCommerce"><dir name="Pinterest"><dir name="Helper"><file name="Data.php" hash="0e82db74df7692897b336507438f06cd"/></dir><dir name="Model"><file name="LoadOrder.php" hash="7c90095a760e2e6da43d58ce5d083b6a"/></dir><dir name="etc"><file name="adminhtml.xml" hash="781ecd90132ee54d4e746cf06f8f2202"/><file name="config.xml" hash="9cfc44d52a240f02412d8b644e11410e"/><file name="system.xml" hash="ad51a26cd083c6e3adc3cc928e32da50"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="engagecommerce_pinterest.xml" hash="4092fe01599b628b66f269baa626bf48"/></dir><dir name="template"><dir name="EngageCommerce"><dir name="Pinterest"><file name="pinterest_pixel.phtml" hash="98e2668dda70e4f84c16484f0e47da8a"/><file name="pixel_after_body_start.phtml" hash="b1e93bfd5a63fb33a71356512e4ae835"/><file name="pixel_before_body_end.phtml" hash="f29e0b776119bbc8261ae3bb70d5e0d6"/><file name="pixel_before_head_end.phtml" hash="4080ff5e15d0788f7f4e493f04895036"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="EngageCommerce_Pinterest.xml" hash="a269af6563f9d5e088e0a013c62e624c"/></dir></target></contents>
|
18 |
+
<compatible/>
|
19 |
+
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
20 |
+
</package>
|