How to implement google ecommerce and enhanced ecommerce Analytics ?
Ho you have prebuilt code for google ecommerce and enhanced ecommerce Analytics or I have to add those and if do How to implement google ecommerce and enhanced ecommerce Analytics ?
Say for I want to have in SEO with following ecommerce data to send
In short, you want Google Analytics or something else?
You just need to paste the scripts given by google in the header.
Hi @devansh-webkul , I already implemented analytics.js but it has more advance for ECommerce which is 'enhanced ecommerce Analytics' , I want to have this .
Please checkout this https://developers.google.com/analytics/devguides/collection/analyticsjs/ecommerce?authuser=2
Well these things you need to customize it from your end. Example section is already there,
You just need to transform your data from PHP array to js strings.
Hi @devansh-webkul ,
Thanks for your reply. May I know which bagisto source file I should implement that google ecommerce Analytics ?
It depends on your requirement. Where you want to place all these things?
Hi @devansh-webkul , Yes yesterday I have added some of them in product view page /var/www/html/packages/Webkul/Velocity/src/Resources/views/shop/products/view.blade.php, but for google Action Data means for transaction https://developers.google.com/analytics/devguides/collection/analyticsjs/enhanced-ecommerce?authuser=2#action-data where to add?
I need to know source location to get transaction once finished an order !!
I have checked the link, where they clearly say that
this represents information about an e-commerce related activity that has taken place. So the best place is the admin end. Where you will get all the order ids and related stuff.