Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
Author « Topic »  

merritt
Ecommerce Template Expert

815 Posts

Pre-sales questions only
(More Details...)

Posted - 02/05/2024 :  12:03:32  
I added to Settings Global Tag they gave me:

<script async src="https://www.googletagmanager.com/gtag/js?id=AW-1015289443"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'AW-1015289443');
</script>

Edited by - merritt on 02/05/2024 12:04:22

1818charlie
ECT Moderator

United Kingdom
1194 Posts

Posted - 02/05/2024 :  15:34:17  
Hi
As highlighted in blue below, from the PHP parameters page https://www.ecommercetemplates.com/phphelp/ecommplus/parameters.asp, and as Dave as already mentioned in this thread - https://www.ecommercetemplates.com/support/topic.asp?TOPIC_ID=115716 the code is only required in the Admin. That applies only if you are using the incectstyle.php file in your site.

I have highlighted a typo in red that should read incectstyle.php, not incectstyle.asp.

Add Google Analytics ecommerce code
In version 7.4.5 we have updated to Google Analytics 4 and you enter the tracking ID (of the form G-AAAAAAAAAA) in the admin main settings page. Then if you have the incectstyle.asp file included in your site you don't need to do anything else as the tracking code is included automatically. Otherwise, place the following code in the head section of your template so it is included on all pages (replacing the two occurrences of G-AAAAAAAAAA)...

<script async src="https://www.googletagmanager.com/gtag/js?id=G-AAAAAAAAAA"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-AAAAAAAAAA');
</script>


Will

Edited by - 1818charlie on 02/05/2024 15:37:33
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000