AdWords
2.5K members online now
2.5K members online now
Get started with AdWords - learn the basics to get set up for success
Guide Me
star_border
Reply

ecomm tracking with an old ecomm website

Follower ✭ ✭ ☆
# 1
Follower ✭ ✭ ☆

i have a prospective client that has a proprietary ecomm webiste. he wants to enable ecomm tracking for GA/adwaords but we cannot enable this through a turnkey platform like Magento (an easy off/on function). Looks like we'll need to place code within the site. I am looking for the step by step process in making this happen. thanks

1 Expert replyverified_user
2 ACCEPTED SOLUTIONS

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author Jeff M
September 2015

Re: Look enabling ecommerce tracking is a difficult thing to...

Top Contributor
# 6
Top Contributor
Hello, Jeff.

E-commerce tracking & conversion tracking is no big deal. Here's what you need for Analytics:

https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingEcommerce#Example

The values in the example need to be pulled from the website database and inserted in the code, in the thank you / order confirmation page. Just make sure that the page does not trigger the code when refreshed or when accessed directly, but rather only once after the order is confirmed.

Once you have reported the conversion to Analytics, you can import these conversions in AdWords if your AdWords and Analytics accounts are linked.

If you prefer to use an AdWords specific conversion code, here's how to do it: https://support.google.com/adwords/answer/1722054?hl=en

The AdWords code should be placed on the same page as the Analytics conversion code.

Finally, here's how to import conversions from Analytics into AdWords: https://support.google.com/analytics/answer/1034306?hl=en

Hope it helps. It sounds scarier than it is. If the developers know what they're doing, they should be able to implement them rather quickly.
Calin Sandici, AdWords Top Contributor | Find me on: Google+ | Twitter | LinkedIn | myBlog
Was my response helpful? If yes, please mark it as the ‘Best Answer.’ Learn how here.

View solution in original post

Marked as Best Answer.
Solution
Accepted by topic author Jeff M
September 2015

Re: Look enabling ecommerce tracking is a difficult thing to...

Top Contributor
# 8
Top Contributor
Usually, for every e-commerce website, you have an order ID which is unique for each order. An order = a transaction. You just have to generate them and make sure they're unique.

Each transaction is comprised of several item / quantity pairs.

The first part of the code captures the transaction as a whole, including shipping costs and delivery data (city, country, etc.) while the second captures the items that are part of that transaction.

I'm pretty sure that if you point the e-commerce app developer to that page she'll be able to make sense of it pretty quickly.
Calin Sandici, AdWords Top Contributor | Find me on: Google+ | Twitter | LinkedIn | myBlog
Was my response helpful? If yes, please mark it as the ‘Best Answer.’ Learn how here.

View solution in original post

Re: ecomm tracking with an old ecomm website

Collaborator ✭ ☆ ☆
# 2
Collaborator ✭ ☆ ☆
I think the following URLs are gonna be so helpful to you:

About Ecommerce:
https://support.google.com/analytics/answer/1037249?hl=en&ref_topic=1037061

Setup Ecommerce tracking
https://support.google.com/analytics/answer/1009612?hl=en

Google Anayltics Forum ( if unfortunately you encounter a problem) :
https://productforums.google.com/forum/#!forum/analytics

Look enabling ecommerce tracking is a difficult thing to...

[ Edited ]
Participant ✭ ☆ ☆
# 3
Participant ✭ ☆ ☆

Look enabling ecommerce tracking is a difficult thing to explain and its beyond the scope of Google Adwords community. You may have to reach analytics community...

Its better to hire a professional to implement this for a smooth sailing.
Disclaimer: I am not promoting just suggesting

Re: ecomm tracking with an old ecomm website

Collaborator ✭ ☆ ☆
# 4
Collaborator ✭ ☆ ☆

I think the following URLs are gonna be so helpful to you:


About Ecommerce:
https://support.google.com/analytics/answer/1037249?hl=en&ref_topic=1037061


Setup Ecommerce tracking
https://support.google.com/analytics/answer/1009612?hl=en


Google Anayltics Forum ( if unfortunately you encounter a problem) :
https://productforums.google.com/forum/#!forum/analytics

Re: Look enabling ecommerce tracking is a difficult thing to...

Collaborator ✭ ☆ ☆
# 5
Collaborator ✭ ☆ ☆
I think the following URLs are gonna be so helpful to you:

About Ecommerce:
https://support.google.com/analytics/answer/1037249?hl=en&ref_topic=1037061

Setup Ecommerce tracking
https://support.google.com/analytics/answer/1009612?hl=en

Google Anayltics Forum ( if unfortunately you encounter a problem) :
https://productforums.google.com/forum/#!forum/analytics
Marked as Best Answer.
Solution
Accepted by topic author Jeff M
September 2015

Re: Look enabling ecommerce tracking is a difficult thing to...

Top Contributor
# 6
Top Contributor
Hello, Jeff.

E-commerce tracking & conversion tracking is no big deal. Here's what you need for Analytics:

https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingEcommerce#Example

The values in the example need to be pulled from the website database and inserted in the code, in the thank you / order confirmation page. Just make sure that the page does not trigger the code when refreshed or when accessed directly, but rather only once after the order is confirmed.

Once you have reported the conversion to Analytics, you can import these conversions in AdWords if your AdWords and Analytics accounts are linked.

If you prefer to use an AdWords specific conversion code, here's how to do it: https://support.google.com/adwords/answer/1722054?hl=en

The AdWords code should be placed on the same page as the Analytics conversion code.

Finally, here's how to import conversions from Analytics into AdWords: https://support.google.com/analytics/answer/1034306?hl=en

Hope it helps. It sounds scarier than it is. If the developers know what they're doing, they should be able to implement them rather quickly.
Calin Sandici, AdWords Top Contributor | Find me on: Google+ | Twitter | LinkedIn | myBlog
Was my response helpful? If yes, please mark it as the ‘Best Answer.’ Learn how here.

Re: Look enabling ecommerce tracking is a difficult thing to...

Follower ✭ ✭ ☆
# 7
Follower ✭ ✭ ☆
Wow- thanks for the great answer. Makes sense (i think).

1 last question... in the code itself (from the example you sent) is this dynamic value tracking - meaning will it track the many variables of the products (i.e. running shoes for $55.59 and also nike shirt 1234 for $23.99 and so on?).

For example, in the example code on that page it lists "'1234', // transaction ID - required" - what do we 'replace' in that example (i'm sure the 'green' and 'red' text mean something but not sure what)

I do have a development team to help me out but I'm just trying to understand myself

thanks!
Marked as Best Answer.
Solution
Accepted by topic author Jeff M
September 2015

Re: Look enabling ecommerce tracking is a difficult thing to...

Top Contributor
# 8
Top Contributor
Usually, for every e-commerce website, you have an order ID which is unique for each order. An order = a transaction. You just have to generate them and make sure they're unique.

Each transaction is comprised of several item / quantity pairs.

The first part of the code captures the transaction as a whole, including shipping costs and delivery data (city, country, etc.) while the second captures the items that are part of that transaction.

I'm pretty sure that if you point the e-commerce app developer to that page she'll be able to make sense of it pretty quickly.
Calin Sandici, AdWords Top Contributor | Find me on: Google+ | Twitter | LinkedIn | myBlog
Was my response helpful? If yes, please mark it as the ‘Best Answer.’ Learn how here.

Re: Look enabling ecommerce tracking is a difficult thing to...

Follower ✭ ✭ ☆
# 9
Follower ✭ ✭ ☆
Sorry - i know this should be under the GA forums but i havent had much luck in getting feedback so wondering if you could confirm.

i am setting up ecomm tracking for a client using universal tracking.

i wrote the following code but not sure it's correct (from a 'formatting' perspective).

The client sells 10,000+ products so i need a variable to account for all orders with multiple products ordered.

wondering if anyone can give me some feedback. thanks!

<script>
(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-xxxxxxxxx-1', 'clientwebsite.com');
ga('send', 'pageview');

ga('require', 'ecommerce', 'ecommerce.js');

ga('ecommerce:addTransaction', {
'id': '{$trans['id']}',
'affiliation': '{$trans['affiliation']}',
'revenue': '{$trans['revenue']}',
'shipping': '{$trans['shipping']}',
'tax': '{$trans['tax']}'

ga('ecommerce:addItem', {
'id': '$transId',
'name': '{$item['name']}',
'sku': '{$item['sku']}',
'category': '{$item['category']}',
'price': '{$item['price']}',
'quantity': '{$item['quantity']}
ga('myTracker.ecommerce:send');

</script>