AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

Analytics
4K members online now
4K members online now
Learn how to set up goals and Ecommerce tracking, verify accuracy of attribution traffic sources, and discuss funnel visualization, Multi-Channel Funnels, the Goal Flow Report, and Enhanced Ecommerce
 
Guide Me
star_border
Reply

Google Analytics Ecommerce Issues

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi there, 

 

I've never set up Google Analytics Ecommerce before. I think I plugged all the code into Clickfunnels appropriately. Though it's not in the header because that was killing my page load time. Instead I have Improvely in the headed. Global GTM and GA code. 

 

I can't figure out why nothing is showing up under Ecommerce. It's been two days and yet I'm not showing any data. 

 

Any suggestions would be awesome!

 

Here's the code from my clickfunnels page... it's the first upsell after the order form. It should be tracking a $9.95 conversion. 

 

This is what I have in the footer:

 

<script>
window.dataLayer = window.dataLayer || []
dataLayer.push({
'transactionId': 'orderid',
'transactionAffiliation': 'Straw',
'transactionTotal': 9.95,
'transactionTax': 0,
'transactionShipping': 0,
'transactionProducts': [{
'sku': 'strawbuyer',
'name': 'fixt',
'category': 'none',
'price': 9.95,
'quantity': 1
},{
'sku': 'AA1243544',
'name': 'none',
'category': 'none',
'price': 0,
'quantity': 0
event : 'transactioncomplete'
ga('ecommerce:send');
}]
});
</script>

 

 

And this is what is in the head of my global tracking for the clickfunnels funnel:

 

<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-W3N7ST');</script>
<!-- End Google Tag Manager -->

 

And this is what's in the global body: 

 

<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','https://www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-XXXXXX', 'auto');
ga('send', 'pageview');

</script>

 

 

UA omitted obviously for privacy. 

 

Thanks so much in advance for your help!

 

Peter.

1 Expert replyverified_user

Google Analytics Ecommerce Issues

Rising Star
# 2
Rising Star

Peter,

 

Is your dataLayer populating with the string orderid or is it acutually passing the order id?  Also why are you using GA in page and GTM?  You should be deploying the GA Ecommerce and all GA coding via GTM.  I imagine you are also using transcationComplete as your firing trigger?

 

Best,

 

Theo Bennett

Analytics Evangelist at MoreVisibility | Contact Me
Connect on LinkedIn

Re: Google Analytics Ecommerce Issues

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭
Hi there,

I have the GA code on there because i'm just now trying to sort out using
GTM. I'm not sure if it's populating.

Yes I have a transaction complete trigger set in GTM.

A friend recommended listing "orderid" instead of having randomly assigned
order numbers for future search purposes.

Not sure what I have to do to get it to fire...

The Ecommerce section in GA isn't reporting anything.

Any suggestions would be amazing!

Thanks in advance,

Peter.

Google Analytics Ecommerce Issues

Rising Star
# 4
Rising Star

Hey Peter, 

 

Yo don't need the redundant GA code on the page if you have it deployed through GTM,  hypothetically this should not prevent your transaction from firing but will inflate some of your metrics and give unexpected results.   

 

You have to use a unique order id for each transaction; otherwise, every order will roll up into the one transaction of "orderid".  If you are trying to use something that already exists, e.g. a  JS variable then you should drop the single quotes.  If you don't have something in place to generate a unique order id , you'll need that.   

 

Next fire the GA Ecommerce via GTM and use the dataLayer for ecom variables and make sure you have them exactly as specified in the help docs.   Use the dataSlayer plug in for Chrome (search the chrome store) to more easily see whats in your dataLayer and what hits are being sent to GTM.    Also, make sure you've turned on ecommerce in Admin>>View.  Smiley Happy

 

 

Good Luck!

 

Best, 

 

Theo Bennett

 

Analytics Evangelist at MoreVisibility | Contact Me
Connect on LinkedIn