Woopra_Analytics_Event_And_Visitor_Tracking - Version 1.8.0

Version Notes

Modified observer to capture ajax add to cart and compare.

Download this release

Release Info

Developer Woopra
Extension Woopra_Analytics_Event_And_Visitor_Tracking
Version 1.8.0
Comparing to
See all releases


Code changes from version 1.7.0 to 1.8.0

app/code/community/Woopra/Analytics/Model/Observer.php CHANGED
@@ -11,6 +11,55 @@
11
 
12
  class Woopra_Analytics_Model_Observer extends Varien_Event_Observer
13
  {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  public function newsletterSubscriberChange(Varien_Event_Observer $observer)
15
  {
16
  if (Mage::helper('woopra')->getNewsletterSubscribed() != NULL) {
@@ -35,23 +84,39 @@ class Woopra_Analytics_Model_Observer extends Varien_Event_Observer
35
  }
36
  }
37
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  public function controllerActionBefore(Varien_Event_Observer $observer)
39
  {
40
- if ($observer->getEvent()->getControllerAction()->getFullActionName() == 'customer_account_loginPost' &&
41
  Mage::helper('woopra')->getCustomerLogin() != NULL) {
42
  Mage::getSingleton('core/session')->setData('woopra_login_logout_trigger', 1);
43
  Mage::getSingleton('core/session')->setData('woopra_login_logout_status',
44
  Mage::helper('woopra')->getCustomerLogin());
45
  }
46
 
47
- if ($observer->getEvent()->getControllerAction()->getFullActionName() == 'customer_account_logoutSuccess' &&
48
  Mage::helper('woopra')->getCustomerLogout() != NULL) {
49
  Mage::getSingleton('core/session')->setData('woopra_login_logout_trigger', 1);
50
  Mage::getSingleton('core/session')->setData('woopra_login_logout_status',
51
  Mage::helper('woopra')->getCustomerLogout());
52
  }
53
 
54
- if ($observer->getEvent()->getControllerAction()->getFullActionName() == 'contacts_index_post' &&
55
  Mage::helper('woopra')->getContactFormSent() != NULL) {
56
  $request = $observer->getEvent()->getControllerAction()->getRequest()->getParams();
57
  if ($request) {
@@ -67,39 +132,7 @@ class Woopra_Analytics_Model_Observer extends Varien_Event_Observer
67
  }
68
  }
69
 
70
- if ($observer->getEvent()->getControllerAction()->getFullActionName() == 'checkout_cart_add' &&
71
- Mage::helper('woopra')->getProductAddedToCart() != NULL) {
72
- $request = $observer->getEvent()->getControllerAction()->getRequest()->getParams();
73
- if ($request) {
74
- $product = Mage::getModel('catalog/product')->load($request['product'])->getData();
75
- Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_trigger', 1);
76
- Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_status',
77
- Mage::helper('woopra')->getProductAddedToCart());
78
- Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_name', addslashes($product['name']));
79
- Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_sku', addslashes($product['sku']));
80
- Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_price', round($product['price'], 2));
81
- }
82
- }
83
-
84
- if ($observer->getEvent()->getControllerAction()->getFullActionName() == 'checkout_cart_delete' &&
85
- Mage::helper('woopra')->getProductRemovedFromCart() != NULL) {
86
- $request = $observer->getEvent()->getControllerAction()->getRequest()->getParams();
87
- if ($request) {
88
- $quoteItemId = Mage::getModel('checkout/cart')->getQuote()->getItemById($request['id']);
89
- if ($quoteItemId) {
90
- $productId = $quoteItemId->getProduct()->getId();
91
- $product = Mage::getModel('catalog/product')->load($productId)->getData();
92
- Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_trigger', 1);
93
- Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_status',
94
- Mage::helper('woopra')->getProductRemovedFromCart());
95
- Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_name', addslashes($product['name']));
96
- Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_sku', addslashes($product['sku']));
97
- Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_price', round($product['price'], 2));
98
- }
99
- }
100
- }
101
-
102
- if ($observer->getEvent()->getControllerAction()->getFullActionName() == 'wishlist_index_add' &&
103
  Mage::helper('woopra')->getProductAddedToWishlist() != NULL) {
104
  $request = $observer->getEvent()->getControllerAction()->getRequest()->getParams();
105
  if ($request) {
@@ -113,7 +146,7 @@ class Woopra_Analytics_Model_Observer extends Varien_Event_Observer
113
  }
114
  }
115
 
116
- if ($observer->getEvent()->getControllerAction()->getFullActionName() == 'wishlist_index_remove' &&
117
  Mage::helper('woopra')->getProductRemovedFromWishlist() != NULL) {
118
  $request = $observer->getEvent()->getControllerAction()->getRequest()->getParams();
119
  if ($request) {
@@ -128,40 +161,12 @@ class Woopra_Analytics_Model_Observer extends Varien_Event_Observer
128
  }
129
  }
130
 
131
- if ($observer->getEvent()->getControllerAction()->getFullActionName() == 'catalog_product_compare_add' &&
132
- Mage::helper('woopra')->getProductAddedToCompare() != NULL) {
133
- $request = $observer->getEvent()->getControllerAction()->getRequest()->getParams();
134
- if ($request) {
135
- $product = Mage::getModel('catalog/product')->load($request['product'])->getData();
136
- Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_trigger', 1);
137
- Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_status',
138
- Mage::helper('woopra')->getProductAddedToCompare());
139
- Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_name', addslashes($product['name']));
140
- Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_sku', addslashes($product['sku']));
141
- Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_price', round($product['price'], 2));
142
- }
143
- }
144
-
145
- if ($observer->getEvent()->getControllerAction()->getFullActionName() == 'catalog_product_compare_remove' &&
146
- Mage::helper('woopra')->getProductRemovedFromCompare() != NULL) {
147
- $request = $observer->getEvent()->getControllerAction()->getRequest()->getParams();
148
- if ($request) {
149
- $product = Mage::getModel('catalog/product')->load($request['product'])->getData();
150
- Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_trigger', 1);
151
- Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_status',
152
- Mage::helper('woopra')->getProductRemovedFromCompare());
153
- Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_name', $product['name']);
154
- Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_sku', $product['sku']);
155
- Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_price', round($product['price'], 2));
156
- }
157
- }
158
-
159
- if ($observer->getEvent()->getControllerAction()->getFullActionName() == 'checkout_onepage_index' &&
160
  Mage::helper('woopra')->getCheckoutBillingAddress() != NULL) {
161
  Mage::getSingleton('core/session')->setData('woopra_checkout_trigger', 1);
162
  }
163
 
164
- if ($observer->getEvent()->getControllerAction()->getFullActionName() == 'checkout_onepage_savePayment' &&
165
  Mage::helper('woopra')->getCheckoutPaymentMethod() != NULL) {
166
  $request = $observer->getEvent()->getControllerAction()->getRequest()->getParams();
167
  Mage::getSingleton('core/session')->setData('woopra_checkout_trigger', 1);
@@ -173,8 +178,8 @@ class Woopra_Analytics_Model_Observer extends Varien_Event_Observer
173
  }
174
  }
175
 
176
- if (($observer->getEvent()->getControllerAction()->getFullActionName() == 'checkout_onepage_success' ||
177
- $observer->getEvent()->getControllerAction()->getFullActionName() == 'checkout_multishipping_success')
178
  && Mage::helper('woopra')->getCheckoutSuccess() != NULL) {
179
  $lastOrderId = Mage::getSingleton('checkout/session')->getLastRealOrderId();
180
  if ($lastOrderId) {
@@ -211,7 +216,7 @@ class Woopra_Analytics_Model_Observer extends Varien_Event_Observer
211
  }
212
  }
213
 
214
- if ($observer->getEvent()->getControllerAction()->getFullActionName() == 'catalogsearch_result_index' &&
215
  Mage::helper('woopra')->getCatalogSearch() != NULL) {
216
  $request = $observer->getEvent()->getControllerAction()->getRequest()->getParams();
217
  if ($request) {
@@ -221,7 +226,7 @@ class Woopra_Analytics_Model_Observer extends Varien_Event_Observer
221
  }
222
  }
223
 
224
- if ($observer->getEvent()->getControllerAction()->getFullActionName() == 'catalogsearch_advanced_result' &&
225
  Mage::helper('woopra')->getCatalogSearch() != NULL) {
226
  $request = $observer->getEvent()->getControllerAction()->getRequest()->getParams();
227
  $subtotal = '';
@@ -243,7 +248,7 @@ class Woopra_Analytics_Model_Observer extends Varien_Event_Observer
243
  }
244
  }
245
 
246
- if ($observer->getEvent()->getControllerAction()->getFullActionName() == 'review_product_list' &&
247
  Mage::helper('woopra')->getProductReviewRead() != NULL) {
248
  $request = $observer->getEvent()->getControllerAction()->getRequest()->getParams();
249
  if ($request) {
@@ -257,7 +262,7 @@ class Woopra_Analytics_Model_Observer extends Varien_Event_Observer
257
  }
258
  }
259
 
260
- if ($observer->getEvent()->getControllerAction()->getFullActionName() == 'review_product_post' &&
261
  Mage::helper('woopra')->getProductReviewPosted() != NULL) {
262
  $request = $observer->getEvent()->getControllerAction()->getRequest()->getParams();
263
  if ($request) {
@@ -278,7 +283,7 @@ class Woopra_Analytics_Model_Observer extends Varien_Event_Observer
278
  }
279
  }
280
 
281
- if ($observer->getEvent()->getControllerAction()->getFullActionName() ==
282
  'customer_account_forgotpasswordpost' &&
283
  Mage::helper('woopra')->getForgotPassword() != NULL) {
284
  $request = $observer->getEvent()->getControllerAction()->getRequest()->getParams();
@@ -289,7 +294,7 @@ class Woopra_Analytics_Model_Observer extends Varien_Event_Observer
289
  }
290
  }
291
 
292
- if ($observer->getEvent()->getControllerAction()->getFullActionName() == 'customer_account_editPost' &&
293
  Mage::helper('woopra')->getChangedPassword() != NULL) {
294
  $request = $observer->getEvent()->getControllerAction()->getRequest()->getParams();
295
  if ($request['change_password'] == 1 && $request['current_password'] != $request['password']) {
@@ -297,7 +302,7 @@ class Woopra_Analytics_Model_Observer extends Varien_Event_Observer
297
  }
298
  }
299
 
300
- if ($observer->getEvent()->getControllerAction()->getFullActionName() == 'tag_index_save' &&
301
  Mage::helper('woopra')->getProductTagAdded() != NULL) {
302
  $request = $observer->getEvent()->getControllerAction()->getRequest()->getParams();
303
  if ($request) {
@@ -314,7 +319,7 @@ class Woopra_Analytics_Model_Observer extends Varien_Event_Observer
314
  }
315
  }
316
 
317
- if ($observer->getEvent()->getControllerAction()->getFullActionName() == 'checkout_cart_couponPost' &&
318
  Mage::helper('woopra')->getCouponCodeAdded() != NULL) {
319
  $request = $observer->getEvent()->getControllerAction()->getRequest()->getParams();
320
  if ($request) {
@@ -347,12 +352,12 @@ class Woopra_Analytics_Model_Observer extends Varien_Event_Observer
347
  }
348
  }
349
 
350
- if ($observer->getEvent()->getControllerAction()->getFullActionName() == 'customer_account_create' &&
351
  Mage::helper('woopra')->getCustomerCreateAccount() != NULL) {
352
  Mage::getSingleton('core/session')->setData('woopra_create_account_trigger', 1);
353
  }
354
 
355
- if ($observer->getEvent()->getControllerAction()->getFullActionName() == 'customer_account_createpost' &&
356
  Mage::helper('woopra')->getCustomerCreateAccount() != NULL) {
357
  $request = $observer->getEvent()->getControllerAction()->getRequest()->getParams();
358
  Mage::getSingleton('core/session')->setData('woopra_create_account_success_trigger', 1);
@@ -365,7 +370,7 @@ class Woopra_Analytics_Model_Observer extends Varien_Event_Observer
365
  }
366
  }
367
 
368
- if ($observer->getEvent()->getControllerAction()->getFullActionName() == 'checkout_cart_estimatePost' &&
369
  Mage::helper('woopra')->getEstimatePost() != NULL) {
370
  $request = $observer->getEvent()->getControllerAction()->getRequest()->getParams();
371
  if ($request) {
@@ -378,7 +383,7 @@ class Woopra_Analytics_Model_Observer extends Varien_Event_Observer
378
  }
379
  }
380
 
381
- if ($observer->getEvent()->getControllerAction()->getFullActionName() == 'cms_index_noRoute' &&
382
  Mage::helper('woopra')->getCmsNoRoute() != NULL) {
383
  $request = $observer->getEvent()->getControllerAction()->getRequest()->getOriginalPathInfo();
384
  Mage::getSingleton('core/session')->setData('woopra_cms_noroute_trigger', 1);
@@ -387,7 +392,7 @@ class Woopra_Analytics_Model_Observer extends Varien_Event_Observer
387
  }
388
  }
389
 
390
- if ($observer->getEvent()->getControllerAction()->getFullActionName() == 'poll_vote_add' &&
391
  Mage::helper('woopra')->getPollVote() != NULL) {
392
  $request = $observer->getEvent()->getControllerAction()->getRequest()->getParams();
393
  if ($request) {
@@ -406,7 +411,7 @@ class Woopra_Analytics_Model_Observer extends Varien_Event_Observer
406
  }
407
  }
408
 
409
- if ($observer->getEvent()->getControllerAction()->getFullActionName() == 'sendfriend_product_sendmail' &&
410
  Mage::helper('woopra')->getProductEmailToFriend() != NULL) {
411
  $request = $observer->getEvent()->getControllerAction()->getRequest()->getParams();
412
  if ($request) {
11
 
12
  class Woopra_Analytics_Model_Observer extends Varien_Event_Observer
13
  {
14
+ public function catalogProductCompareAddProduct(Varien_Event_Observer $observer)
15
+ {
16
+ if (Mage::helper('woopra')->getProductAddedToCompare() != NULL) {
17
+ $event = $observer->getEvent();
18
+ if ($event) {
19
+ $product = $event->getProduct();
20
+ Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_trigger', 1);
21
+ Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_status',
22
+ Mage::helper('woopra')->getProductAddedToCompare());
23
+ Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_name', addslashes($product['name']));
24
+ Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_sku', addslashes($product['sku']));
25
+ Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_price', round($product['price'], 2));
26
+ }
27
+ }
28
+ }
29
+
30
+ public function catalogProductCompareRemoveProduct(Varien_Event_Observer $observer)
31
+ {
32
+ if (Mage::helper('woopra')->getProductRemovedFromCompare() != NULL) {
33
+ $event = $observer->getEvent();
34
+ if ($event) {
35
+ $productId = $event->getProduct()->getProductId();
36
+ $product = Mage::getModel('catalog/product')->load($productId)->getData();
37
+ Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_trigger', 1);
38
+ Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_status',
39
+ Mage::helper('woopra')->getProductRemovedFromCompare());
40
+ Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_name', $product['name']);
41
+ Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_sku', $product['sku']);
42
+ Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_price', round($product['price'], 2));
43
+ }
44
+ }
45
+ }
46
+
47
+ public function checkoutCartProductAddAfter(Varien_Event_Observer $observer)
48
+ {
49
+ if (Mage::helper('woopra')->getProductAddedToCart() != NULL) {
50
+ $event = $observer->getEvent();
51
+ if ($event) {
52
+ $product = $event->getProduct();
53
+ Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_trigger', 1);
54
+ Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_status',
55
+ Mage::helper('woopra')->getProductAddedToCart());
56
+ Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_name', addslashes($product['name']));
57
+ Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_sku', addslashes($product['sku']));
58
+ Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_price', round($product['price'], 2));
59
+ }
60
+ }
61
+ }
62
+
63
  public function newsletterSubscriberChange(Varien_Event_Observer $observer)
64
  {
65
  if (Mage::helper('woopra')->getNewsletterSubscribed() != NULL) {
84
  }
85
  }
86
 
87
+ public function salesQuoteRemoveItem(Varien_Event_Observer $observer)
88
+ {
89
+ if (Mage::helper('woopra')->getProductRemovedFromCart() != NULL) {
90
+ $event = $observer->getEvent();
91
+ if ($event) {
92
+ $product = $event->getQuoteItem()->getProduct();
93
+ Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_trigger', 1);
94
+ Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_status',
95
+ Mage::helper('woopra')->getProductRemovedFromCart());
96
+ Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_name', addslashes($product['name']));
97
+ Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_sku', addslashes($product['sku']));
98
+ Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_price', round($product['price'], 2));
99
+ }
100
+ }
101
+ }
102
+
103
  public function controllerActionBefore(Varien_Event_Observer $observer)
104
  {
105
+ if ($observer->getEvent()->getControllerAction()->getFullActionName() === 'customer_account_loginPost' &&
106
  Mage::helper('woopra')->getCustomerLogin() != NULL) {
107
  Mage::getSingleton('core/session')->setData('woopra_login_logout_trigger', 1);
108
  Mage::getSingleton('core/session')->setData('woopra_login_logout_status',
109
  Mage::helper('woopra')->getCustomerLogin());
110
  }
111
 
112
+ if ($observer->getEvent()->getControllerAction()->getFullActionName() === 'customer_account_logoutSuccess' &&
113
  Mage::helper('woopra')->getCustomerLogout() != NULL) {
114
  Mage::getSingleton('core/session')->setData('woopra_login_logout_trigger', 1);
115
  Mage::getSingleton('core/session')->setData('woopra_login_logout_status',
116
  Mage::helper('woopra')->getCustomerLogout());
117
  }
118
 
119
+ if ($observer->getEvent()->getControllerAction()->getFullActionName() === 'contacts_index_post' &&
120
  Mage::helper('woopra')->getContactFormSent() != NULL) {
121
  $request = $observer->getEvent()->getControllerAction()->getRequest()->getParams();
122
  if ($request) {
132
  }
133
  }
134
 
135
+ if ($observer->getEvent()->getControllerAction()->getFullActionName() === 'wishlist_index_add' &&
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
136
  Mage::helper('woopra')->getProductAddedToWishlist() != NULL) {
137
  $request = $observer->getEvent()->getControllerAction()->getRequest()->getParams();
138
  if ($request) {
146
  }
147
  }
148
 
149
+ if ($observer->getEvent()->getControllerAction()->getFullActionName() === 'wishlist_index_remove' &&
150
  Mage::helper('woopra')->getProductRemovedFromWishlist() != NULL) {
151
  $request = $observer->getEvent()->getControllerAction()->getRequest()->getParams();
152
  if ($request) {
161
  }
162
  }
163
 
164
+ if ($observer->getEvent()->getControllerAction()->getFullActionName() === 'checkout_onepage_index' &&
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
165
  Mage::helper('woopra')->getCheckoutBillingAddress() != NULL) {
166
  Mage::getSingleton('core/session')->setData('woopra_checkout_trigger', 1);
167
  }
168
 
169
+ if ($observer->getEvent()->getControllerAction()->getFullActionName() === 'checkout_onepage_savePayment' &&
170
  Mage::helper('woopra')->getCheckoutPaymentMethod() != NULL) {
171
  $request = $observer->getEvent()->getControllerAction()->getRequest()->getParams();
172
  Mage::getSingleton('core/session')->setData('woopra_checkout_trigger', 1);
178
  }
179
  }
180
 
181
+ if (($observer->getEvent()->getControllerAction()->getFullActionName() === 'checkout_onepage_success' ||
182
+ $observer->getEvent()->getControllerAction()->getFullActionName() === 'checkout_multishipping_success')
183
  && Mage::helper('woopra')->getCheckoutSuccess() != NULL) {
184
  $lastOrderId = Mage::getSingleton('checkout/session')->getLastRealOrderId();
185
  if ($lastOrderId) {
216
  }
217
  }
218
 
219
+ if ($observer->getEvent()->getControllerAction()->getFullActionName() === 'catalogsearch_result_index' &&
220
  Mage::helper('woopra')->getCatalogSearch() != NULL) {
221
  $request = $observer->getEvent()->getControllerAction()->getRequest()->getParams();
222
  if ($request) {
226
  }
227
  }
228
 
229
+ if ($observer->getEvent()->getControllerAction()->getFullActionName() === 'catalogsearch_advanced_result' &&
230
  Mage::helper('woopra')->getCatalogSearch() != NULL) {
231
  $request = $observer->getEvent()->getControllerAction()->getRequest()->getParams();
232
  $subtotal = '';
248
  }
249
  }
250
 
251
+ if ($observer->getEvent()->getControllerAction()->getFullActionName() === 'review_product_list' &&
252
  Mage::helper('woopra')->getProductReviewRead() != NULL) {
253
  $request = $observer->getEvent()->getControllerAction()->getRequest()->getParams();
254
  if ($request) {
262
  }
263
  }
264
 
265
+ if ($observer->getEvent()->getControllerAction()->getFullActionName() === 'review_product_post' &&
266
  Mage::helper('woopra')->getProductReviewPosted() != NULL) {
267
  $request = $observer->getEvent()->getControllerAction()->getRequest()->getParams();
268
  if ($request) {
283
  }
284
  }
285
 
286
+ if ($observer->getEvent()->getControllerAction()->getFullActionName() ===
287
  'customer_account_forgotpasswordpost' &&
288
  Mage::helper('woopra')->getForgotPassword() != NULL) {
289
  $request = $observer->getEvent()->getControllerAction()->getRequest()->getParams();
294
  }
295
  }
296
 
297
+ if ($observer->getEvent()->getControllerAction()->getFullActionName() === 'customer_account_editPost' &&
298
  Mage::helper('woopra')->getChangedPassword() != NULL) {
299
  $request = $observer->getEvent()->getControllerAction()->getRequest()->getParams();
300
  if ($request['change_password'] == 1 && $request['current_password'] != $request['password']) {
302
  }
303
  }
304
 
305
+ if ($observer->getEvent()->getControllerAction()->getFullActionName() === 'tag_index_save' &&
306
  Mage::helper('woopra')->getProductTagAdded() != NULL) {
307
  $request = $observer->getEvent()->getControllerAction()->getRequest()->getParams();
308
  if ($request) {
319
  }
320
  }
321
 
322
+ if ($observer->getEvent()->getControllerAction()->getFullActionName() === 'checkout_cart_couponPost' &&
323
  Mage::helper('woopra')->getCouponCodeAdded() != NULL) {
324
  $request = $observer->getEvent()->getControllerAction()->getRequest()->getParams();
325
  if ($request) {
352
  }
353
  }
354
 
355
+ if ($observer->getEvent()->getControllerAction()->getFullActionName() === 'customer_account_create' &&
356
  Mage::helper('woopra')->getCustomerCreateAccount() != NULL) {
357
  Mage::getSingleton('core/session')->setData('woopra_create_account_trigger', 1);
358
  }
359
 
360
+ if ($observer->getEvent()->getControllerAction()->getFullActionName() === 'customer_account_createpost' &&
361
  Mage::helper('woopra')->getCustomerCreateAccount() != NULL) {
362
  $request = $observer->getEvent()->getControllerAction()->getRequest()->getParams();
363
  Mage::getSingleton('core/session')->setData('woopra_create_account_success_trigger', 1);
370
  }
371
  }
372
 
373
+ if ($observer->getEvent()->getControllerAction()->getFullActionName() === 'checkout_cart_estimatePost' &&
374
  Mage::helper('woopra')->getEstimatePost() != NULL) {
375
  $request = $observer->getEvent()->getControllerAction()->getRequest()->getParams();
376
  if ($request) {
383
  }
384
  }
385
 
386
+ if ($observer->getEvent()->getControllerAction()->getFullActionName() === 'cms_index_noRoute' &&
387
  Mage::helper('woopra')->getCmsNoRoute() != NULL) {
388
  $request = $observer->getEvent()->getControllerAction()->getRequest()->getOriginalPathInfo();
389
  Mage::getSingleton('core/session')->setData('woopra_cms_noroute_trigger', 1);
392
  }
393
  }
394
 
395
+ if ($observer->getEvent()->getControllerAction()->getFullActionName() === 'poll_vote_add' &&
396
  Mage::helper('woopra')->getPollVote() != NULL) {
397
  $request = $observer->getEvent()->getControllerAction()->getRequest()->getParams();
398
  if ($request) {
411
  }
412
  }
413
 
414
+ if ($observer->getEvent()->getControllerAction()->getFullActionName() === 'sendfriend_product_sendmail' &&
415
  Mage::helper('woopra')->getProductEmailToFriend() != NULL) {
416
  $request = $observer->getEvent()->getControllerAction()->getRequest()->getParams();
417
  if ($request) {
app/code/community/Woopra/Analytics/etc/config.xml CHANGED
@@ -12,7 +12,7 @@
12
  <config>
13
  <modules>
14
  <Woopra_Analytics>
15
- <version>1.7.0</version>
16
  </Woopra_Analytics>
17
  </modules>
18
  <global>
@@ -41,6 +41,43 @@
41
  </newsletter_subscriber_change>
42
  </observers>
43
  </newsletter_subscriber_save_after>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
  <controller_action_predispatch>
45
  <observers>
46
  <controller_action_before>
12
  <config>
13
  <modules>
14
  <Woopra_Analytics>
15
+ <version>1.8.0</version>
16
  </Woopra_Analytics>
17
  </modules>
18
  <global>
41
  </newsletter_subscriber_change>
42
  </observers>
43
  </newsletter_subscriber_save_after>
44
+ <catalog_product_compare_add_product>
45
+ <observers>
46
+ <woopra_catalog_product_compare_add_product>
47
+ <type>singleton</type>
48
+ <class>woopra/observer</class>
49
+ <method>catalogProductCompareAddProduct</method>
50
+ </woopra_catalog_product_compare_add_product>
51
+ </observers>
52
+ </catalog_product_compare_add_product>
53
+ <catalog_product_compare_remove_product>
54
+ <observers>
55
+ <woopra_catalog_product_compare_remove_product>
56
+ <type>singleton</type>
57
+ <class>woopra/observer</class>
58
+ <method>catalogProductCompareRemoveProduct</method>
59
+ </woopra_catalog_product_compare_remove_product>
60
+ </observers>
61
+ </catalog_product_compare_remove_product>
62
+
63
+ <checkout_cart_product_add_after>
64
+ <observers>
65
+ <woopra_checkout_cart_product_add_after>
66
+ <type>singleton</type>
67
+ <class>woopra/observer</class>
68
+ <method>checkoutCartProductAddAfter</method>
69
+ </woopra_checkout_cart_product_add_after>
70
+ </observers>
71
+ </checkout_cart_product_add_after>
72
+ <sales_quote_remove_item>
73
+ <observers>
74
+ <woopra_sales_quote_remove_item>
75
+ <type>singleton</type>
76
+ <class>woopra/observer</class>
77
+ <method>salesQuoteRemoveItem</method>
78
+ </woopra_sales_quote_remove_item>
79
+ </observers>
80
+ </sales_quote_remove_item>
81
  <controller_action_predispatch>
82
  <observers>
83
  <controller_action_before>
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.7.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,11 +18,11 @@ 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>Bug fix, attempting to remove an item from the cart that had previously been removed resulted in an error.</notes>
22
  <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>
23
- <date>2015-05-09</date>
24
- <time>02:44:08</time>
25
- <contents><target name="magecommunity"><dir><dir name="Woopra"><dir name="Analytics"><dir name="Block"><file name="Script.php" hash="02c0d45470a447ae4f14e18f4abdc3d4"/></dir><dir name="Helper"><file name="Data.php" hash="de87ef2faeb806905627abb1644be4f6"/></dir><dir name="Model"><file name="Observer.php" hash="c0b33c770233be0bc4e5b6a6015a69fe"/></dir><dir name="etc"><file name="config.xml" hash="63e9866d41c579e9b75505367c036de6"/><file name="system.xml" hash="cb54ec73ff11b133cc864741f300896c"/></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="d9dc3de2af23a1991ab7785342086d40"/></dir><dir name="template"><dir name="woopra"><file name="script.phtml" hash="2686a404f8b8e967c200d57fa1dfb55c"/><file name="checkout.phtml" hash="b3d7d026c4cf86f834a2a9d5f1d33f36"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir><dir name="modules"><file name="Woopra_Analytics.xml" hash="6f38d8633187db1ba9584af2341380a4"/></dir></dir></target></contents>
26
  <compatible/>
27
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
28
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Woopra_Analytics_Event_And_Visitor_Tracking</name>
4
+ <version>1.8.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>Modified observer to capture ajax add to cart and compare.</notes>
22
  <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>
23
+ <date>2015-06-18</date>
24
+ <time>05:20:44</time>
25
+ <contents><target name="magecommunity"><dir><dir name="Woopra"><dir name="Analytics"><dir name="Block"><file name="Script.php" hash="02c0d45470a447ae4f14e18f4abdc3d4"/></dir><dir name="Helper"><file name="Data.php" hash="de87ef2faeb806905627abb1644be4f6"/></dir><dir name="Model"><file name="Observer.php" hash="730ce88d02056e8162c62f4a3f6358ad"/></dir><dir name="etc"><file name="config.xml" hash="a58eb517cd377b63f0439aac23fdf26b"/><file name="system.xml" hash="cb54ec73ff11b133cc864741f300896c"/></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="d9dc3de2af23a1991ab7785342086d40"/></dir><dir name="template"><dir name="woopra"><file name="script.phtml" hash="2686a404f8b8e967c200d57fa1dfb55c"/><file name="checkout.phtml" hash="b3d7d026c4cf86f834a2a9d5f1d33f36"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir><dir name="modules"><file name="Woopra_Analytics.xml" hash="6f38d8633187db1ba9584af2341380a4"/></dir></dir></target></contents>
26
  <compatible/>
27
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
28
  </package>