Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gil--/magecado_orderlytics
📊 Easily pass order data to the DataLayer for conversion tracking
https://github.com/gil--/magecado_orderlytics
analytics magento-1 magento-extension
Last synced: 26 days ago
JSON representation
📊 Easily pass order data to the DataLayer for conversion tracking
- Host: GitHub
- URL: https://github.com/gil--/magecado_orderlytics
- Owner: gil--
- License: mit
- Created: 2015-11-05T05:06:41.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-09T15:54:49.000Z (almost 9 years ago)
- Last Synced: 2024-05-01T14:32:16.366Z (8 months ago)
- Topics: analytics, magento-1, magento-extension
- Language: HTML
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Magecado_Orderlytics
Easily pass order data to the DataLayer for conversion tracking# Setup
Install with [modman](https://github.com/colinmollenhour/modman) then head to `System > Configuration > Sales > Sales > Magecado Orderlytics` to configure to your liking.# Usage
## How to retrieve dataYou can easily access this data by calling the object and the specific properties. the JavaScript object is defined in `System > Configuration > Sales > Sales > Magecado Orderlytics` under **JavaScript Object Name**.
**Example: We want to get the customer's first name**
```
Mage_Order.customer_data.first_name
```
*Response `Benjamin`***Example: We want to get the customer's first and last name**
```
Mage_Order.customer_data.first_name + ' ' + Mage_Order.customer_data.last_name
```
*Response `Benjamin Franklin`*# Preview
## Admin Settings
![screen shot 2015-11-23 at 9 41 15 pm](https://cloud.githubusercontent.com/assets/3484527/11356384/4e1c2c42-922b-11e5-8c9d-1e45537d5cca.png)## Example of the JavaScript Markup in the DOM
![screen shot 2015-11-23 at 9 43 40 pm](https://cloud.githubusercontent.com/assets/3484527/11356385/4e1ea63e-922b-11e5-8b2e-2cf3212dff5d.png)## Example of ORder Response Data
```
{
"order_data":{"id":"100000032","total":8.3,"payment_type":"cashondelivery","currency_code":"GBP"},
"product_data":[{"id":"1210","price":5}],
"customer_data":{"id":"1","first_name":"Gil","last_name":"Greenberg","email":"[email protected]"}
}"
```# License
Copyright (C) 2015 Gil Greenberg
[License under MIT](LICENSE.txt)