- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Hi, there!
I've entered our Google Analytics ID/code snippet in the Settings - SEO - Header Code field in Weebly, and general analytics seem to be working fine.
However, I've been struggling to get a Goal that I've set up in Google Analytics to track sales conversions on our Weebly website to work. I thought that it would be possible to track sales conversions and purchase-completed data using these target urls:
https://www.websitename.com/store/checkout/#cart
https://www.websitename.com/store/checkout/#payment
https://www.websitename.com/store/checkout/#confirmation
But this is not working. Using Google's Tag Manager, it's clear that our Google ID/tag is not firing on all these pages. Talking with Google, they have speculated that it might be the # in the urls that is causing problems. All kinds of tweaks in the Goal setup in Google Analytics, urls begins with, equals et cetera, have not made any difference.
Now my question is simply whether it's at all possible to track sales conversions on a Weebly website like described above or whether you have to set up tracking under Store - Setup - Tracking for this?
Weebly has unfortunately not been very productive in its answers to my inquiries regarding this.
If it's in fact necessary to complete the section Store - Setup - Tracking, which requires ecommerce to be enabled in Google Analytics and some coding skills to get the necessary code for the three fields in this setup, to track sales conversions, Weebly could have saved us tons of time by making this clearer in its support material.
Help appreciated!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
OK, STRIKE EVERYTHING ABOVE IN THIS STRING.
Here is the solution and answers to my challenges, in case it might help somebody else also struggling unnecessarily:
Premise: You want to track sales conversions.
1. Setting up a Goal in Google Analytics (GA) to track sales conversions on your Weebly website will NOT work, simply because of the way Weebly is set up
2. The way to track sales conversions with GA on a Weebly website is by using the Ecommerce function/section in GA, which will give you the sales conversion data plus much more details than what you would have seen had the Goal setup worked with Weebly
This is fantastic stuff. Normally setting up ecommerce tracking on a website requires a bit more work and advanced skills, but with Weebly it's extremely simple:
a) Activate Ecommerce tracking in your GAs setup
b) Simply enter your GA Tracking ID in Store - Setup - Tracking (in the top field already showing the two first characters of a Tracking ID, which is UA-..)
This guide from Weebly shows you what to do:
https://hc.weebly.com/hc/en-us/articles/201879947
Note that it might take up to 48 hours for data to start showing in the GA Ecommerce section, so be patient..
The above is pretty much all you need to know, but if you have been confused for the same reasons as I, the below might help clarify things.
CONFUSION
The above linked guide from Weebly unfortunately confused me.
One thing is that I simply did not register the distinction between setting up a Goal in GA to track sales conversions and using Ecommerce, as I thought Ecommerce would require coding skills, which it certainly does not with Weebly.
The guide seemed to confirm the need for coding, as below the last illustration, it says "Once the code is in place..", and I thought this referred to entering custom code in the three bottom fields in Store - Setup - Tracking (with the headers CUSTOM TRACKING..").
You can in fact IGNORE these three fields. As setting up ecommerce tracking is usually more complex, I thought that these fields had to be completed, but this is not the case. The "Once the code is in place.." sentence in the guide should have read "Once your GA tracking ID is in place.."
In other words, all you have to do is enter your GA Tracking ID in the top field and forget about the three other fields. This will give you access to advanced ecommerce data from your website in the section Ecommerce in GA (provided that you have followed the above guide and activated Ecommerce in GA, which is really just to slide a button to on).
The three CUSTOM TRACKING fields I'm asking you to ignore, is from what I understand for rare cases and for very advanced users who would like to set up custom code to track ecommerce data with their own system instead of using GA, for instance.
What of course really thru me off was trying desperately to get the Goal for tracking sales conversions that I had set up in GA to work. This will simply never work, no matter what tweaks you try in the Goal setup.
The answer is as stated to use the dead simple to set up Ecommerce to get this information plus detailed information about your sales.
Another thing that really added to the confusion was that I was trying to use Google Tag Manager to check whether our GA Tracking ID and code was working properly on our site.
Lesson learned: Forget abut checking your Weebly website with Google Tag Manager. The Google Tag Manager will always report multiple Google IDs on your site, because Weebly has its own ID on your page as well, without this actually causing any problems with GA, but the Tag Manager will nonetheless suggest that you remove what it registers as superfluous or potentially conflicting tags.
Here’s the thank you email that I sent this morning to the genius that cleared everything up for me –it further illuminates why you should never use Google Tag Manager with your Weebly website:
“
… Today my test purchase of yesterday appeared under the Ecommerce section in Google Analytics with all the purchase details. Just beautiful stuff and such a huge relief. I was completely focused on Goals in GA, and nobody from Weebly was able to say what you said yesterday: Using a Goal to track sales conversions on Weebly will not work, but you have an extremely simple setup for Ecommerce, which will allow you to track sales conversions with much more detail. You probably entered our Google tracking code under Store - Setup - Tracking yesterday, which is why my purchase showed up in GA today. I might not have checked the Ecommerce section in GA when I was testing, since I was so set on using the Goal for tracking sales conversions, but even if I had, the data would not have been there. The reason: I was using Google Tag Manager to check whether things were working properly on the website, and when checking the store check-out page, the Tag Manager would complain about detecting multiple tags, which could cause issues, and I would subsequently remove our tracking code entered in Store - Setup - Tracking, thinking that the tracking ID/code entered in Settings - SEO - Header Code would be sufficient (this then produced a green smiling face in the Tag Manager). Wisdom learned: forget about using Google Tag Manager with Weebly..
“
When I now see how insanely simple this all is with Weebly, I’m unsure whether to laugh or cry having spent tons of time over the last three weeks to get this to work.
Life’s too short, so the laugh’s on me!
PS I
Using the Google Tag Manager (foolishly), I got confused in terms of our website having multiple GA tracking codes/ids. This then lead me to wonder whether it’s OK to have your GA tracking code/ID both in the Settings – SEO – Header Code field and the Store – Setup – Tracking field. Answer is YES. The former is for general GA to work and the latter for Ecommerce reporting to work. Simple as that
PS II
If you are not really comfortable with Google Analytics, I highly recommend their free online course Google Analytics for Beginners, found on the Google Analytics Academy homepage:
https://analytics.google.com/analytics/academy/
Time extremely well invested!
- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Hey @HansChr! Have you seen the article in our Help Center on setting this up?
https://hc.weebly.com/hc/en-us/articles/201879947-eCommerce-Tracking-with-Google-Analytics-
It doesn't explicitly cover goals, though it might be helpful in a more general sense.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Hi @Adam-thx for your reply!
I have in fact seen that article, which I think ends a bit too abruptly. It would be advisable for the sake of clarity to add a line towards the end of the article stressing that the three CUSOM TRACKING fields in the Store - Setup - Tracking section must be completed with the necessary Google Analytics code, which will require you to be "comfortable editing HTML and coding in JavaScript, or have help from an experienced web developer" and then refer to this page:
https://support.google.com/analytics/answer/1009612
Could you please confirm that I'm right in my assertion that tracking sales conversions will not work by just having added your Google ID/tag under the Settings - SEO - Header Code, and that you will have to complete the Store - Setup - Tracking section for such tracking to actually work with Google Analytics?
Much obliged.
Hans Christian
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
I'm not an expert, but I'm pretty sure you're correct in that you'll need to complete those three fields to properly track conversions across each three steps of the checkout process.
- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Many thanks @Adam!
- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Glad to help!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
OK, STRIKE EVERYTHING ABOVE IN THIS STRING.
Here is the solution and answers to my challenges, in case it might help somebody else also struggling unnecessarily:
Premise: You want to track sales conversions.
1. Setting up a Goal in Google Analytics (GA) to track sales conversions on your Weebly website will NOT work, simply because of the way Weebly is set up
2. The way to track sales conversions with GA on a Weebly website is by using the Ecommerce function/section in GA, which will give you the sales conversion data plus much more details than what you would have seen had the Goal setup worked with Weebly
This is fantastic stuff. Normally setting up ecommerce tracking on a website requires a bit more work and advanced skills, but with Weebly it's extremely simple:
a) Activate Ecommerce tracking in your GAs setup
b) Simply enter your GA Tracking ID in Store - Setup - Tracking (in the top field already showing the two first characters of a Tracking ID, which is UA-..)
This guide from Weebly shows you what to do:
https://hc.weebly.com/hc/en-us/articles/201879947
Note that it might take up to 48 hours for data to start showing in the GA Ecommerce section, so be patient..
The above is pretty much all you need to know, but if you have been confused for the same reasons as I, the below might help clarify things.
CONFUSION
The above linked guide from Weebly unfortunately confused me.
One thing is that I simply did not register the distinction between setting up a Goal in GA to track sales conversions and using Ecommerce, as I thought Ecommerce would require coding skills, which it certainly does not with Weebly.
The guide seemed to confirm the need for coding, as below the last illustration, it says "Once the code is in place..", and I thought this referred to entering custom code in the three bottom fields in Store - Setup - Tracking (with the headers CUSTOM TRACKING..").
You can in fact IGNORE these three fields. As setting up ecommerce tracking is usually more complex, I thought that these fields had to be completed, but this is not the case. The "Once the code is in place.." sentence in the guide should have read "Once your GA tracking ID is in place.."
In other words, all you have to do is enter your GA Tracking ID in the top field and forget about the three other fields. This will give you access to advanced ecommerce data from your website in the section Ecommerce in GA (provided that you have followed the above guide and activated Ecommerce in GA, which is really just to slide a button to on).
The three CUSTOM TRACKING fields I'm asking you to ignore, is from what I understand for rare cases and for very advanced users who would like to set up custom code to track ecommerce data with their own system instead of using GA, for instance.
What of course really thru me off was trying desperately to get the Goal for tracking sales conversions that I had set up in GA to work. This will simply never work, no matter what tweaks you try in the Goal setup.
The answer is as stated to use the dead simple to set up Ecommerce to get this information plus detailed information about your sales.
Another thing that really added to the confusion was that I was trying to use Google Tag Manager to check whether our GA Tracking ID and code was working properly on our site.
Lesson learned: Forget abut checking your Weebly website with Google Tag Manager. The Google Tag Manager will always report multiple Google IDs on your site, because Weebly has its own ID on your page as well, without this actually causing any problems with GA, but the Tag Manager will nonetheless suggest that you remove what it registers as superfluous or potentially conflicting tags.
Here’s the thank you email that I sent this morning to the genius that cleared everything up for me –it further illuminates why you should never use Google Tag Manager with your Weebly website:
“
… Today my test purchase of yesterday appeared under the Ecommerce section in Google Analytics with all the purchase details. Just beautiful stuff and such a huge relief. I was completely focused on Goals in GA, and nobody from Weebly was able to say what you said yesterday: Using a Goal to track sales conversions on Weebly will not work, but you have an extremely simple setup for Ecommerce, which will allow you to track sales conversions with much more detail. You probably entered our Google tracking code under Store - Setup - Tracking yesterday, which is why my purchase showed up in GA today. I might not have checked the Ecommerce section in GA when I was testing, since I was so set on using the Goal for tracking sales conversions, but even if I had, the data would not have been there. The reason: I was using Google Tag Manager to check whether things were working properly on the website, and when checking the store check-out page, the Tag Manager would complain about detecting multiple tags, which could cause issues, and I would subsequently remove our tracking code entered in Store - Setup - Tracking, thinking that the tracking ID/code entered in Settings - SEO - Header Code would be sufficient (this then produced a green smiling face in the Tag Manager). Wisdom learned: forget about using Google Tag Manager with Weebly..
“
When I now see how insanely simple this all is with Weebly, I’m unsure whether to laugh or cry having spent tons of time over the last three weeks to get this to work.
Life’s too short, so the laugh’s on me!
PS I
Using the Google Tag Manager (foolishly), I got confused in terms of our website having multiple GA tracking codes/ids. This then lead me to wonder whether it’s OK to have your GA tracking code/ID both in the Settings – SEO – Header Code field and the Store – Setup – Tracking field. Answer is YES. The former is for general GA to work and the latter for Ecommerce reporting to work. Simple as that
PS II
If you are not really comfortable with Google Analytics, I highly recommend their free online course Google Analytics for Beginners, found on the Google Analytics Academy homepage:
https://analytics.google.com/analytics/academy/
Time extremely well invested!
- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Hey there! Thank you for taking the time to write things out, so that other users can learn from the wisdom you earned!
- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Is this still outdated? I've dropped in my GA code in a week ago and confirmed that it's working, and I've also turned ecommerce on. I know I've gotten sales, but I'm not seeing any ecommerce data coming through. I work at Google, as a Google Analytics analyst, so I'm not exactly new at this. But am I missing something?
I made an edit today to the "Custom Tracking: Receipt Page" that I'm hoping will work, but am open to other ideas:
ga('require', 'ecommerce');
ga('ecommerce:addTransaction', {
'id': {txid}, // Transaction ID. Required.
'revenue': {total}, // Grand Total.
'shipping': {shipping}, // Shipping.
'tax': {tax} // Tax.
});
ga('ecommerce:send');
- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
This simple instructions above did not work for me in May of 2020.
Thank you for the code that might work in the Receipt page. I'll try that also.
Curious if it worked for you or what else you've learned.
- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
The solution mentioned two posts ago didn't work for me. Using the payments page as a test (the cart code never appears to be called), I created the following test:
<script>console.log('MEK Payment');ga('require', 'ecommerce');</script>
Note, any javascript must have script tags. I tested this with a single console log.
The above code yields the following error in the console. It appears that this code is somehow called before ga is defined.
MEK Payment Uncaught ReferenceError: ga is not defined at <anonymous>:1:28 at checkout-app.js?buildTime=1588286387:2 at r (checkout-app.js?buildTime=1588286387:18)
It's really frustrating because looking at the actualy weebly javascript, it looks like it's trying to do all the ecommerce tracking automatically, but something isn't configured properly.
And no one at Weebly is apparently using this or taking the time to write it down.
- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Solved this for me. The simple configuration does work. However, the instructions stink.
The trick is that on the Online Store -> Settings -> General page where it asks for Google Analytics Tracking ID, don't prepend the UA-. Only enter the portion that starts with a 9 digit code and dash number. See below. Very annoying that this is there is and no one at weebly knows.
- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
This did not work for me unfortunately; I am not sure why Weebly isn't tending to this. I spoke to a helpful gentlemen the other day at Weebly (long wait, but oh well). He told me to enter my GTM container into the Online Store-->Website-->Integrations. He then said go to the "Add custom header code" section. It worked, but I need to know how to track conversions (cart and checkout pages).
A couple of results here...
1. Putting the GA tracking ID (UA-XXXXXXX-1) in the Online Store-->Settings-->General section, I got no analytics pageviews/hits.
2. Doing the same process as #1, but taking away the "UA-" at the beginning of the ID. This still did not work. I hoped that it would somehow trigger. However, Weebly did not kick it out giving an "error entry". It seemed to accept it fine (Other than the fact it DIDNT work).
3. Putting the GA tracking ID in the Online Store-->Website-->Integrations and then pasting it into the Google Analytics drop down section. Result, it fired. HOWEVER, for whatever reason, the code fired multiple times for a single pageview. MEANING, the page loaded (example.com), the real-time results, 5 pageviews. The next reload. 12. The next 7. The next one 3. I have no clue how this is happening. If you know. Please add.
4. Combining step #1 and #3, same result. Combining step #2 and #3. Same thing.
5. If I instered the GA tracking snippet, into the Online Store-->Website-->Integrations-->Add header code, it fired once. Again, I needed to know how to track appropriately. Which Weebly says to use their pre-built GA code snippet editors in order to do so.
SO, I'm still lost I think. I can't figure out how to populate the Eccommerce section, nor can I figure out how to ensure appropriate tracking. Someone... Please. Help.
- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Update. For all of those needing to know. I had a meeting with a GA developer who used to work for Weebly. We went through the site to see what the problem was... I continually kept getting multiple page views. They have both analytics.js and Gtag.js installed in the backend of the site. Which causes multi page views. In fact the gtag was implemented 2 or three times he saw. Weebly needs to correct the backend site and/or give access to us for the source code.
- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Don't enter UA-123456789-1 into the Google Analytics Tracking ID. Only enter the number portion 123456789-1. If you enter UA- in front of it the tag ends up showing up on the web pages as UA-UA-123456789-1 and that won't track anything. Hopefully this will help someone figure this frustration out. The web page https://www.weebly.com/app/help/us/en/topics/ecommerce-tracking-with-google-analytics doesn't make this clear since the code listed on Google Analytics is displayed as UA-123456789-1 one assumes the entire code is necessary.
- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
I must share the simple fix which worked for me - and it's going to sound INSANE - but it worked. (The gentleman above is 100% correct - all that is needed is the GA Tracking ID in Weebly -those extra fields are unnecessary.) But also this:
TLDR: Remove the "UA" from your Google Analytics tracking ID and paste JUST the number in Weebly to see sales conversions/revenue!
Backstory:
I initially pasted our full GA tracking ID, including the "UA", into Weebly, and after doing so, Google Analytics was working fine! I could see traffic from our store, etc. However, the Ecommerce section wasn't working - I couldn't see the revenue amount even though I turned "Ecommerce" on in Google Analytics.
It made no sense!! I tried everything to fix this and spent hours on it to no avail. No matter what I did I couldn't get our revenue to show up in the Ecommerce section. I tried to setup goals - nothing worked.
For **bleep**S AND GIGGLES, I placed a test order and viewed the source of my Confirmation page. In the Confirmation page I noticed the tracking code was listed as follows:
var gaTrackingId = 'UA-UA-173199309-1';
When I saw this, I realized that probably should remove the UA that I had pasted into Weebly because here it is listed twice. I DID NOT IMAGINE THIS WOULD FIX THE ISSUE. So, I removed the UA and lo and behold within minutes all the transactions coming through now had conversions & revenue being tracked on the ECommerce page!!
UNBELIEVABLE.
I'm still amazed that this fixed the problem, and I totally stumbled up on this by accident, but I had to add my story here in case this helps someone else and saves you HOURS of labor and emotional pain.
ALSO: WEEBLY - for the love of God, please add more robust documentation about this issue to your HELP CENTER so people don't have to dig around desperately for the solution!!!