Hey There,
The correct code is this:
function third_party_tracking_code() { ?>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-76676907-2"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-76676907-2');
</script>
<?php }
add_action( 'wp_head', 'third_party_tracking_code' );
You do not need to activate GA extension in Pro theme. If https://tarekrabaa.com/en/
is a separate installation, you will also need to add the code in that installation.
GA will only monitor the traffic of your site homepage and other site pages excluding the WP admin.
Hope this helps.