Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1188917
    asiitan
    Participant

    Hi there!
    For some reason I am not able to install google analytics on my website
    http://www.theatrum.ee Could anyone help?
    Andres

    #1188925
    Christopher
    Moderator

    Hi there,

    Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.

    Please add following code in child theme’s functions.php file :

    function third_party_tracking_code() { ?>
    
      <script>
        // add google analytics code below this line.
      </script>
    
    <?php }
    
    add_action( 'wp_head', 'third_party_tracking_code' );

    Hope it helps.

    #1191361
    asiitan
    Participant

    Hi!
    Just to be on the safe side. I have made really many changes to the design and there are hundreds of css-lines in the customization area. If I now install the child theme (my current X version is 4.4.2) will I have all the changes kept or do I need to copy the custom css and paste it into the child theme?
    What are the dangers to lose my settings?

    Grateful for your help.

    Andres

    #1191451
    Jade
    Moderator

    Hi Andres,

    Have you tried installing the Google Analytics extension in the Addons page? If so, what issue do you have whenever you are trying to install it. We could have a look but would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password
    – FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    #1191487
    asiitan
    Participant
    This reply has been marked as private.
    #1191796
    Friech
    Moderator

    Hi Andres,

    Would you mind lettings us know what error message is it?

    You can always play safe when switching themes. You can save your Customizer settings on Addons > Customizer Manager > Export. Also take a screenshot of your sidebar under Appearance > Widgets in case WP reset it. Also take note of your primary menu under Appearance > Menus.

    Hope it helps, Cheers!

    #1191832
    asiitan
    Participant

    Hi Friech

    When I am trying to install the extension, it says “Errors encountered” and when I click on details, it says “No package provided”.
    I double-checked and everything must be fine with the license.

    Best wishes,
    Andres

    #1191847
    Christopher
    Moderator

    Hi there,

    Please try following these steps:

    1] Please go to X Addons > Home and revoke the validation.
    2] Please login to your account and revoke the license. https://community.theme.co/my-account/
    3] After you have revoke the license, you need to re assign the license again to your site using this url: https://www.your-domain.com/. You have to make sure that url you just assign is the same as the one you have in your settings, Settings > General > Site Address
    4] Go back to X Addons > Home again, and insert the license again.

    Hope it helps.

  • <script> jQuery(function($){ $("#no-reply-1188917 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>