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 | LinkedIn_Insight_Tag |
Version | 1.0.0 |
Comparing to | |
See all releases |
Version 1.0.0
- app/code/community/EngageCommerce/LinkedIn/Helper/Data.php +36 -0
- app/code/community/EngageCommerce/LinkedIn/Model/LoadOrder.php +30 -0
- app/code/community/EngageCommerce/LinkedIn/etc/adminhtml.xml +43 -0
- app/code/community/EngageCommerce/LinkedIn/etc/config.xml +69 -0
- app/code/community/EngageCommerce/LinkedIn/etc/system.xml +81 -0
- app/design/frontend/base/default/layout/engagecommerce_linkedin.xml +45 -0
- app/design/frontend/base/default/template/EngageCommerce/LinkedIn/linkedin_pixel.phtml +48 -0
- app/design/frontend/base/default/template/EngageCommerce/LinkedIn/pixel_after_body_start.phtml +24 -0
- app/design/frontend/base/default/template/EngageCommerce/LinkedIn/pixel_before_body_end.phtml +24 -0
- app/design/frontend/base/default/template/EngageCommerce/LinkedIn/pixel_before_head_end.phtml +24 -0
- app/etc/modules/EngageCommerce_LinkedIn.xml +29 -0
- package.xml +20 -0
app/code/community/EngageCommerce/LinkedIn/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_LinkedIn
|
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_LinkedIn_Helper_Data extends Mage_Core_Helper_Abstract
|
21 |
+
{
|
22 |
+
public function isPixelEnabled()
|
23 |
+
{
|
24 |
+
return Mage::getStoreConfig("engagecommerce_linkedin/linkedin_pixel/enabled");
|
25 |
+
}
|
26 |
+
|
27 |
+
public function getLoadOrder()
|
28 |
+
{
|
29 |
+
return Mage::getStoreConfig("engagecommerce_linkedin/linkedin_pixel/loadorder");
|
30 |
+
}
|
31 |
+
|
32 |
+
public function getPixelId()
|
33 |
+
{
|
34 |
+
return Mage::getStoreConfig("engagecommerce_linkedin/linkedin_pixel/pixel_id");
|
35 |
+
}
|
36 |
+
}
|
app/code/community/EngageCommerce/LinkedIn/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_LinkedIn
|
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_LinkedIn_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/LinkedIn/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_LinkedIn
|
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_linkedin>
|
32 |
+
<title>Engage Commerce LinkedIn Insight Tag</title>
|
33 |
+
<sort_order>990</sort_order>
|
34 |
+
</engagecommerce_linkedin>
|
35 |
+
</children>
|
36 |
+
</config>
|
37 |
+
</children>
|
38 |
+
</system>
|
39 |
+
</children>
|
40 |
+
</admin>
|
41 |
+
</resources>
|
42 |
+
</acl>
|
43 |
+
</config>
|
app/code/community/EngageCommerce/LinkedIn/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_LinkedIn
|
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_linkedin>
|
25 |
+
<version>0.0.1</version>
|
26 |
+
</engagecommerce_linkedin>
|
27 |
+
</modules>
|
28 |
+
<global>
|
29 |
+
<models>
|
30 |
+
<engagecommerce_linkedin>
|
31 |
+
<class>EngageCommerce_LinkedIn_Model</class>
|
32 |
+
<resourceModel>engagecommerce_linkedin_resource</resourceModel>
|
33 |
+
</engagecommerce_linkedin>
|
34 |
+
<engagecommerce_linkedin_resource>
|
35 |
+
<class>EngageCommerce_LinkedIn_Model_Resource</class>
|
36 |
+
</engagecommerce_linkedin_resource>
|
37 |
+
|
38 |
+
<engagecommerce_linkedin_loadorder>
|
39 |
+
<class>EngageCommerce_LinkedIn_Model_LoadOrder</class>
|
40 |
+
<resourceModel>engagecommerce_linkedin_loadorder_resource</resourceModel>
|
41 |
+
</engagecommerce_linkedin_loadorder>
|
42 |
+
<engagecommerce_linkedin_loadorder_resource>
|
43 |
+
<class>EngageCommerce_LinkedIn_Model_LoadOrder_Resource</class>
|
44 |
+
</engagecommerce_linkedin_loadorder_resource>
|
45 |
+
</models>
|
46 |
+
<helpers>
|
47 |
+
<engagecommerce_linkedin>
|
48 |
+
<class>EngageCommerce_LinkedIn_Helper</class>
|
49 |
+
</engagecommerce_linkedin>
|
50 |
+
</helpers>
|
51 |
+
</global>
|
52 |
+
<frontend>
|
53 |
+
<layout>
|
54 |
+
<updates>
|
55 |
+
<engagecommerce_linkedin>
|
56 |
+
<file>engagecommerce_linkedin.xml</file>
|
57 |
+
</engagecommerce_linkedin>
|
58 |
+
</updates>
|
59 |
+
</layout>
|
60 |
+
</frontend>
|
61 |
+
<default>
|
62 |
+
<engagecommerce_linkedin>
|
63 |
+
<linkedin_pixel>
|
64 |
+
<enabled>0</enabled>
|
65 |
+
<loadorder>before_body_end</loadorder>
|
66 |
+
</linkedin_pixel>
|
67 |
+
</engagecommerce_linkedin>
|
68 |
+
</default>
|
69 |
+
</config>
|
app/code/community/EngageCommerce/LinkedIn/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_LinkedIn
|
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_linkedin translate="label">
|
31 |
+
<label>LinkedIn Insight Tag</label>
|
32 |
+
<tab>engagecommerce</tab>
|
33 |
+
<frontend_type>text</frontend_type>
|
34 |
+
<sort_order>3</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 |
+
<linkedin_pixel translate="label">
|
40 |
+
<label>Setup Insight 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 LinkedIn Insight tag will allow the tag to load on every page, sending your visitor traffic to LinkedIn so that you can both <a href="http://help.lms.linkedin.com/hc/en-us/articles/205799748-What-is-the-LinkedIn-Insight-Tag-" target="_blank">retarget your users and track conversions</a>.]]></comment>
|
56 |
+
</enabled>
|
57 |
+
<pixel_id translate="label">
|
58 |
+
<label>Insight Tag ID</label>
|
59 |
+
<frontend_types>text</frontend_types>
|
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 Insight tag ID(s) can be found in your LinkedIn Marketing Solutions hub when you edit the tag as seen in LinkedIn's <a href="http://help.lms.linkedin.com/hc/en-us/articles/203993478-Adding-the-LinkedIn-Insight-Tag-to-your-website" target="_blank">help center</a> documentation. If entering multiple IDs, please separate them with a comma.]]></comment>
|
65 |
+
</pixel_id>
|
66 |
+
<loadorder translate="label">
|
67 |
+
<label>Insight Tag Load Order</label>
|
68 |
+
<frontend_type>select</frontend_type>
|
69 |
+
<source_model>EngageCommerce_LinkedIn_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 LinkedIn Insight tag will load if needed, but <a href="http://help.lms.linkedin.com/hc/en-us/articles/203993478-Adding-the-LinkedIn-Insight-Tag-to-your-website" target="_blank">LinkedIn recommends</a> loading it at the end of the body section.]]></comment>
|
75 |
+
</loadorder>
|
76 |
+
</fields>
|
77 |
+
</linkedin_pixel>
|
78 |
+
</groups>
|
79 |
+
</engagecommerce_linkedin>
|
80 |
+
</sections>
|
81 |
+
</config>
|
app/design/frontend/base/default/layout/engagecommerce_linkedin.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_LinkedIn
|
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_linkedin_before_head_end" as="engagecommerce_linkedin_before_head_end" template="EngageCommerce/LinkedIn/pixel_before_head_end.phtml" />
|
26 |
+
</reference>
|
27 |
+
<reference name="engagecommerce_linkedin_before_head_end">
|
28 |
+
<block type="core/template" name="engagecommerce_linkedin_pixel" as="engagecommerce_linkedin_pixel" template="EngageCommerce/LinkedIn/linkedin_pixel.phtml" />
|
29 |
+
</reference>
|
30 |
+
|
31 |
+
<reference name="after_body_start">
|
32 |
+
<block type="core/template" name="engagecommerce_linkedin_after_body_start" as="engagecommerce_linkedin_after_body_start" template="EngageCommerce/LinkedIn/pixel_after_body_start.phtml" />
|
33 |
+
</reference>
|
34 |
+
<reference name="engagecommerce_linkedin_after_body_start">
|
35 |
+
<block type="core/template" name="engagecommerce_linkedin_pixel" as="engagecommerce_linkedin_pixel" template="EngageCommerce/LinkedIn/linkedin_pixel.phtml" />
|
36 |
+
</reference>
|
37 |
+
|
38 |
+
<reference name="before_body_end">
|
39 |
+
<block type="core/template" name="engagecommerce_linkedin_before_body_end" as="engagecommerce_linkedin_before_body_end" template="EngageCommerce/LinkedIn/pixel_before_body_end.phtml" />
|
40 |
+
</reference>
|
41 |
+
<reference name="engagecommerce_linkedin_before_body_end">
|
42 |
+
<block type="core/template" name="engagecommerce_linkedin_pixel" as="engagecommerce_linkedin_pixel" template="EngageCommerce/LinkedIn/linkedin_pixel.phtml" />
|
43 |
+
</reference>
|
44 |
+
</default>
|
45 |
+
</layout>
|
app/design/frontend/base/default/template/EngageCommerce/LinkedIn/linkedin_pixel.phtml
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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_LinkedIn
|
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_linkedin");
|
21 |
+
$pixelId = $pixelHelper->getPixelId();
|
22 |
+
$pixelArr = array_filter(array_map('trim', explode(',', $pixelId)), 'strlen');
|
23 |
+
?>
|
24 |
+
|
25 |
+
<?php if (count($pixelArr) === 1): ?>
|
26 |
+
<!-- Engage Commerce: Linkedin Insight Tag Code -->
|
27 |
+
<script type="text/javascript">
|
28 |
+
_biz0_data_partner_id = '<?php echo $pixelArr[0] ?>';
|
29 |
+
</script>
|
30 |
+
<script type="text/javascript">
|
31 |
+
(function() {
|
32 |
+
var s = document.getElementsByTagName("script")[0];
|
33 |
+
var b = document.createElement("script");
|
34 |
+
b.type = "text/javascript";
|
35 |
+
b.async = true;
|
36 |
+
b.src = (window.location.protocol === "https:" ? "https://sjs" : "http://js") + ".bizographics.com/insight.min.js";
|
37 |
+
s.parentNode.insertBefore(b, s);
|
38 |
+
})();
|
39 |
+
</script>
|
40 |
+
<noscript>
|
41 |
+
<img height="1" width="1" alt="" style="display:none;" src="//www.bizographics.com/collect/?pid=<?php echo $pixelArr[0] ?>&fmt=gif" />
|
42 |
+
</noscript>
|
43 |
+
<?php else: ?>
|
44 |
+
<!-- Engage Commerce: Linkedin Insight Tag Code -->
|
45 |
+
<?php foreach($pixelArr as $id): ?>
|
46 |
+
<img height="1" width="1" alt="" style="display:none;" src="//www.bizographics.com/collect/?pid=<?php echo $id ?>&fmt=gif" />
|
47 |
+
<? endforeach; ?>
|
48 |
+
<?php endif; ?>
|
app/design/frontend/base/default/template/EngageCommerce/LinkedIn/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_LinkedIn
|
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_linkedin");
|
21 |
+
if ($pixelHelper->isPixelEnabled() && ($pixelHelper->getLoadOrder() === 'after_body_start')) {
|
22 |
+
echo $this->getChildHtml('engagecommerce_linkedin_pixel');
|
23 |
+
}
|
24 |
+
?>
|
app/design/frontend/base/default/template/EngageCommerce/LinkedIn/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_LinkedIn
|
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_linkedin");
|
21 |
+
if ($pixelHelper->isPixelEnabled() && ($pixelHelper->getLoadOrder() === 'before_body_end')) {
|
22 |
+
echo $this->getChildHtml('engagecommerce_linkedin_pixel');
|
23 |
+
}
|
24 |
+
?>
|
app/design/frontend/base/default/template/EngageCommerce/LinkedIn/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_LinkedIn
|
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_linkedin");
|
21 |
+
if ($pixelHelper->isPixelEnabled() && ($pixelHelper->getLoadOrder() === 'before_head_end')) {
|
22 |
+
echo $this->getChildHtml('engagecommerce_linkedin_pixel');
|
23 |
+
}
|
24 |
+
?>
|
app/etc/modules/EngageCommerce_LinkedIn.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_LinkedIn
|
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_LinkedIn>
|
25 |
+
<active>true</active>
|
26 |
+
<codePool>community</codePool>
|
27 |
+
</EngageCommerce_LinkedIn>
|
28 |
+
</modules>
|
29 |
+
</config>
|
package.xml
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>LinkedIn_Insight_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 LinkedIn Insight Tag is for advertisers that want to retarget their users, report on conversions, or optimize for conversions using LinkedIn Ads.</summary>
|
10 |
+
<description>The LinkedIn Insight Tag is a javascript analytics tag that captures when a user visits a page. For more details, visit http://engagecommerce.io/downloads/linkedin-insight-tag-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>04:01:48</time>
|
17 |
+
<contents><target name="magecommunity"><dir name="EngageCommerce"><dir name="LinkedIn"><dir name="Helper"><file name="Data.php" hash="83e67974925c418afab3232f29b67483"/></dir><dir name="Model"><file name="LoadOrder.php" hash="4e0c4743d2626763f2e225fbf5b725f2"/></dir><dir name="etc"><file name="adminhtml.xml" hash="2a0e3c3d9ffb646305c9b46924d8bef4"/><file name="config.xml" hash="1753a55a862e337d89a3bd4f71fc6229"/><file name="system.xml" hash="d8bfc806dcfc2a4c6b26dbfb2a5d426e"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="engagecommerce_linkedin.xml" hash="5442dfc058c3db23d6f72ae0f8b0db52"/></dir><dir name="template"><dir name="EngageCommerce"><dir name="LinkedIn"><file name="linkedin_pixel.phtml" hash="9c772b030262350b8f77dbe1f9fae351"/><file name="pixel_after_body_start.phtml" hash="3d2611d221b2b9d3016560bee47af5b6"/><file name="pixel_before_body_end.phtml" hash="254ec12d254207bac423a662b90604a8"/><file name="pixel_before_head_end.phtml" hash="75388bae869daf18aec79acf2e76164d"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="EngageCommerce_LinkedIn.xml" hash="1be041ca10a2bb010ee9abc8936d6e2b"/></dir></target></contents>
|
18 |
+
<compatible/>
|
19 |
+
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
20 |
+
</package>
|