Version Notes
1.1.0 - Added support for alternate checkout pages
1.0.4 - fixed php warnings in logs
1.0.2 - Added html/text help to admin config
1.0.1 - Fixed arrays that were rendering as strings
1.0.0 - refactored based on Tealium class
* added support for external UDO definition
* added support for diagnostic pixel
0.4.4d - added output of diagnostic pixel
0.4.4 - strip commas from all dollar values
0.4.3 - fix for bad array on order page
0.4.2 - added simple discount array
0.4.0 - fix for individual discounts and number formats
0.3.1 - fix for configurable product arrays
0.3.0 - fix for missing support message
0.2.0 - fix for product page tag syntax
0.1.0 - initial release
Download this release
Release Info
Developer | Tealium Inc. |
Extension | Tealium_Tags |
Version | 1.1.0 |
Comparing to | |
See all releases |
Code changes from version 1.0.4 to 1.1.0
app/design/frontend/base/default/template/tealium_tags/base.phtml
CHANGED
@@ -6,7 +6,6 @@ $store = Mage::app()->getStore();
|
|
6 |
if (!$helper->isEnabled($store)) {
|
7 |
return; // not enabled, no javascript inserted
|
8 |
}
|
9 |
-
|
10 |
$tealium = $helper->getTealiumObject($store, $this);
|
11 |
echo $tealium->render("tag");
|
12 |
?>
|
6 |
if (!$helper->isEnabled($store)) {
|
7 |
return; // not enabled, no javascript inserted
|
8 |
}
|
|
|
9 |
$tealium = $helper->getTealiumObject($store, $this);
|
10 |
echo $tealium->render("tag");
|
11 |
?>
|
app/design/frontend/base/default/template/tealium_tags/generic.phtml
CHANGED
@@ -8,8 +8,13 @@ if (!$helper->isEnabled($store)) {
|
|
8 |
}
|
9 |
|
10 |
$tealium = $helper->getTealiumObject($store, $this);
|
11 |
-
|
12 |
-
$tealium->
|
|
|
|
|
|
|
|
|
|
|
13 |
echo $tealium->render("udo");
|
14 |
echo $helper->getDiagnosticTag($store);
|
15 |
-
?>
|
8 |
}
|
9 |
|
10 |
$tealium = $helper->getTealiumObject($store, $this);
|
11 |
+
if(preg_match('/checkout.+success|success.+checkout/i',$_SERVER['PHP_SELF'])){
|
12 |
+
$tealium->pageType("Confirmation");
|
13 |
+
}
|
14 |
+
else{
|
15 |
+
$tealium->pageType("Home");
|
16 |
+
$tealium->updateUdo("page_type","generic");
|
17 |
+
}
|
18 |
echo $tealium->render("udo");
|
19 |
echo $helper->getDiagnosticTag($store);
|
20 |
+
?>
|
lib/Tealium/.Tealium.php.swp
ADDED
Binary file
|
lib/Tealium/Errors.log.txt
ADDED
File without changes
|
lib/Tealium/Tealium.php
CHANGED
@@ -1,4 +1,6 @@
|
|
1 |
<?php // Tealium.php Class file
|
|
|
|
|
2 |
// This interface describes the methods available for the class object and usage
|
3 |
interface TealiumInterface {
|
4 |
public function updateUdo($objectOrKey, $value);
|
@@ -26,7 +28,8 @@ interface TealiumInterface {
|
|
26 |
class Tealium implements TealiumInterface
|
27 |
|
28 |
{
|
29 |
-
|
|
|
30 |
public function __construct($accountInit = false, $profileInit = false, $targetInit = false, $pageType = "Home", $data = array(
|
31 |
)) {
|
32 |
$this->access = array(
|
1 |
<?php // Tealium.php Class file
|
2 |
+
|
3 |
+
|
4 |
// This interface describes the methods available for the class object and usage
|
5 |
interface TealiumInterface {
|
6 |
public function updateUdo($objectOrKey, $value);
|
28 |
class Tealium implements TealiumInterface
|
29 |
|
30 |
{
|
31 |
+
|
32 |
+
private $account, $profile, $target, $udo, $access, $udoElements;
|
33 |
public function __construct($accountInit = false, $profileInit = false, $targetInit = false, $pageType = "Home", $data = array(
|
34 |
)) {
|
35 |
$this->access = array(
|
lib/Tealium/TealiumInit.php
CHANGED
@@ -3,7 +3,8 @@
|
|
3 |
// Replace $STRING or $ARRAY with your server side variable reference unique to that key
|
4 |
$store = $data["store"];
|
5 |
$page = $data["page"];
|
6 |
-
|
|
|
7 |
|
8 |
//define variables from magento *************************************************************************
|
9 |
$customer_id = "n/a";
|
3 |
// Replace $STRING or $ARRAY with your server side variable reference unique to that key
|
4 |
$store = $data["store"];
|
5 |
$page = $data["page"];
|
6 |
+
$STRING = "";
|
7 |
+
$ARRAY = array();
|
8 |
|
9 |
//define variables from magento *************************************************************************
|
10 |
$customer_id = "n/a";
|
package.xml
CHANGED
@@ -1,14 +1,15 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Tealium_Tags</name>
|
4 |
-
<version>1.0
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Tealum tag management solution</summary>
|
10 |
<description>Tealum tag management solution extension injects the Tealium javascript into your magento pages, and on specific pages injects special javascript so that you can access specific data elements such as product, category or cart data.</description>
|
11 |
-
<notes>1.0
|
|
|
12 |
1.0.2 - Added html/text help to admin config
|
13 |
1.0.1 - Fixed arrays that were rendering as strings
|
14 |
1.0.0 - refactored based on Tealium class
|
@@ -25,8 +26,8 @@
|
|
25 |
0.1.0 - initial release</notes>
|
26 |
<authors><author><name>Tealium</name><user>Tealium</user><email>patrick.mcwilliams@tealium.com</email></author></authors>
|
27 |
<date>2014-07-15</date>
|
28 |
-
<time>
|
29 |
-
<contents><target name="magelocal"><dir name="Tealium"><dir name="Tags"><dir name="Helper"><file name="Data.php" hash="e8ef7836848f91597fbf232d51cbc255"/></dir><dir name="etc"><file name="adminhtml.xml" hash="e6ec5ba973cdb97a9925f02575392865"/><file name="config.xml" hash="c736b55d5e3cc05cbf7bc27fe7a851e5"/><file name="system.xml" hash="bdf256ea75eb731ddb19d77e748f59d1"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Tealium_Tags.xml" hash="3d6843433dffefb4600573950a83e765"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="tealium_tags.xml" hash="f1a764ba60627bbf4b0113c454bb892a"/></dir><dir name="template"><dir name="tealium_tags"><file name="base.phtml" hash="
|
30 |
<compatible/>
|
31 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
32 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Tealium_Tags</name>
|
4 |
+
<version>1.1.0</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Tealum tag management solution</summary>
|
10 |
<description>Tealum tag management solution extension injects the Tealium javascript into your magento pages, and on specific pages injects special javascript so that you can access specific data elements such as product, category or cart data.</description>
|
11 |
+
<notes>1.1.0 - Added support for alternate checkout pages
|
12 |
+
1.0.4 - fixed php warnings in logs
|
13 |
1.0.2 - Added html/text help to admin config
|
14 |
1.0.1 - Fixed arrays that were rendering as strings
|
15 |
1.0.0 - refactored based on Tealium class
|
26 |
0.1.0 - initial release</notes>
|
27 |
<authors><author><name>Tealium</name><user>Tealium</user><email>patrick.mcwilliams@tealium.com</email></author></authors>
|
28 |
<date>2014-07-15</date>
|
29 |
+
<time>08:39:21</time>
|
30 |
+
<contents><target name="magelocal"><dir name="Tealium"><dir name="Tags"><dir name="Helper"><file name="Data.php" hash="e8ef7836848f91597fbf232d51cbc255"/></dir><dir name="etc"><file name="adminhtml.xml" hash="e6ec5ba973cdb97a9925f02575392865"/><file name="config.xml" hash="c736b55d5e3cc05cbf7bc27fe7a851e5"/><file name="system.xml" hash="bdf256ea75eb731ddb19d77e748f59d1"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Tealium_Tags.xml" hash="3d6843433dffefb4600573950a83e765"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="tealium_tags.xml" hash="f1a764ba60627bbf4b0113c454bb892a"/></dir><dir name="template"><dir name="tealium_tags"><file name="base.phtml" hash="459db6812a160ac45c37c7a46d72fea1"/><file name="catalog_product_compare_index.phtml" hash="810cb1cf8b17ab77d5addf75097dcc12"/><file name="catalogsearch_advanced_result_index.phtml" hash="df8e2d21436261f855dcb4bb1d6497fb"/><file name="catalogsearch_result_index.phtml" hash="063b17148b5d031e4a445d59d85a02c1"/><file name="catalogsearch_term_popular.phtml" hash="2e591a75a8f7b226d0dbf459a3fb556b"/><file name="category.phtml" hash="6b3bfa75f142d2ac45b2a7a68fe09024"/><file name="checkout_cart_index.phtml" hash="20d90e76ded92964e1e406353a1ae777"/><file name="checkout_onepage.phtml" hash="234c6528de89e33f3d745e147fc2919b"/><file name="checkout_success.phtml" hash="82eedb745c4a17c7864089f746104575"/><file name="cms.phtml" hash="b27d54573e11d3ed64f9fc4e3b842d32"/><file name="customer.phtml" hash="edbac3f55223f19edd5f78f66ceb4a16"/><file name="generic.phtml" hash="0a090a69bfa7278504bdeab83a86b846"/><file name="guest_sales.phtml" hash="e8c438cddca07aa8e44549c6c63f6b08"/><file name="product.phtml" hash="c5568efedd7cd11803a9558566e8d1f1"/><file name="product_send.phtml" hash="b55cc99a06028171333aad3f16f8e7b3"/><file name="seo.phtml" hash="8a5c742b13e79c8019e4619d7aba1eba"/><file name="tag_list_index.phtml" hash="6fa3c2c58ac6138fe406fbc71b116823"/><file name="tag_product_list.phtml" hash="e6bf4fc7d91f5378d3d53dcd455f73f9"/><file name=".checkout_success.phtml.swp" hash="9b57a7ce9a428a02d446520e721f9d27"/></dir></dir></dir></dir></dir></target><target name="magelib"><dir name="Tealium"><file name="Errors.log.txt" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="Tealium.php" hash="8239140cb4c8331fa7c05f2d4bdeca84"/><file name="TealiumAPI.php" hash="8ff735cbea9409d365cde877cd177ceb"/><file name="TealiumInit.php" hash="6af8c3cb021366d6e905f5fe54d1d548"/><file name=".Tealium.php.swp" hash="269cb2dbd9f38fd49f490050ec74e88d"/></dir></target></contents>
|
31 |
<compatible/>
|
32 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
33 |
</package>
|