fooman / googleanalyticsplus

Magento Extension to add extra features to the default GoogleAnalytics module.
http://store.fooman.co.nz/extensions/magento-extension-googleanalyticsplus.html
100 stars 53 forks source link

TAG Manager - data layer conversion data #69

Closed rancey closed 9 years ago

rancey commented 9 years ago

Hi Kristoff,

I am using the fooman TAG Manager code to send conversion tracking data to Facebook Tracking Pixel/Code.. To show the conversion data in FB, I need a dataLayer for GTM on the success page which contains the conversion data.
This code adds this conversion data to the success page only - these dataLayer variables become available to GTM following this change:

conversion_order_id (order id of the converted order) conversion_store (store name) 'conversion_revenue_excl_taxship (conversion value excluding tax and shipping) conversion_revenue_shipping (conversion shipping revenue) conversion_revenue_tax (conversion tax revenue) conversion_revenue_revenue (total conversion value including tax and shipping) conversion_currency (currency code of the values)

It's does not affect the functionality of anything else within your code nor does it changes the way the GTM implementation works.

Regards,

Tim Rance Corset Story Ltd.

Flipmediaco commented 9 years ago

Very useful and logical update.

the2003s commented 9 years ago

@fooman is this on the roadmap for the next release?

qx54 commented 9 years ago

Another vote for this

rmarji commented 9 years ago

+1

fooman commented 9 years ago

Thanks Tim for adding this.