Skip to content

GA traffic not showing, script seems to be ok

I just cant figure out why GA isn’t tracking the traffic. Code seems to implemented correctly, but GA is showing close to no traffic.

We are using 2.3.2 and I want to avoid updating, as we are switching away from Magento anyhow. I just want to get some info because the former consultant completely turned of all tracking and it would be nice to have some last info before switching over.

that is the code which is in every page, even a test-access from the GA console does not show visitors. I am using a clean google chrome for viewing. We are in the EU, so maybe some stuff with GDPR is turned on – I can’t find anything.

<!-- BEGIN GOOGLE ANALYTICS CODE -->
<script type="text/x-magento-init">
{
    "*": {
        "Magento_GoogleAnalytics/js/google-analytics": {
            "isCookieRestrictionModeEnabled": 0,
            "currentWebsite": 1,
            "cookieName": "user_allowed_save_cookie",
            "ordersTrackingData": [],
            "pageTrackingData": {"optPageUrl":"","isAnonymizedIpActive":false,"accountId":"UA-1XXXXXXX-2"}        }
    }
}
</script>
<!-- END GOOGLE ANALYTICS CODE -->