Hi all,
Is there a better way to install a Google Analytics tag . Currently I have it in a javascript file in the directory includes/templates/responsive_classic/jscript
Any other suggestions would be good. Maybe in the header file ?
Thanks
Hi all,
Is there a better way to install a Google Analytics tag . Currently I have it in a javascript file in the directory includes/templates/responsive_classic/jscript
Any other suggestions would be good. Maybe in the header file ?
Thanks
The jscript file is a good way. That already puts the content into the 'head' section of the page html.
Why are you thinking that a "header" file is better?
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Sounds like your post means "I want to do this; how do I?"
Simple: create a new file at: /includes/templates/YOUR_TEMPLATE_DIRECTORY_HERE/jscript/jscript_google_analytics.js
and paste Google's snippet in that file.
https://docs.zen-cart.com/user/runni...ript_services/
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Bookmarks