Implementing Enhanced Ecommerce in Google Analytics - e-commerce

I'd like to know how to implement Enhanced Ecommerce onto my website. From hours of reading up on this topic, I now have a general understanding of how Enhanced Ecommerce works. However, there's literally no websites providing tutorial on how to implement this besides Google's website, which is pretty advanced for someone like me who is not a professional programmer.
Several questions I have regarding Enhanced Ecommerce.
1.) Do I add the enhanced ecommerce code to JUST the "thank you for your order" page of my ecommerce site, or can I add it to all pages of my site?
This is my current Analytics tracking code for all the pages on my website AND ecommerce site.
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new
Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-47765425-1', 'auto');
ga('send', 'pageview');
ga('require', 'ec');
2.) For the product details (SKU, product name, price, etc), how does Analytics retrieve these info? Does it intelligently retrieve these info automatically or do I have to manually create a spreadsheet and input these info, and have Analytics find the info on there? This is what confuses me the most.
3.) Any helpful links to implementing Enhanced Ecommerce that explains question #2?

1) It only needs to be on pages sending the ecommerce events.
2) Best practice is to generate these values when creating the "thank you for your order" page - say from a template. The server-side code has this information and should populate these values (SKU, product name, etc) into the generated html page.
It is possible to store this data in cookies or hidden values on the page and access this data via javascript to build the events - i.e. if whatever software you are using for your shopping cart has this data available, you can simply access this.
3) The closest backend example is with python based on Django but uses the legacy ga.js and only the standard ecommerce tracking: Cartridge.
There is a python object for 'order' that contains the purchase information. Django uses templates to generate the html page - which is the link. The page served contains the javascript events with all the ecommerce requires (SKU, product name, etc).

Related

Send Google Analytics Data to eCommerce Server

We want to save in our database (custom-developed shop with C# and ASP.NET) where our customers came from to improve our marketing strategies, so:
Is it possible to send google analytics data to the eCommerce server while performing a checkout?
You need to enable the ecommerce option on your google analytics dashboard.
Then, enter the tracking code on the purchase confirmation page.
You can consult the link below:
https://support.google.com/analytics/answer/1009612?hl=en
It is also possible to identify the user's origin to improve their marketing campaigns. Just follow this:
https://support.google.com/analytics/answer/1033173?hl=en
The Real Time Reporting API enables you to request real time data—for example, real time activity on your property.
However you can extract information such as pages and events, not ecommerce data. Therefore you should make sure to track the checkout funnel so that the information is within an event (with category, action and label). At that point you can use the API I indicated.

Pull Data from shopping websites by URL

I'm using Vuejs frame-work, and I'm looking for a solution that will allow me to pull from a link of shopping sites like Amazon and show me all the product details on Json, like there is on YouTube that when copying a link for example to WhatsApp, then the link loads information about the video.
someone know witch technology is recommended for this?
You could use a web crawler such as dexi.io to extract the html of interest from any web page. Calling dexi can be done programmatically from your code.

Adding ecommerce options to existing site using PrestaShop

What I intend to do is to keep my website with the CMS that I have in place for 12 years because last year I've redesigned it and I've even implemented a very nice AMP version.
To my existing site which includes also product pages, I would like to integrate an ecommerce solution and the one that I like the most is Presta Shop.
Rather than migrating the content to Presta Shop, I want to just bring the stock, price, quantity and add to cart to the existing site via php by calling Presta Shop and fetching specific product IDs.
Is this possible?
So far I didn't find anything about how could this be achieved.
I've read that it could be done in Magento, but nothing for Presta Shop.
Grateful if you have any insights on this.
Many thanks,
Mihai Bocsaru
You have few options, you can use PrestaShop API via Webservice, you can also create your store in some subdirectory and copy layout from your current website
Third option would be to have PrestaShop installation on the same server and just get all the information data from its database, of course entire checkout process should be handled via PrestaShop, this is why most common scenario is to just use website layout with proper e-commerce addition, downside of those two options is that you'll have two administration panels but i guess it's not that big issue
Thank you, Krystian!
I've presented the client the benefits of having the Presta Shop run on its own folder or sub-domain, but he wants it within the site.
We might have to integrate Presta Shop ecommerce options that I've mentioned on this topic within the current web pages and adjust the look and feel of the checkout pages to match the site layout (registration, login, checkout etc.).
I will consider involving you in settings this up.

Accessing Google Shopping Fields via BigCommerce API

I am creating a custom integration with a third party part supplier to create products in their inventory in BigCommerce. I Need the ability to turn on google shopping for the products imported and add the MPN and category, but i don't see how to modify this in the API. If anyone has any feedback please let me know!
So, after contacting BigCommerce about this issue. The API does not have access to the Google shopping fields. Bummer. However as a workaround you can generate an import file with just product ids and the required fields listed in this nice tutorial. Follow the remaining steps in the guide to find the fields for the google shopping tab (they all start with GPS) and then add your values to a csv.
My script will actually generate the csv when a new product is added via the api, and send it to the client for upload. Which isn't too much of a hassle when inventory items do not change frequently.

Hosting Google Plus Communities on My Website

Is it possible to embed a google community into a website page?
This way our clients can benefit from content and all other features in our website, yet be able to collaborate using Google Communities.
Ideally I would like to grab a Javascript code just like +1 button and paste it into my website page, add an iframe or something of this nature!
UPDATE:
Sounds like if I try to be convincing, I may be able to influence some decisions!
More details: Our website services offers login with Google using Google OAuth, This way the user is either logged in or is forced to login with Google to get access to private areas of our customer portal, where you can review the status of Support Tickets, submit new support tickets, have access to knowledge base, documents, blogs, etc.
We have incorporated all sort of social plugins into the blogs, product catalogs and so forth.
It would be fantastic is the users can have access to a community (Forum or Discussion Board) within the same place. Google Community seem to be the tool but in the wrong place.
No such widget exists at this time, but it's an interesting idea. If you want to share more details on precisely what you're looking for, you can file the issue here: https://code.google.com/p/google-plus-platform/. The more details you can provide, the more likely that, if we decide to implement this feature, we'll end up with something that you want.