Woopra_Analytics_Event_And_Visitor_Tracking - Version 1.4.0

Version Notes

Now tracks product send to a friend
Potential XSS vulnerabilities fixed

Download this release

Release Info

Developer Woopra
Extension Woopra_Analytics_Event_And_Visitor_Tracking
Version 1.4.0
Comparing to
See all releases


Code changes from version 1.3.0 to 1.4.0

app/code/community/Woopra/Analytics/Block/Script.php CHANGED
@@ -68,7 +68,7 @@ class Woopra_Analytics_Block_Script extends Mage_Core_Block_Template
68
  if(!empty($customer)) {
69
  //Customer Name
70
  if ($customer->getName() != ' ' && Mage::helper('woopra')->getCustomerName() != NULL) {
71
- $data['customer_name'] = $customer->getName();
72
  }
73
  //Customer Email
74
  if (Mage::helper('woopra')->getCustomerEmail() != NULL) {
@@ -83,15 +83,15 @@ class Woopra_Analytics_Block_Script extends Mage_Core_Block_Template
83
  if(!empty($address)) {
84
  //Customer Company
85
  if (Mage::helper('woopra')->getCustomerCompany() != NULL) {
86
- $data['customer_company'] = $address->getCompany();
87
  }
88
  //Customer Location
89
  if (Mage::helper('woopra')->getCustomerLocation() != NULL) {
90
- $data['customer_location'] = $address->getCity() . ', ' . $address->getRegion() . ' (' . $address->getCountryId() . ')';
91
  }
92
  //Customer Phone
93
  if (Mage::helper('woopra')->getCustomerPhone() != NULL) {
94
- $data['customer_phone'] = $address->getTelephone();
95
  }
96
  }
97
 
@@ -99,7 +99,7 @@ class Woopra_Analytics_Block_Script extends Mage_Core_Block_Template
99
  if (Mage::helper('woopra')->getCustomerGroup() != NULL) {
100
  $groupId = Mage::getSingleton('customer/session')->getCustomerGroupId();
101
  $group = Mage::getModel('customer/group')->load($groupId);
102
- $data['customer_group'] = $group->getCode();
103
  }
104
 
105
  //Customer Account Creation Date
@@ -110,7 +110,7 @@ class Woopra_Analytics_Block_Script extends Mage_Core_Block_Template
110
  true
111
  );
112
  if(strtotime($date) != Mage::app()->getLocale()->storeTimeStamp()) {
113
- $data['customer_create_date'] = Mage::helper('core')->formatDate($date, Mage_Core_Model_Locale::FORMAT_TYPE_SHORT, true);
114
  }
115
  }
116
 
@@ -160,7 +160,7 @@ class Woopra_Analytics_Block_Script extends Mage_Core_Block_Template
160
  //Current Catagory
161
  $currentCategory = Mage::registry('current_category');
162
  if(!empty($currentCategory)) {
163
- $data['category'] = $currentCategory->getName();
164
  }
165
  //Current Product
166
  $currentProduct = Mage::registry('current_product');
@@ -295,6 +295,14 @@ class Woopra_Analytics_Block_Script extends Mage_Core_Block_Template
295
  $data['woopra_estimate_post_state'] = Mage::getSingleton('core/session')->getData('woopra_estimate_post_state', true);
296
  $data['woopra_estimate_post_zip'] = Mage::getSingleton('core/session')->getData('woopra_estimate_post_zip', true);
297
  }
 
 
 
 
 
 
 
 
298
  }
299
 
300
  if(isset($data[$key])) {
68
  if(!empty($customer)) {
69
  //Customer Name
70
  if ($customer->getName() != ' ' && Mage::helper('woopra')->getCustomerName() != NULL) {
71
+ $data['customer_name'] = Mage::helper('core')->escapeHtml(addslashes($customer->getName()));
72
  }
73
  //Customer Email
74
  if (Mage::helper('woopra')->getCustomerEmail() != NULL) {
83
  if(!empty($address)) {
84
  //Customer Company
85
  if (Mage::helper('woopra')->getCustomerCompany() != NULL) {
86
+ $data['customer_company'] = Mage::helper('core')->escapeHtml(addslashes($address->getCompany()));
87
  }
88
  //Customer Location
89
  if (Mage::helper('woopra')->getCustomerLocation() != NULL) {
90
+ $data['customer_location'] = Mage::helper('core')->escapeHtml(addslashes($address->getCity())) . ', ' . Mage::helper('core')->escapeHtml(addslashes($address->getRegion())) . ' (' . $address->getCountryId() . ')';
91
  }
92
  //Customer Phone
93
  if (Mage::helper('woopra')->getCustomerPhone() != NULL) {
94
+ $data['customer_phone'] = Mage::helper('core')->escapeHtml(addslashes($address->getTelephone()));
95
  }
96
  }
97
 
99
  if (Mage::helper('woopra')->getCustomerGroup() != NULL) {
100
  $groupId = Mage::getSingleton('customer/session')->getCustomerGroupId();
101
  $group = Mage::getModel('customer/group')->load($groupId);
102
+ $data['customer_group'] = addslashes($group->getCode());
103
  }
104
 
105
  //Customer Account Creation Date
110
  true
111
  );
112
  if(strtotime($date) != Mage::app()->getLocale()->storeTimeStamp()) {
113
+ $data['customer_create_date'] = addslashes(Mage::helper('core')->formatDate($date, Mage_Core_Model_Locale::FORMAT_TYPE_SHORT, true));
114
  }
115
  }
116
 
160
  //Current Catagory
161
  $currentCategory = Mage::registry('current_category');
162
  if(!empty($currentCategory)) {
163
+ $data['category'] = addslashes($currentCategory->getName());
164
  }
165
  //Current Product
166
  $currentProduct = Mage::registry('current_product');
295
  $data['woopra_estimate_post_state'] = Mage::getSingleton('core/session')->getData('woopra_estimate_post_state', true);
296
  $data['woopra_estimate_post_zip'] = Mage::getSingleton('core/session')->getData('woopra_estimate_post_zip', true);
297
  }
298
+
299
+ //Product Email to Friend
300
+ if (Mage::helper('woopra')->getProductEmailToFriend() != NULL) {
301
+ $data['woopra_sendfriend_product_trigger'] = Mage::getSingleton('core/session')->getData('woopra_sendfriend_product_trigger', true);
302
+ $data['woopra_sendfriend_product_name'] = Mage::getSingleton('core/session')->getData('woopra_sendfriend_product_name', true);
303
+ $data['woopra_sendfriend_product_sku'] = Mage::getSingleton('core/session')->getData('woopra_sendfriend_product_sku', true);
304
+ $data['woopra_sendfriend_product_price'] = Mage::getSingleton('core/session')->getData('woopra_sendfriend_product_price', true);
305
+ }
306
  }
307
 
308
  if(isset($data[$key])) {
app/code/community/Woopra/Analytics/Helper/Data.php CHANGED
@@ -266,4 +266,8 @@ class Woopra_Analytics_Helper_Data extends Mage_Core_Helper_Abstract
266
  {
267
  return Mage::getStoreConfig('woopra_analytics/woopra_events/product_review_posted');
268
  }
 
 
 
 
269
  }
266
  {
267
  return Mage::getStoreConfig('woopra_analytics/woopra_events/product_review_posted');
268
  }
269
+ public function getProductEmailToFriend()
270
+ {
271
+ return Mage::getStoreConfig('woopra_analytics/woopra_events/sendfriend_product');
272
+ }
273
  }
app/code/community/Woopra/Analytics/Model/Observer.php CHANGED
@@ -19,11 +19,11 @@ class Woopra_Analytics_Model_Observer extends Varien_Event_Observer
19
  if ($model->getIsStatusChanged() == 1 && $model->getData(subscriber_status) == 1) {
20
  Mage::getSingleton('core/session')->setData('woopra_subscriber_changed', 1);
21
  Mage::getSingleton('core/session')->setData('woopra_subscriber_status', Mage::helper('woopra')->getNewsletterSubscribed());
22
- Mage::getSingleton('core/session')->setData('woopra_subscriber_email', $subscriber_email);
23
  } else if ($model->getIsStatusChanged() == 1 && $model->getData(subscriber_status) == 3) {
24
  Mage::getSingleton('core/session')->setData('woopra_subscriber_changed', 1);
25
  Mage::getSingleton('core/session')->setData('woopra_subscriber_status', Mage::helper('woopra')->getNewsletterUnsubscribed());
26
- Mage::getSingleton('core/session')->setData('woopra_subscriber_email', $subscriber_email);
27
  } else {
28
  }
29
  }
@@ -50,10 +50,10 @@ class Woopra_Analytics_Model_Observer extends Varien_Event_Observer
50
  $request = $observer->getEvent()->getControllerAction()->getRequest()->getParams();
51
  if ($request) {
52
  Mage::getSingleton('core/session')->setData('woopra_contacts_index_post', 1);
53
- Mage::getSingleton('core/session')->setData('woopra_contacts_name', addslashes($request['name']));
54
- Mage::getSingleton('core/session')->setData('woopra_contacts_email', $request['email']);
55
- Mage::getSingleton('core/session')->setData('woopra_contacts_telephone', addslashes($request['telephone']));
56
- Mage::getSingleton('core/session')->setData('woopra_contacts_comment', addslashes($request['comment']));
57
  //Mage::log($request['name']." | ".$request['email']." | ".$request['telephone']." | ".$request['comment'], null, 'woopra.log');
58
  }
59
  }
@@ -196,7 +196,7 @@ class Woopra_Analytics_Model_Observer extends Varien_Event_Observer
196
  $request = $observer->getEvent()->getControllerAction()->getRequest()->getParams();
197
  if ($request) {
198
  Mage::getSingleton('core/session')->setData('woopra_search_trigger', 1);
199
- Mage::getSingleton('core/session')->setData('woopra_search_keywords', addslashes($request['q']));
200
  //Mage::log($request['q'], null, 'woopra.log');
201
  }
202
  }
@@ -216,7 +216,7 @@ class Woopra_Analytics_Model_Observer extends Varien_Event_Observer
216
  $search_keywords = $search_keywords." | ".$key.": ".$answer;
217
  }
218
  Mage::getSingleton('core/session')->setData('woopra_search_trigger', 1);
219
- Mage::getSingleton('core/session')->setData('woopra_search_keywords', addslashes($search_keywords));
220
  //Mage::log($search_keywords, null, 'woopra.log');
221
  }
222
  }
@@ -246,9 +246,9 @@ class Woopra_Analytics_Model_Observer extends Varien_Event_Observer
246
  Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_sku', addslashes($product['sku']));
247
  Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_price', round($product['price'], 2));
248
  Mage::getSingleton('core/session')->setData('woopra_product_review_trigger', 1);
249
- Mage::getSingleton('core/session')->setData('woopra_product_review_nickname', addslashes($request['nickname']));
250
- Mage::getSingleton('core/session')->setData('woopra_product_review_title', addslashes($request['title']));
251
- Mage::getSingleton('core/session')->setData('woopra_product_review_detail', addslashes($request['detail']));
252
  //Mage::log($product['name']." | ".$product['sku']." | ".round($product['price'], 2)." | ".$request['nickname']." | ".$request['title']." | ".$request['detail'], null, 'woopra.log');
253
  }
254
  }
@@ -258,7 +258,7 @@ class Woopra_Analytics_Model_Observer extends Varien_Event_Observer
258
  $request = $observer->getEvent()->getControllerAction()->getRequest()->getParams();
259
  Mage::getSingleton('core/session')->setData('woopra_forgot_password_trigger', 1);
260
  if ($request) {
261
- Mage::getSingleton('core/session')->setData('woopra_forgot_password_email', $request['email']);
262
  //Mage::log($request['email'], null, 'woopra.log');
263
  }
264
  }
@@ -283,7 +283,7 @@ class Woopra_Analytics_Model_Observer extends Varien_Event_Observer
283
  Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_sku', addslashes($product['sku']));
284
  Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_price', round($product['price'], 2));
285
  Mage::getSingleton('core/session')->setData('woopra_product_tag_added_trigger', 1);
286
- Mage::getSingleton('core/session')->setData('woopra_product_tag_name', addslashes($request['productTagName']));
287
  //Mage::log($product['name']." | ".$product['sku']." | ".round($product['price'], 2)." | ".$request['productTagName'], null, 'woopra.log');
288
  }
289
  }
@@ -317,7 +317,7 @@ class Woopra_Analytics_Model_Observer extends Varien_Event_Observer
317
  Mage::getSingleton('core/session')->setData('woopra_coupon_code_name', '-');
318
  Mage::getSingleton('core/session')->setData('woopra_coupon_code_active', '-');
319
  }
320
- Mage::getSingleton('core/session')->setData('woopra_coupon_code', addslashes($request['coupon_code']));
321
  //Mage::log($observer, null, 'woopra.log');
322
  }
323
  }
@@ -335,7 +335,7 @@ class Woopra_Analytics_Model_Observer extends Varien_Event_Observer
335
  if ($request['is_subscribed'] == 1) {
336
  Mage::getSingleton('core/session')->setData('woopra_subscriber_changed', 1);
337
  Mage::getSingleton('core/session')->setData('woopra_subscriber_status', Mage::helper('woopra')->getNewsletterSubscribed());
338
- Mage::getSingleton('core/session')->setData('woopra_subscriber_email', $request[email]);
339
  }
340
  //Mage::log($request, null, 'woopra.log');
341
  }
@@ -348,7 +348,7 @@ class Woopra_Analytics_Model_Observer extends Varien_Event_Observer
348
  Mage::getSingleton('core/session')->setData('woopra_estimate_post_trigger', 1);
349
  Mage::getSingleton('core/session')->setData('woopra_estimate_post_country', $request['country_id']);
350
  Mage::getSingleton('core/session')->setData('woopra_estimate_post_state', $region->getName());
351
- Mage::getSingleton('core/session')->setData('woopra_estimate_post_zip', $request['estimate_postcode']);
352
  //Mage::log($request['country_id']." | ".$region->getName()." | ".$request['estimate_postcode'], null, 'woopra.log');
353
  }
354
  }
@@ -381,6 +381,19 @@ class Woopra_Analytics_Model_Observer extends Varien_Event_Observer
381
  }
382
  }
383
 
 
 
 
 
 
 
 
 
 
 
 
 
 
384
  /* Payment Status Coming Soon
385
  if ($observer->getEvent()->getControllerAction()->getFullActionName() == 'checkout_onepage_saveOrder')
386
  {
19
  if ($model->getIsStatusChanged() == 1 && $model->getData(subscriber_status) == 1) {
20
  Mage::getSingleton('core/session')->setData('woopra_subscriber_changed', 1);
21
  Mage::getSingleton('core/session')->setData('woopra_subscriber_status', Mage::helper('woopra')->getNewsletterSubscribed());
22
+ Mage::getSingleton('core/session')->setData('woopra_subscriber_email', Mage::helper('core')->escapeHtml(addslashes($subscriber_email)));
23
  } else if ($model->getIsStatusChanged() == 1 && $model->getData(subscriber_status) == 3) {
24
  Mage::getSingleton('core/session')->setData('woopra_subscriber_changed', 1);
25
  Mage::getSingleton('core/session')->setData('woopra_subscriber_status', Mage::helper('woopra')->getNewsletterUnsubscribed());
26
+ Mage::getSingleton('core/session')->setData('woopra_subscriber_email', Mage::helper('core')->escapeHtml(addslashes($subscriber_email)));
27
  } else {
28
  }
29
  }
50
  $request = $observer->getEvent()->getControllerAction()->getRequest()->getParams();
51
  if ($request) {
52
  Mage::getSingleton('core/session')->setData('woopra_contacts_index_post', 1);
53
+ Mage::getSingleton('core/session')->setData('woopra_contacts_name', Mage::helper('core')->escapeHtml(addslashes($request['name'])));
54
+ Mage::getSingleton('core/session')->setData('woopra_contacts_email', Mage::helper('core')->escapeHtml(addslashes($request['email'])));
55
+ Mage::getSingleton('core/session')->setData('woopra_contacts_telephone', Mage::helper('core')->escapeHtml(addslashes($request['telephone'])));
56
+ Mage::getSingleton('core/session')->setData('woopra_contacts_comment', Mage::helper('core')->escapeHtml(addslashes($request['comment'])));
57
  //Mage::log($request['name']." | ".$request['email']." | ".$request['telephone']." | ".$request['comment'], null, 'woopra.log');
58
  }
59
  }
196
  $request = $observer->getEvent()->getControllerAction()->getRequest()->getParams();
197
  if ($request) {
198
  Mage::getSingleton('core/session')->setData('woopra_search_trigger', 1);
199
+ Mage::getSingleton('core/session')->setData('woopra_search_keywords', Mage::helper('core')->escapeHtml(addslashes($request['q'])));
200
  //Mage::log($request['q'], null, 'woopra.log');
201
  }
202
  }
216
  $search_keywords = $search_keywords." | ".$key.": ".$answer;
217
  }
218
  Mage::getSingleton('core/session')->setData('woopra_search_trigger', 1);
219
+ Mage::getSingleton('core/session')->setData('woopra_search_keywords', Mage::helper('core')->escapeHtml(addslashes($search_keywords)));
220
  //Mage::log($search_keywords, null, 'woopra.log');
221
  }
222
  }
246
  Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_sku', addslashes($product['sku']));
247
  Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_price', round($product['price'], 2));
248
  Mage::getSingleton('core/session')->setData('woopra_product_review_trigger', 1);
249
+ Mage::getSingleton('core/session')->setData('woopra_product_review_nickname', Mage::helper('core')->escapeHtml(addslashes($request['nickname'])));
250
+ Mage::getSingleton('core/session')->setData('woopra_product_review_title', Mage::helper('core')->escapeHtml(addslashes($request['title'])));
251
+ Mage::getSingleton('core/session')->setData('woopra_product_review_detail', Mage::helper('core')->escapeHtml(addslashes($request['detail'])));
252
  //Mage::log($product['name']." | ".$product['sku']." | ".round($product['price'], 2)." | ".$request['nickname']." | ".$request['title']." | ".$request['detail'], null, 'woopra.log');
253
  }
254
  }
258
  $request = $observer->getEvent()->getControllerAction()->getRequest()->getParams();
259
  Mage::getSingleton('core/session')->setData('woopra_forgot_password_trigger', 1);
260
  if ($request) {
261
+ Mage::getSingleton('core/session')->setData('woopra_forgot_password_email', Mage::helper('core')->escapeHtml(addslashes($request['email'])));
262
  //Mage::log($request['email'], null, 'woopra.log');
263
  }
264
  }
283
  Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_sku', addslashes($product['sku']));
284
  Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_price', round($product['price'], 2));
285
  Mage::getSingleton('core/session')->setData('woopra_product_tag_added_trigger', 1);
286
+ Mage::getSingleton('core/session')->setData('woopra_product_tag_name', Mage::helper('core')->escapeHtml(addslashes($request['productTagName'])));
287
  //Mage::log($product['name']." | ".$product['sku']." | ".round($product['price'], 2)." | ".$request['productTagName'], null, 'woopra.log');
288
  }
289
  }
317
  Mage::getSingleton('core/session')->setData('woopra_coupon_code_name', '-');
318
  Mage::getSingleton('core/session')->setData('woopra_coupon_code_active', '-');
319
  }
320
+ Mage::getSingleton('core/session')->setData('woopra_coupon_code', Mage::helper('core')->escapeHtml(addslashes($request['coupon_code'])));
321
  //Mage::log($observer, null, 'woopra.log');
322
  }
323
  }
335
  if ($request['is_subscribed'] == 1) {
336
  Mage::getSingleton('core/session')->setData('woopra_subscriber_changed', 1);
337
  Mage::getSingleton('core/session')->setData('woopra_subscriber_status', Mage::helper('woopra')->getNewsletterSubscribed());
338
+ Mage::getSingleton('core/session')->setData('woopra_subscriber_email', Mage::helper('core')->escapeHtml(addslashes($request[email])));
339
  }
340
  //Mage::log($request, null, 'woopra.log');
341
  }
348
  Mage::getSingleton('core/session')->setData('woopra_estimate_post_trigger', 1);
349
  Mage::getSingleton('core/session')->setData('woopra_estimate_post_country', $request['country_id']);
350
  Mage::getSingleton('core/session')->setData('woopra_estimate_post_state', $region->getName());
351
+ Mage::getSingleton('core/session')->setData('woopra_estimate_post_zip', Mage::helper('core')->escapeHtml($request['estimate_postcode']));
352
  //Mage::log($request['country_id']." | ".$region->getName()." | ".$request['estimate_postcode'], null, 'woopra.log');
353
  }
354
  }
381
  }
382
  }
383
 
384
+ if ($observer->getEvent()->getControllerAction()->getFullActionName() == 'sendfriend_product_sendmail' && Mage::helper('woopra')->getProductEmailToFriend() != NULL)
385
+ {
386
+ $request = $observer->getEvent()->getControllerAction()->getRequest()->getParams();
387
+ if ($request) {
388
+ $product = Mage::getModel('catalog/product')->load($request['id'])->getData();
389
+ Mage::getSingleton('core/session')->setData('woopra_sendfriend_product_name', addslashes($product['name']));
390
+ Mage::getSingleton('core/session')->setData('woopra_sendfriend_product_sku', addslashes($product['sku']));
391
+ Mage::getSingleton('core/session')->setData('woopra_sendfriend_product_price', round($product['price'], 2));
392
+ Mage::getSingleton('core/session')->setData('woopra_sendfriend_product_trigger', 1);
393
+ //Mage::log($request, null, 'woopra.log');
394
+ }
395
+ }
396
+
397
  /* Payment Status Coming Soon
398
  if ($observer->getEvent()->getControllerAction()->getFullActionName() == 'checkout_onepage_saveOrder')
399
  {
app/code/community/Woopra/Analytics/etc/config.xml CHANGED
@@ -134,6 +134,7 @@
134
  <product_tag_added>magento product_tag_added</product_tag_added>
135
  <product_review_read>magento product_review_read</product_review_read>
136
  <product_review_posted>magento product_review_posted</product_review_posted>
 
137
  </woopra_events>
138
  </woopra_analytics>
139
  </default>
134
  <product_tag_added>magento product_tag_added</product_tag_added>
135
  <product_review_read>magento product_review_read</product_review_read>
136
  <product_review_posted>magento product_review_posted</product_review_posted>
137
+ <sendfriend_product>magento sendfriend_product</sendfriend_product>
138
  </woopra_events>
139
  </woopra_analytics>
140
  </default>
app/code/community/Woopra/Analytics/etc/system.xml CHANGED
@@ -669,6 +669,15 @@
669
  <show_in_website>1</show_in_website>
670
  <show_in_store>1</show_in_store>
671
  </product_review_posted>
 
 
 
 
 
 
 
 
 
672
  </fields>
673
  </woopra_events>
674
  </groups>
669
  <show_in_website>1</show_in_website>
670
  <show_in_store>1</show_in_store>
671
  </product_review_posted>
672
+ <sendfriend_product translate="label">
673
+ <label>Product Email to Friend</label>
674
+ <comment>Product email to a friend event tracking name (empty to disable).</comment>
675
+ <frontend_type>text</frontend_type>
676
+ <sort_order>280</sort_order>
677
+ <show_in_default>1</show_in_default>
678
+ <show_in_website>1</show_in_website>
679
+ <show_in_store>1</show_in_store>
680
+ </sendfriend_product>
681
  </fields>
682
  </woopra_events>
683
  </groups>
app/design/frontend/base/default/template/woopra/script.phtml CHANGED
@@ -121,6 +121,12 @@
121
  <?php if ($this->getSetting('woopra_login_logout_trigger') == 1) { ?> woopra.track({<?php echo "\n";?>
122
  name: '<?php echo $this->getSetting('woopra_login_logout_status'); ?>'
123
  <?php echo " });\n"; } ?>
 
 
 
 
 
 
124
  <?php if ($this->getSetting('woopra_checkout_success_trigger') == 1) { ?> woopra.track({<?php echo "\n";?>
125
  name: '<?php echo Mage::helper('woopra')->getCheckoutSuccess(); ?>',
126
  <?php if ($this->getSetting('woopra_checkout_success_coupon_code') != NULL) { ?> coupon_code: '<?php echo $this->getSetting('woopra_checkout_success_coupon_code'); ?>',<?php echo "\n"; } ?>
121
  <?php if ($this->getSetting('woopra_login_logout_trigger') == 1) { ?> woopra.track({<?php echo "\n";?>
122
  name: '<?php echo $this->getSetting('woopra_login_logout_status'); ?>'
123
  <?php echo " });\n"; } ?>
124
+ <?php if ($this->getSetting('woopra_sendfriend_product_trigger') == 1) { ?> woopra.track({<?php echo "\n";?>
125
+ name: '<?php echo Mage::helper('woopra')->getProductEmailToFriend(); ?>',
126
+ product_name: '<?php echo $this->getSetting('woopra_sendfriend_product_name'); ?>',
127
+ product_sku: '<?php echo $this->getSetting('woopra_sendfriend_product_sku'); ?>',
128
+ product_price: '<?php echo $this->getSetting('woopra_sendfriend_product_price'); ?>'
129
+ <?php echo " });\n"; } ?>
130
  <?php if ($this->getSetting('woopra_checkout_success_trigger') == 1) { ?> woopra.track({<?php echo "\n";?>
131
  name: '<?php echo Mage::helper('woopra')->getCheckoutSuccess(); ?>',
132
  <?php if ($this->getSetting('woopra_checkout_success_coupon_code') != NULL) { ?> coupon_code: '<?php echo $this->getSetting('woopra_checkout_success_coupon_code'); ?>',<?php echo "\n"; } ?>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Woopra_Analytics_Event_And_Visitor_Tracking</name>
4
- <version>1.3.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/OSL-3.0">Open Software License (OSL)</license>
7
  <channel>community</channel>
@@ -18,12 +18,12 @@ Access custom reports instantly. No more bugging IT. No old-school interfaces. N
18
  &lt;br /&gt;&#xD;
19
  &lt;a href="http://www.k3live.com/magento-extensions/magento-woopra-tracking"&gt;&lt;img src="http://www.magentocommerce.com/magento-connect/media/catalog/product/w/o/woopra_tracking_5_1_1.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&#xD;
20
  Note: This module will not work without a subscription to the &lt;a href="http://www.woopra.com/?woo_campaign=affiliate&amp;woo_medium=referral&amp;woo_source=k3live"&gt;Woopra&lt;/a&gt; service.</description>
21
- <notes>Woopra AppConnect event naming changes.&#xD;
22
- </notes>
23
  <authors><author><name>Woopra</name><user>Woopra</user><email>support@woopra.com</email></author><author><name>K3Live</name><user>K3Live</user><email>support@k3live.com</email></author></authors>
24
- <date>2014-10-22</date>
25
- <time>04:42:15</time>
26
- <contents><target name="magecommunity"><dir><dir name="Woopra"><dir name="Analytics"><dir name="Block"><file name="Script.php" hash="bb3b76276e028d9e11eac15b4adb07b1"/></dir><dir name="Helper"><file name="Data.php" hash="2a918bd8ba1c9094acc02dac8f933953"/></dir><dir name="Model"><file name="Observer.php" hash="a66ff90baedfe990cf147bf56dd7557f"/></dir><dir name="etc"><file name="config.xml" hash="33c128a381b1dbd85d62e001a3f2ffcc"/><file name="system.xml" hash="90ebdc742914fe9ff990a39f27ef32e8"/></dir></dir></dir></dir></target><target name="magedesign"><dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="woopra.xml" hash="3f21344a558babd0d9ea0ed1edc6a87f"/></dir><dir name="template"><dir name="woopra"><file name="script.phtml" hash="2c9c55c9aa17d3b7f87f448636cef2b9"/><file name="checkout.phtml" hash="f3e74e937bdace20c8576a603303969b"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir><dir name="modules"><file name="Woopra_Analytics.xml" hash="a4715864833c0024017692871431cb91"/></dir></dir></target></contents>
27
  <compatible/>
28
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
29
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Woopra_Analytics_Event_And_Visitor_Tracking</name>
4
+ <version>1.4.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/OSL-3.0">Open Software License (OSL)</license>
7
  <channel>community</channel>
18
  &lt;br /&gt;&#xD;
19
  &lt;a href="http://www.k3live.com/magento-extensions/magento-woopra-tracking"&gt;&lt;img src="http://www.magentocommerce.com/magento-connect/media/catalog/product/w/o/woopra_tracking_5_1_1.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&#xD;
20
  Note: This module will not work without a subscription to the &lt;a href="http://www.woopra.com/?woo_campaign=affiliate&amp;woo_medium=referral&amp;woo_source=k3live"&gt;Woopra&lt;/a&gt; service.</description>
21
+ <notes>Now tracks product send to a friend&#xD;
22
+ Potential XSS vulnerabilities fixed</notes>
23
  <authors><author><name>Woopra</name><user>Woopra</user><email>support@woopra.com</email></author><author><name>K3Live</name><user>K3Live</user><email>support@k3live.com</email></author></authors>
24
+ <date>2014-12-05</date>
25
+ <time>21:34:40</time>
26
+ <contents><target name="magecommunity"><dir><dir name="Woopra"><dir name="Analytics"><dir name="Block"><file name="Script.php" hash="112352962ccd5bcf0e567f616888e580"/></dir><dir name="Helper"><file name="Data.php" hash="3b0ba17b1db831f88e6e58aa0c31143e"/></dir><dir name="Model"><file name="Observer.php" hash="717af31124d058b6b4dd00d56d2ce16f"/></dir><dir name="etc"><file name="config.xml" hash="27a46388dccfab8a95f7e8ab1337bc69"/><file name="system.xml" hash="7d3400279dab37ff34ccab127c5d049b"/></dir></dir></dir></dir></target><target name="magedesign"><dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="woopra.xml" hash="3f21344a558babd0d9ea0ed1edc6a87f"/></dir><dir name="template"><dir name="woopra"><file name="script.phtml" hash="e59b67401b4189d70697fa6d1f766288"/><file name="checkout.phtml" hash="f3e74e937bdace20c8576a603303969b"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir><dir name="modules"><file name="Woopra_Analytics.xml" hash="a4715864833c0024017692871431cb91"/></dir></dir></target></contents>
27
  <compatible/>
28
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
29
  </package>