Search Forums
Forums
Kiwitrees on Twitter
    Tags

    editor, save settings, FAQ, language, logout, emigration, ID facts, Histo, BURI, ID notes, white screen, fixing errors, married, margin, blocks, relationships, prison, datatables, contacts, cookie, links, add, mobile, index, session, edit menu, googlemap. modified, contact links, roadmap, design, defacto, flags, custom text, 2.0.2, charts, road map, cousins, resources, dead, pop-ups, Add a wife, Default record, inactive, 3.2.0, message contactform, husband, media, reports, 3.2.2, css, 3.3.0, follow, address, not married, chart, privacy, shared notes, wish, login failure, help

    Topic:   Google Analytics  

    This topic contains 1 reply, has 2 voices, and was last updated by kiwi kiwi 3 weeks ago.

    Viewing 2 posts - 1 through 2 (of 2 total)
    • Author
      Posts
    • #9218

      ole
      Participant

      7 posts

      It looks like that google has change the code in “google analytics” so it doesn’t work in Kiwitrees anymore.
      The new code looks like this : <!– Global Site Tag (gtag.js) – Google Analytics –>
      <script async src=”https://www.googletagmanager.com/gtag/js?id=UA-xxxxxx-x”></script>
      <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments)};
      gtag(‘js’, new Date());

      gtag(‘config’, ‘UA-xxxxxx-x’);
      </script>

      i have tried to remove <script> but that doesn’t solve the problem, any one have a idea
      Best regards
      Ole H Madsen

      #9219
      kiwi
      kiwi
      Keymaster

      1533 posts

      Ole
      You are correct. That code cannot be used in the Kiwitrees “custom javascript” tool.

      But it is for the new Google “Tag manage” tool. Are you sure you need that? Their website says:

      Our free tool Google Tag Manager can help you add tags to your site if you have many analytics and tracking tags. Consider using Google Tag Manager if:

      • You use multiple analytics and ad performance tracking tools that require site tags.
      • Adding tags to your website slows down your ability to run marketing campaigns.

      I would not think either of those apply to many kiwitrees sites. Your existing GA code should still work OK. MIne does.

      If you do want to use Tag Manager, you will need to study the implementation instructions for that at the Google Analytics page, and manually apply the full code to a custom header.php file (described here: https://kiwitrees.net/faqs/customisation/customising-themes/).

      Nigel
      My personal kiwitrees site is www.our-families.info
    Viewing 2 posts - 1 through 2 (of 2 total)

    You must be logged in to reply to this topic.