PLATFORM
  • Tails

    Create websites with TailwindCSS

  • Blocks

    Design blocks for your website

  • Wave

    Start building the next great SAAS

  • Pines

    Alpine & Tailwind UI Library

  • Auth

    Plug'n Play Authentication for Laravel

  • Designer comingsoon

    Create website designs with AI

  • DevBlog comingsoon

    Blog platform for developers

  • Static

    Build a simple static website

  • SaaS Adventure

    21-day program to build a SAAS

Question By
Unsolved

Google Analytics Code

im-success

Nov 10th, 2018 11:36 PM

Can someone give me some inforemation on how or what needs to be done to fix the google analytics not showing up my script did not come with the settings for this in the admin area?

Thank you

Report
1
krishangtechnolab

Mar 20th, 2025 11:18 PM

If Google Analytics is not showing up on your site and your script does not have settings for it in the admin area, you may need to manually add the tracking code. Here’s what you can do:

  1. Verify Your Google Analytics Setup Log in to Google Analytics and check if the tracking ID (GA4 Measurement ID or Universal Analytics Tracking ID) is correct. Go to Admin > Data Streams and ensure the correct property is set up.

  2. Manually Add the Tracking Code If your admin panel does not have a built-in way to add the tracking script, you’ll need to insert it manually into your website’s code.

For GA4 (Latest Google Analytics) Add this code inside the section of your website’s main HTML file:

<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());
  gtag('config', 'G-XXXXXXXXXX');
</script>

Replace G-XXXXXXXXXX with your actual GA4 Measurement ID.

I hope this helps!😊