# Umstieg von Google Analytics auf Matomo?

**URL:** <https://forum.shopware.com/t/umstieg-von-google-analytics-auf-matomo/106144>\
**Category:** Allgemein\
**Created:** [20. Dezember 2024 um 07:24 UTC](https://forum.shopware.com/t/umstieg-von-google-analytics-auf-matomo/106144 "2024-12-20T07:24:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![RAShop](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/rashop/32/24484_2.png) [@RAShop](https://forum.shopware.com/u/RAShop)\
**Post date:** [20. Dezember 2024 um 07:24 UTC](https://forum.shopware.com/t/umstieg-von-google-analytics-auf-matomo/106144/1 "2024-12-20T07:24:54Z")

</div>

Hallo,

ich nutze als Cookie Consent Tool das mit gelieferte von Shopware. Google Analytics wurde gelöscht. Jetzt steht im Cookie-Consent-Tool noch Google Analytics (siehe Bild) drin. Aber das Matomo nicht obwohl Matomo im component/analytics.html.twig eingetragen ist.

Wie bekomme ich den Google Analytics weg und Matomo in das Cookie Tool rein?

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/e/6/e6734760b35fec6fd7522f47fbded09cbc023313.png)

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/a/5/a5810441b89f6ff8872ccad7595f21414f611f7f.png)

---

<div class="post-metadata">

**Author:** ![RAShop](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/rashop/32/24484_2.png) [@RAShop](https://forum.shopware.com/u/RAShop)\
**Post date:** [20. Dezember 2024 um 16:23 UTC](https://forum.shopware.com/t/umstieg-von-google-analytics-auf-matomo/106144/2 "2024-12-20T16:23:25Z")

</div>

Ich habe ein Plugin genommen, da wird Matomo im Cookie Consent angezeigt.  
Jetzt möchte ich nur noch Google Analytics im Cookie Consent Tool entfernen.  
Eine Idee?

Vielen Dank.

---

<div class="post-metadata">

**Author:** ![frip-tech.de](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/frip-tech.de/32/24453_2.png) [@frip-tech.de](https://forum.shopware.com/u/frip-tech.de)\
**Post date:** [22. Dezember 2024 um 18:59 UTC](https://forum.shopware.com/t/umstieg-von-google-analytics-auf-matomo/106144/3 "2024-12-22T18:59:33Z")

</div>

@RAShop Wie genau ist denn Analytics bisher eingebunden?

---

<div class="post-metadata">

**Author:** ![RAShop](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/rashop/32/24484_2.png) [@RAShop](https://forum.shopware.com/u/RAShop)\
**Post date:** [23. Dezember 2024 um 07:03 UTC](https://forum.shopware.com/t/umstieg-von-google-analytics-auf-matomo/106144/4 "2024-12-23T07:03:42Z")

</div>

> [@frip-tech.de](#):
>
> Wie

Matomo Analytics habe ich eingebunden unter:  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/0/5/050ddd9756d5bc745652bd54c750907629ebf597.png)

```auto
{% sw_extends '@Storefront/storefront/component/analytics.html.twig' %}
{% block component_head_analytics %}
  {{ parent() }}

  <!-- Matomo -->
<script>
  var _paq = window._paq = window._paq || [];
  /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
  _paq.push(['trackPageView']);
  _paq.push(['enableLinkTracking']);
  (function() {
    var u="//matomo.xx.xx/";
    _paq.push(['setTrackerUrl', u+'matomo.php']);
    _paq.push(['setSiteId', '1']);
    var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
    g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
  })();
</script>
<!-- End Matomo Code -->

 <!-- Matomo Tag Manager -->
<script>
  var _mtm = window._mtm = window._mtm || [];
  _mtm.push({'mtm.startTime': (new Date().getTime()), 'event': 'mtm.Start'});
  (function() {
    var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
    g.async=true; g.src='https://matomo.xx.xx/js/container_M9AEeKr4.js'; s.parentNode.insertBefore(g,s);
  })();
</script>
<!-- End Matomo Tag Manager -->

{% endblock %}

```

Setze jetzt ein Plugin (Miete) ein und da funktioniert es.

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/2/9/29c7587ba660f00e4995d1743162782e5d6d8653.svg) [@system](https://forum.shopware.com/u/system)\
**Post date:** [22. Januar 2025 um 07:03 UTC](https://forum.shopware.com/t/umstieg-von-google-analytics-auf-matomo/106144/5 "2025-01-22T07:03:44Z")

</div>

Dieses Thema wurde automatisch 30 Tage nach der letzten Antwort geschlossen. Es sind keine neuen Antworten mehr erlaubt.
