Google analytics not working (Pro theme)

Hi there

I have entered the GA ID into Pro > Google Analytics > Settings > Google Analytics ID and selected the Header section, but when I go to review the analytics it says there is “No data received from your website yet.”.

Can you please let me know how to fix this?

Cheers
Ryan

I came to ask the same question.

I’m not positive, but I suspect the plugin wasn’t updated to support GA4 and it’s still using UA code.

Google tells me to add the following:

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

but when I look at my website’s source, I see:

<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'TAG ID', 'auto');
ga('send', 'pageview');
</script>

Assuming it is a problem with GA4 vs UA, should we use another plugin or is an update to the Themeco plugin in the works?

Hello Ryan,

Thanks for writing in! Please deactivate the Google Analytics by Themeco and use the official Google Site Kit plugin instead.

@endeavor74:
Thanks for chiming in!

Best Regards.

Happy to help.

I’ve been looking for a plugin that embeds both GA4 and UA tags for tracking. There are paid plugins that do it, but I have a hard time justifying buying them when I can just drop the code into the footer.php in wordpress.

That said, if you all updated your GA plugin to do both it would be much easier and much apprecaited.

Hey Tristan,

I will add this as a feature request so that it will be taken into action in the future. If you have any other concerns or clarifications regarding our theme features, feel free to open up a new thread.

Thank you.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.