Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1191995

    sharp-image
    Participant

    Hi X team,

    On my website http://www.boukestar.nl I’m using for Google Analytics X addon. I can read the website visited information from users but get in Chrome I get the following error: No Google Analytics HTTP responses because opted out code detected.

    Any idea what goes wrong?

    Thanks
    Bouke

    #1191997

    sharp-image
    Participant
    This reply has been marked as private.
    #1191998

    Christian
    Moderator

    Hey there,

    Please try testing for a plugin and scripts conflict. You can do this by deactivating all third party plugins and removing all scripts and customizations, and seeing if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.

    Thanks.

    #1192012

    sharp-image
    Participant

    Hi Christian,

    Deactivate every plugin one by one. Unfortunate the Google Analytics error in Chrome keeps comming up.
    Haven’t used any other js scripts on my website.
    Can I place the Google Analytics code manually in the file header.php ?

    Thanks

    #1192021

    Christopher
    Moderator

    Hi there,

    Yes, you can.

    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 in child theme’s functions.php file :

    unction third_party_tracking_code() { ?>
    
      <script>
        // Third party tracking code.
      </script>
    
    <?php }
    
    add_action( 'wp_head', 'third_party_tracking_code' );

    Hope it helps.

    #1192083

    sharp-image
    Participant

    Thanks! No errors occurred anymore.

    Cheers

    #1192095

    Christopher
    Moderator

    You’re welcome.

    #1192099

    sharp-image
    Participant

    Little totally other question:
    How can I change the navbar hamburger icon into a other icon or restyle the (font based) icon.
    I dont want a border-radius on the navbar item. I also want to make them a little bit tinner.

    Thanks

    #1192121

    Christian
    Moderator

    If you have any additional questions at this time we kindly ask that you open them up in a separate thread. The longer threads get in the forum, they become more difficult to support as they tend to drift off topic and they also make it troublesome for users trying to search for solutions. Keeping threads relevant to their original inquiry ensures that we can keep better track of what has been resolved and that users can more effectively find answers to similar issues they might be experiencing.

    Thanks!

    #1192223

    sharp-image
    Participant

    Totally understand.

    thanks

    #1192256

    Christian
    Moderator

    You’re welcome.