Vince
Administrator
42815 Posts |
Posted - 10/04/2022 : 02:46:57
|
charmarsh
Ecommerce Template Expert
USA
950 Posts |
Posted - 10/04/2022 : 09:41:10
Per David: I believe you have a different javascript error - I see it in the console.
Uncaught ReferenceError: gtag is not defined
I added the code to the admin, and then none of the Add to Cart Buttons worked, plus the login and logout button was frozen too.
I dont know what you mean by "But if you don't use the incectstyle.php page". Do you mean the style sheet? Will that change the look of my current website design?
I did not add anything to the head sections of my store pages. www.manageyourweight.com
What is the simplest way to make this work?
|
charmarsh
Ecommerce Template Expert
USA
950 Posts |
Posted - 10/04/2022 : 10:49:02
I just discovered that the mobile version of my site is still having the same issues with the add to cart buttons not working and the login logout buttons not working!
|
Vince
Administrator
42815 Posts |
Posted - 10/06/2022 : 02:34:02
|
Vince
Administrator
42815 Posts |
Posted - 10/06/2022 : 03:01:21
|
charmarsh
Ecommerce Template Expert
USA
950 Posts |
Posted - 10/06/2022 : 09:02:20
The Android phones seem to function OK.
With some additional testing, the Apple phones seem to be operating ok now too.
Not sure what changed. But any behind the scenes help is greatly appreciated!
|
charmarsh
Ecommerce Template Expert
USA
950 Posts |
Posted - 10/06/2022 : 09:10:50
Whew! Anyway, I do want to set up the Google G4 tracking again but want to avoid the chaos. What do I have to do to get this set up properly?
|
Vince
Administrator
42815 Posts |
Posted - 10/07/2022 : 02:01:56
|
copcars
Starting Member
USA
31 Posts |
Posted - 11/22/2022 : 18:27:48
When I added my Google Analytics Global Site Tag to the Admin Main Settings section, my Add to Cart buttons also stopped working.
I decided to manually add the tag codes to each of my pages.
Just wanted you to be aware that this problem still exists.
I'm glad I found charmarsh's post.
Thanks
Eric Payne
|
Vince
Administrator
42815 Posts |
Posted - 11/22/2022 : 23:59:03
|
charmarsh
Ecommerce Template Expert
USA
950 Posts |
Posted - 11/23/2022 : 08:27:06
Eric,
Even for an "Ecommerce Templates Expert" like me, this was very complicated. After adding the code manually to the templates/pages, I still had to contact Google to complete the setup as it still wasn't working. Working now until Google changes things again.
|
copcars
Starting Member
USA
31 Posts |
Posted - 11/23/2022 : 08:43:36
Hi Vince...when the Global Site Tag is added to the Admin Main Setting, that means you're using the incectstyle.php file, right? When I added my Global Site Tag and hit submit, all of my add to cart buttons stopped working. When I removed the Global Site Tag from the Admin Main Setting, the add to cart buttons started working again. Do I need to do something manually regarding the incectstyle.php script?
charmarsh...thanks for the response. I am getting a large volume of calls from Google about them wanting me to switch to GA4. I finally made the switch last week and then all of these coding problems popped up. I'm waiting to hear back from them so they can evaluate things. Please post if you get things resolved on your site.
Thanks
Eric Payne
|
dbdave
ECT Moderator
USA
10444 Posts |
Posted - 11/23/2022 : 09:04:07
Hello, in Vince's reply, where he wrote quote: You will need to add the tag codes to each page unless you are using the incectstyle.php include file.
What this means is you must add that to your pages. So at the top of your pages, you have something like this include "vsadmin/db_conn_open.php"; include "vsadmin/inc/languagefile.php"; include "vsadmin/includes.php"; include "vsadmin/inc/incfunctions.php"; include "vsadmin/inc/metainfo.php"; You would want to add the incectstyle.php call to that list. But as Vince mentions, after the incfunctions.php script So you want something like this include "vsadmin/db_conn_open.php"; include "vsadmin/inc/languagefile.php"; include "vsadmin/includes.php"; include "vsadmin/inc/incfunctions.php"; include "vsadmin/inc/incectstyle.php";include "vsadmin/inc/metainfo.php"; That should do the trick. Thanks, David
|
copcars
Starting Member
USA
31 Posts |
Posted - 11/23/2022 : 09:12:55
Ahh, I understand now...thanks David!
Eric Payne
|
|