Using Google Analytics Universal and Analytics 4 at the same time

If you want to use Google Analytics Universal and Google Analytics 4 at the same time, this is possible with 2 separate push integrations in our system. There is just something to keep in mind with the website. #

If you want to use Google Analytics Universal and Google Analytics 4 on your site at the same time, both accounts must be available for our integrations.
If you integrate Google Analytics on a page, this is usually done via the Google Tag Manager, which places the Analytics script directly on your page with the desired account. However, according to Google, this Analytics script should only be played out once globally on the page. If you now use the Google Tag Manager to place the script on the page for both Universal and GA4, the Tag Manager hides some content. This missing content can lead to problems when recording the Google Client ID.

The solution to this problem is to simply extend the Google script to include the additional account. Here is an example:

Before, only with Universal Account

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

gtag('config', 'UA-159839765-1');
</script>
<!-- End Google tag (gtag.js) -->

Afterwards, combination script with universal and GA4 account:

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

gtag('config', 'UA-159839765-1');
<span style="color: #ff0000;">gtag('config', 'G-PRECVR6BWJ');</span>
</script>
<!-- End Google Kombi tag (gtag.js) -->

This is also the procedure recommended by Google:

The new tag with both accounts can then be installed on the page manually or again via the Google Tag Manager.

matelso platform
matelso optimally connects telephony, chat, email or contact forms. Our intelligent lead management simplifies communication and enables you to achieve better marketing results.
matelso platform in detail
Call Tracking

MarTech phone call analysis software for companies, agencies & portals to get valuable data from inbound calls.

Call Tracking in detail
Marketing Use Case
How the matelso platform boosts your marketing.
Sales Use Case
How the matelso platform boosts your sales process.
E-Commerce Showcase

Showcase of the matelso platform in E-Commerce

Features
What capabilities does our matelso platform offer? All features at a glance.
Consulting
Do-it-with-me instead of DIY: Work with our consultants to really get the most out of the platform.
Consulting
Do-it-with-me instead of DIY: Achieving more together with our consultants.
Use Cases

Three industries that should rely on call tracking: B2B, automotive and agencies!

Learn
Blog Through our blog, we share knowledge and insights with our readers - always useful, always interesting.
Webinars With our matelso webinars, you can experience our MarTech technologies and solutions and get valuable tips for your online marketing.
Knowledge Base On our matelso Knowledge Base you can delve deep into the engine room of our Call Tracking and MarTech technology.

Connect

Career Creating a new data-based era of communication - if you share this vision, we should get to know each other.
Partner model Help your customers better understand and manage their customer journey - while also generating a new revenue stream.

matelso

About Us The MarTech company matelso - we stand for innovative and simple solutions that make your marketing more efficient.
Newsroom News, press releases and more - all news about matelso at a glance.