New Landing How can we help? Atelier Google Tag Manager Installation

Viewing 15 posts - 1 through 15 (of 21 total)
  • Posted in: Atelier
  • #328098
    OrganifiedBeautyBox
    Member
    Post count: 58

    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.

    #328101
    David Martin – Support
    Moderator
    Post count: 20834

    Please 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' );
    #328104
    OrganifiedBeautyBox
    Member
    Post count: 58

    Thanks 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.
    #328108
    David Martin – Support
    Moderator
    Post count: 20834

    We supply the child theme, you can get the zip file from the main zip file in your ThemeForest account downloads section.

    Thanks.

    #328119
    OrganifiedBeautyBox
    Member
    Post count: 58

    Ok 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.

    #328121
    David Martin – Support
    Moderator
    Post count: 20834

    1) 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.

    #328334
    OrganifiedBeautyBox
    Member
    Post count: 58
    This reply has been marked as private.
    #328337
    David Martin – Support
    Moderator
    Post count: 20834

    Paste it before this line:

    /* LOAD THEME LANGUAGE

    #328352
    OrganifiedBeautyBox
    Member
    Post count: 58

    So confirming is that both Header and Body code before the /* LOAD THEME LANGUAGE ?

    Thanks.

    #328363
    David Martin – Support
    Moderator
    Post count: 20834

    Yes, both codes snippets.

    #328391
    OrganifiedBeautyBox
    Member
    Post count: 58

    Awesome, thanks for your help, its working.

    Cheers.

    #328398
    David Martin – Support
    Moderator
    Post count: 20834

    Glad 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,
    David

    #328412
    OrganifiedBeautyBox
    Member
    Post count: 58

    Yep, it’s done.

    Hope this helps.

    Cheers.

    #328416
    David Martin – Support
    Moderator
    Post count: 20834

    Thanks! Appreciated 🙂

    #328424
    OrganifiedBeautyBox
    Member
    Post count: 58

    Sorry, 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.

Viewing 15 posts - 1 through 15 (of 21 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register