Digital experiences for all disciplines
New Landing › How can we help? › Atelier › Google Tag Manager Installation
New Landing › How can we help? › Atelier › Google Tag Manager Installation
- This topic has 20 replies, 2 voices, and was last updated 6 years by David Martin – Support.
-
Posted in: Atelier
-
June 12, 2017 at 11:56 am #328098
Hi,
I want to install Google Tag Manager code onto this theme.
The instruction says I need to placed it within the Header and Body because there are two codes, one is place in the Header and the other place in the body.
How can this be done?
Will future updates of the theme or framework will wipe out the installation?
Please help the most convenient way for Google Tag Manager installation please.
Please note, the plugins out there does not support two part code installation.
Thanks.
June 12, 2017 at 12:10 pm #328101Please install and activate the supplied child theme, inside the child theme
functions.php
file paste these two codes. These will allow you to replace<!-- Your code here -->
with your own custom code.Header Script:
// Add scripts to wp_head() function sf_child_theme_head_script() { ?> <!-- Your code here --> <?php } add_action( 'wp_head', 'sf_child_theme_head_script' );
Body Script:
// Add scripts to the HTML body function sf_child_theme_body_script() { ?> <!-- Your code here --> <?php } add_action( 'sf_before_page_container', 'sf_child_theme_body_script' );
June 12, 2017 at 12:20 pm #328104Thanks for the quick response.
Can you elaborate, install and activate child theme please? I’m not sure where I can get this.
The only theme I have is Atelier, no child theme. See attached screenshot.
Thanks.
Attachments:
You must be logged in to view attached files.June 12, 2017 at 12:28 pm #328108We supply the child theme, you can get the zip file from the main zip file in your ThemeForest account downloads section.
Thanks.
June 12, 2017 at 1:05 pm #328119Ok I have the Child Theme zip file now.
Few questions I am not sure about.
1) Once I install the Child Theme, how can I get the Main Theme (currently using) all the content to my Child Theme?
2) So any future updates to the Main Theme, how can I update my Child Theme? Or will I still need to update my Child Theme? Will this effect any new WordPress updates?
Thanks.
June 12, 2017 at 1:19 pm #3281211) You won’t need to, the child theme will change nothing – it’s used to override template/code function only – not content.
2) Auto-updates will still need to be run via your dashboard for the parent theme, the child theme will not require updating as it runs off the parent theme’s code base.
June 13, 2017 at 9:38 am #328334This reply has been marked as private.June 13, 2017 at 9:40 am #328337Paste it before this line:
/* LOAD THEME LANGUAGE
June 13, 2017 at 10:18 am #328352So confirming is that both Header and Body code before the /* LOAD THEME LANGUAGE ?
Thanks.
June 13, 2017 at 10:32 am #328363Yes, both codes snippets.
June 13, 2017 at 11:42 am #328391Awesome, thanks for your help, its working.
Cheers.
June 13, 2017 at 12:08 pm #328398Glad to help you out!
If you have found the theme/support useful, we appreciate it if you can leave feedback on our item if you have the time as it really helps us out.
Thanks,
DavidJune 13, 2017 at 12:33 pm #328412Yep, it’s done.
Hope this helps.
Cheers.
June 13, 2017 at 12:47 pm #328416Thanks! Appreciated 🙂
June 13, 2017 at 1:36 pm #328424Sorry, I’ve installed tag, and it is active, but it is not registering.
Do you know why this is so?
When I place Google Analytics Tag in the Tag Manager and publish it, my Google Analytics Tag isn’t showing in Tag Assistant at all.
I might have to install Google Analytics the old way til i have an answer.
Thanks.
-
Posted in: Atelier
You must be logged in and have valid license to reply to this topic.