Open mrozmk opened 5 years ago
I don't agree with this one.
It's always a good idea to keep site-specific functionality (that's the code that will remain even if when the site is redesigned later on, even if the software used to create the site changes - different builder, different theme) seperate in a plugin. Even when building custom themes for clients, we never included any google analytics or pixel codes into the actual theme code itself. It's always seperate to give the client freedom to choose another theme or go with another developer easily in the future. Also because they may need to access the tag manager code themselves. (changed google accounts etc)
I think the same applies to Oxygen, you don't want the tag code hidden somewhere inside Oxygen. The 'Insert Headers and Footers' has no bad impact on the site, it isn't slowing down the site.
If you really want to just have less plugins, another option is to include the tags in a custom plugin along with any other site specific functionality. Then you still have less plugins installed.
@Spellhammer Maybe you can create the "after body tag" hook for us, so we can implement the second part of the GTM code over there in our own helper plugin?
Hello,
I am setting up Google Tag Manager script in a Header Row of the main template and am getting the following error with Google Tag Assistant plugin: tag must not be included in a
Also, there are a couple of other issues reported with Google Tag Assistant plugin:
GTM JavaScript code not found as a direct child of the
tag GTM no-script code not found: either missing or not inI have tried using Header Footer Plugin and i get an error with that too... "The theme directory /wp-content/themes/oxygen-is-not-a-theme is not writable. Set permissions on that folder to CHMOD 777 and re-activate the plugin."
Is there a better solution than the one shown in https://www.youtube.com/watch?v=VDkKsb5m6HE? Or is this as good as it gets?
I notice that Oxygen does not use the head... But instead everything is built in the body. Now, I am no programmer but is this not an issue for tracking on Oxygen sites??
How can I get tracking installed and working with Oxygen once and for all with oxygen?
Thanks,
Good resource here to solve this - https://wpdevdesign.com/how-to-add-google-tag-manager-code-in-oxygen/
Describe the feature you'd like to see included in Oxygen. A clear, detailed description of the feature you're requesting. A place in oxygen settings to add a block of code from Google Tag Manager or Google Tag Manager for Wordpress by Thomas Geiger.
What are the use cases for this feature? e.g. Accessibility, e-commerce store that sells bicycles, etc. We don't neet plugins like Insert Headers and Footers. One plugin less.
Examples of this feature or functionality. If another product has done it well, provide examples here. It colud be just simple like the Insert Headers and Footers plugin.