0

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 -->
3
  • Hi Chris, does it work before? Could I ask you why you decide to switch away from Magento?
    – Tu Van
    Nov 27, 2022 at 7:49
  • Yes, it worked before, just not sure what was changed. We decided to switch away from Magento due to Admin issues. We have three systems deployed (stone-age typo3 version, wordpress, magento) and we wanted to harmonize all, so we go to all WP/WooC. It does all we need, plus is easier to handle. We would have needed to invest heavily in our Magento System and that was just the better way forward.
    – Chris
    Nov 27, 2022 at 8:21
  • Thanks for sharing. From the Administration area of Google Analytics > Ecommecre Settings > Ecommerce set-up, make sure Enable Ecommerce and Enhanced Ecommerce Reporting are turned on, and you have the correct Tracking ID which gets from the Administration area of Google Analytics > Shop > Tracking Info > Tracking Code.
    – Tu Van
    Nov 27, 2022 at 8:40

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.