Trialfire - Version 1.0.0.2

Version Notes

Added a hole punch for Magento EE FPC.

Download this release

Release Info

Developer Trialfire Inc
Extension Trialfire
Version 1.0.0.2
Comparing to
See all releases


Code changes from version 1.0.0.1 to 1.0.0.2

app/code/community/Trialfire/Tracker/Model/Container/NoCache.php ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @category Trialfire
4
+ * @package Trialfire_Tracker
5
+ * @author Mark Lieberman <mark@trialfire.com>
6
+ * @copyright Copyright (c) Trialfire
7
+ *
8
+ * A container that never caches for a full page cache hole punch.
9
+ */
10
+ class Trialfire_Tracker_Model_Container_NoCache extends Enterprise_PageCache_Model_Container_Abstract
11
+ {
12
+
13
+ protected function _getCacheId()
14
+ {
15
+ return false;
16
+ }
17
+
18
+ protected function _renderBlock()
19
+ {
20
+ $block = $this->_placeholder->getAttribute('block');
21
+ $block = new $block;
22
+
23
+ // Only needed if the block uses a template
24
+ $block->setTemplate($this->_placeholder->getAttribute('template'));
25
+
26
+ return $block->toHtml();
27
+ }
28
+
29
+ protected function _saveCache($data, $id, $tags = array(), $lifetime = null)
30
+ {
31
+ return false;
32
+ }
33
+
34
+ }
35
+ ?>
app/code/community/Trialfire/Tracker/etc/cache.xml ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <config>
3
+ <placeholders>
4
+ <!-- Identify() call in logged in pages. -->
5
+ <trialfire_tracker_customer>
6
+ <block>trialfire_tracker/customer</block>
7
+ <name>trialfire_tracker_customer</name>
8
+ <placeholder>trialfire_tracker_customer</placeholder>
9
+ <container>Trialfire_Tracker_Model_Container_NoCache</container>
10
+ <cache_lifetime>null</cache_lifetime>
11
+ </trialfire_tracker_customer>
12
+ <!-- Added and removed product from cart. -->
13
+ <trialfire_tracker_cart>
14
+ <block>trialfire_tracker/cart</block>
15
+ <name>trialfire_tracker_cart</name>
16
+ <placeholder>trialfire_tracker_cart</placeholder>
17
+ <container>Trialfire_Tracker_Model_Container_NoCache</container>
18
+ <cache_lifetime>null</cache_lifetime>
19
+ </trialfire_tracker_cart>
20
+ <!-- Identify() call on guest checkout. -->
21
+ <trialfire_tracker_cart>
22
+ <block>trialfire_tracker/event_checkout_onepage_guest</block>
23
+ <name>trialfire_tracker_event_checkout_onepage_guest</name>
24
+ <placeholder>trialfire_tracker_event_checkout_onepage_guest</placeholder>
25
+ <container>Trialfire_Tracker_Model_Container_NoCache</container>
26
+ <cache_lifetime>null</cache_lifetime>
27
+ </trialfire_tracker_cart>
28
+ <!-- Completed order call on checkout success. -->
29
+ <trialfire_tracker_cart>
30
+ <block>trialfire_tracker/event_checkout_onepage_success</block>
31
+ <name>trialfire_tracker_event_checkout_onepage_success</name>
32
+ <placeholder>trialfire_tracker_event_checkout_onepage_success</placeholder>
33
+ <container>Trialfire_Tracker_Model_Container_NoCache</container>
34
+ <cache_lifetime>null</cache_lifetime>
35
+ </trialfire_tracker_cart>
36
+ <!-- Identify() on a completed order as a guest. -->
37
+ <trialfire_tracker_cart>
38
+ <block>trialfire_tracker/event_checkout_onepage_index</block>
39
+ <name>trialfire_tracker_event_checkout_onepage_index</name>
40
+ <placeholder>trialfire_tracker_event_checkout_onepage_index</placeholder>
41
+ <container>Trialfire_Tracker_Model_Container_NoCache</container>
42
+ <cache_lifetime>null</cache_lifetime>
43
+ </trialfire_tracker_cart>
44
+ </placeholders>
45
+ </config>
app/design/frontend/base/default/layout/trialfire_tracker.xml CHANGED
@@ -53,8 +53,8 @@
53
  name="trialfire_tracker_event_checkout_onepage_index"></block>
54
  </reference>
55
  </checkout_onepage_index>
 
56
  <!-- Add a "Order Complete" call to the checkout success page. -->
57
- <!-- Add a call to identify guest customers using order information. -->
58
  <checkout_onepage_success>
59
  <reference name="head">
60
  <block type="trialfire_tracker/event_checkout_onepage_guest"
53
  name="trialfire_tracker_event_checkout_onepage_index"></block>
54
  </reference>
55
  </checkout_onepage_index>
56
+ <!-- Add a call to identify guest customers using order information. -->
57
  <!-- Add a "Order Complete" call to the checkout success page. -->
 
58
  <checkout_onepage_success>
59
  <reference name="head">
60
  <block type="trialfire_tracker/event_checkout_onepage_guest"
app/design/frontend/base/default/template/trialfire/tracker/head.phtml CHANGED
@@ -10,4 +10,4 @@
10
  <script type="text/javascript" src="<?php echo $this->getAssetUrl(); ?>"></script>
11
  <script type="text/javascript">
12
  Trialfire.init('<?php echo $this->getApiToken(); ?>');
13
- </script>
10
  <script type="text/javascript" src="<?php echo $this->getAssetUrl(); ?>"></script>
11
  <script type="text/javascript">
12
  Trialfire.init('<?php echo $this->getApiToken(); ?>');
13
+ </script>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Trialfire</name>
4
- <version>1.0.0.1</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>
@@ -12,11 +12,11 @@
12
  With Trialfire you'll unlock the insight you need to optimize campaigns, conversions and customer conversations.&#xD;
13
  &#xD;
14
  This plugin adds the Trialfire tracking code to your Magento store.</description>
15
- <notes>Initial release</notes>
16
  <authors><author><name>Trialfire Inc</name><user>trialfire</user><email>dev@trialfire.com</email></author></authors>
17
- <date>2016-01-28</date>
18
- <time>18:44:41</time>
19
- <contents><target name="magecommunity"><dir name="Trialfire"><dir name="Tracker"><dir name="Block"><file name="Cart.php" hash="e75a2250f009ee7ca22033b35d578bca"/><file name="Customer.php" hash="3d8b2749a11e6edc7bd0adf51f9df51f"/><dir name="Event"><dir name="Catalog"><dir name="Category"><file name="View.php" hash="4c9969127af57c8c95fa9e7e6036e6c8"/></dir><dir name="Product"><file name="View.php" hash="cab211406a3cf8a2ee002bb7e065ba71"/></dir></dir><dir name="Checkout"><dir name="Onepage"><file name="Guest.php" hash="65e4eb16e9ecad5cbc61f3cedd74f263"/><file name="Index.php" hash="fe7058aff3e104eca04c41414ab55809"/><file name="Success.php" hash="329568d3aed49247d9a1d8d717843eaa"/></dir></dir></dir><file name="Head.php" hash="8b5c7304d23623e01bc55d85d9c4ffa6"/><file name="Identify.php" hash="b6acf4f5dacf244bb7d0fb54cedd5884"/><file name="Track.php" hash="2eda408f8f23418263714deed7495094"/></dir><dir name="Helper"><file name="Data.php" hash="7a7a24170f3c8340c7c4cf12fc224113"/></dir><dir name="Model"><file name="Observer.php" hash="0e77dcda35fdd974efc194fba2e3ab91"/></dir><dir name="etc"><file name="adminhtml.xml" hash="48f436b8767f8bf907d2d4267009753a"/><file name="config.xml" hash="beba83aad414a27f13d7695c6f8559cc"/><file name="system.xml" hash="2adae09d370c8efa1d440831a1d3b1e3"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="trialfire_tracker.xml" hash="f97a42f08627af655f8db6781dd777fb"/></dir><dir name="template"><dir name="trialfire"><dir name="tracker"><file name="head.phtml" hash="92020d75fed67ede5a4310a938bb72fa"/><file name="identify.phtml" hash="bedf0b05692a11d7ca761fc26f02c364"/><file name="track.phtml" hash="5d2a0880940d1da8124a81be2c4aa045"/><file name="track_observe.phtml" hash="df05bd94fad61300ded5f575ee943d56"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Trialfire_Tracker.xml" hash="f5635971c563f892c7d80fdf3e7f145f"/></dir></target></contents>
20
  <compatible/>
21
  <dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
22
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Trialfire</name>
4
+ <version>1.0.0.2</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>
12
  With Trialfire you'll unlock the insight you need to optimize campaigns, conversions and customer conversations.&#xD;
13
  &#xD;
14
  This plugin adds the Trialfire tracking code to your Magento store.</description>
15
+ <notes>Added a hole punch for Magento EE FPC.</notes>
16
  <authors><author><name>Trialfire Inc</name><user>trialfire</user><email>dev@trialfire.com</email></author></authors>
17
+ <date>2016-05-16</date>
18
+ <time>18:19:48</time>
19
+ <contents><target name="magecommunity"><dir name="Trialfire"><dir name="Tracker"><dir name="Block"><file name="Cart.php" hash="e75a2250f009ee7ca22033b35d578bca"/><file name="Customer.php" hash="3d8b2749a11e6edc7bd0adf51f9df51f"/><dir name="Event"><dir name="Catalog"><dir name="Category"><file name="View.php" hash="4c9969127af57c8c95fa9e7e6036e6c8"/></dir><dir name="Product"><file name="View.php" hash="cab211406a3cf8a2ee002bb7e065ba71"/></dir></dir><dir name="Checkout"><dir name="Onepage"><file name="Guest.php" hash="65e4eb16e9ecad5cbc61f3cedd74f263"/><file name="Index.php" hash="fe7058aff3e104eca04c41414ab55809"/><file name="Success.php" hash="329568d3aed49247d9a1d8d717843eaa"/></dir></dir></dir><file name="Head.php" hash="8b5c7304d23623e01bc55d85d9c4ffa6"/><file name="Identify.php" hash="b6acf4f5dacf244bb7d0fb54cedd5884"/><file name="Track.php" hash="2eda408f8f23418263714deed7495094"/></dir><dir name="Helper"><file name="Data.php" hash="7a7a24170f3c8340c7c4cf12fc224113"/></dir><dir name="Model"><dir name="Container"><file name="NoCache.php" hash="785b7722577eea7666654d02da970e62"/></dir><file name="Observer.php" hash="0e77dcda35fdd974efc194fba2e3ab91"/></dir><dir name="etc"><file name="adminhtml.xml" hash="48f436b8767f8bf907d2d4267009753a"/><file name="cache.xml" hash="ba9e2fe8d050de8e90db8cd6c1ded5cd"/><file name="config.xml" hash="beba83aad414a27f13d7695c6f8559cc"/><file name="system.xml" hash="2adae09d370c8efa1d440831a1d3b1e3"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="trialfire_tracker.xml" hash="cd7c77fb7bad614a51a3965c88b1bae0"/></dir><dir name="template"><dir name="trialfire"><dir name="tracker"><file name="head.phtml" hash="d2009a1045a7275222f9389d27d80282"/><file name="identify.phtml" hash="bedf0b05692a11d7ca761fc26f02c364"/><file name="track.phtml" hash="5d2a0880940d1da8124a81be2c4aa045"/><file name="track_observe.phtml" hash="df05bd94fad61300ded5f575ee943d56"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Trialfire_Tracker.xml" hash="f5635971c563f892c7d80fdf3e7f145f"/></dir></target></contents>
20
  <compatible/>
21
  <dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
22
  </package>