elgentos/serversideanalytics

This package is abandoned and no longer maintained. No replacement package was suggested.
There is no license information available for the latest version (0.1.3) of this package.

Elgentos_ServerSideAnalytics

Installs: 1 240

Dependents: 0

Suggesters: 0

Security: 0

Stars: 5

Watchers: 12

Forks: 3

Open Issues: 0

Type:magento-module

0.1.3 2018-08-19 19:00 UTC

This package is auto-updated.

Last update: 2020-02-06 15:42:47 UTC


README

This extension aims to solve the problem of discrepancies between Magento revenue reports and the revenue reports in Google Analytics.

That problem arises due to the fact that a certain number of people close the browser window before returning to Magento's success page. Since Google Analytics is Javascript based, and thus client based, the GA Purchase Event will not be fired and the order will not be registered in Analytics.

Another reason why this problem arises is that people decide to pay at a later point in time through a different platform (like the PSP's), using a link in an email for example.

Caveats

  • This extension disables the GA JS Purchase Event on the success page altogether. It will however track the pageview.
  • This extension only tracks paid orders (it fires on sales_order_payment_pay). Non-paid orders will never show up in Analytics. This is our current clients' use case, mileage may differ. PR's for code to also track non-paid orders are welcomed.

Further info

  • Compatible with GA Measurement Protocol version 1;
  • Debugging is enabled when Magento is in developer mode. See var/log/elgentos_serversideanalytics_debug_response.log for the log;
  • Exceptions will be logged to var/log/exceptions.log;
  • The products in the payload are retrieve on invoice-basis, not on order-basis;
  • An event has been added for you to add or overwrite custom fields to products in the purchase event; elgentos_serversideanalytics_product_item_transport_object;
  • An event has been added for you to add or overwrite fields to tracking data in the purchase event; elgentos_serversideanalytics_tracking_data_transport_object;
  • Testing can be done by dispatching test_event_for_serversideanalytics with a $payment (Mage_Sales_Order_Payment) object in the payload;
  • Error messages can be translated by adding a app/locale/your_LOCALE/Elgentos_ServerSideAnalytics.csv file.