Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1166457

    Hello,
    In the Cookie Modal there is a tab called “Statistik mit Matomo”
    There is a Iframe for the opt-out but it does not show.
    Why?

    Danny

    #1167073

    Hey Flugtraeumer,

    Thank you for the update.

    Try to replace the protocol in the iframe src attribute from http to https.

    Blocked loading mixed active content “http://piwik.flugtraeumer.de/index.php?module=CoreAdminHome&…anguage=de&backgroundColor=&fontColor=&fontSize=&fontFamily=”Blocked loading mixed active content “http://piwik.flugtraeumer.de/index.php?module=CoreAdminHome&…anguage=de&backgroundColor=&fontColor=&fontSize=&fontFamily=”

    It doesn’t display because it’s being blocked as shown in the error above.

    Best regards,
    Ismael

    #1180369

    I updated it last week and the iframe is visible now,,,,BUT….
    It seems as if the cookie-modal blocks the tracking.
    Please see this….the date i setted up the cookie modal matches exactly with the date matomo stopped tracking:
    https://flugtraeumer.de/temp/visits.jpg

    Danny

    #1180607

    Hi,

    Thanks for the update. First off, could you try updating the theme to the latest version (4.7.2) to see if that helps please? https://kriesi.at/documentation/enfold/how-to-install-enfold-theme/#theme-update.

    Also, this might be related to the other problem you were having with replaced http/https strings in the database. I would suggest that you try to get that fixed first.

    Best regards,
    Rikard

    #1180692

    Like i alrady said in my other post:
    I dont want to be “supported” by you anymore.
    Please skip my threads in the future!

    for @yigit
    Although we use Auto-Update the Updater says:

    Theme Updates
    No Updates available. You are running the latest version! (4.6.3.1)

    So we found another issue?

    Danny

    #1180941

    Hey,

    Could you please contact your hosting provider and ask them to whitelist api.envato.com. They might be blocking it for security reasons.

    Another user who was having the same issue contacted their hosting provider and replied:

    our hoster has updated the Linux distribution of the server.
    The cause of the problem was probably the incompatibilities of the versions of OpenSSL with cURL.

    Now the token API works :-)

    This happens when there is connection issue between your host and Envato API. This is not related to Enfold, it is related to server settings.

    Regards,
    Yigit

    #1180942

    Hi,

    Thank you for the update.

    Another tab opens and closes automatically whenever we toggle the checkbox in the “Statistik mit Matomo” tab. Is that how it’s supposed to work? Is that the iframe ?

    Best regards,
    Ismael

    #1192301

    @Ismael
    i dont understand what you mean. There is “no other” tab that “opens & closes” …at least not on my end.
    Can you show it via screencast please?

    There are more websites with the same problem: matomo is not tracking.
    So the problem gets more urgent


    @yigit

    OK, i will ask them

    kind regards
    Danny

    #1193373

    Hi,

    A “piwik” tab opens whenever we tick the checkbox in the “Statistik mit Matomo” tab. Is that how it’s supposed to work?

    Best regards,
    Ismael

    #1212598

    There is NO TAB that opens when you tick!!
    Its an absolutely normal behaviour:
    [video src="https://flugtraeumer.de/temp/cookie-matomo.mp4" /]

    #1212640

    Hi,

    It is actually visible in your screencast as well. Please see my screenshot in private content field and note the link in address bar. You can see that it happens each time you check/uncheck the option.

    Also, it seems like your Matomo cookie was set with “SameSite=None” but missing “Secure” attribute. Please see – https://web.dev/samesite-cookies-explained/#samesitenone-must-be-secure

    Best regards,
    Yigit

    #1214408

    Yes, its the URL that changes for a split of a second but there is NO ADDITIONAL TAB, like Ismael stated here:
    “A “piwik” tab opens whenever we tick the checkbox in the “Statistik mit Matomo” tab”

    However…i need to inform users that we track and i need to give users the opportunity to disable tracking prior they surf the site

    2: I dont set anything.
    The only thing i do is putting the code prevented from matomo in your cookie modal.
    The code is this:
    <iframe style="border: 0; height: 250px; width: 900px;" src="https://piwik.flugtraeumer.de/index.php?module=CoreAdminHome&action=optOut&language=de&backgroundColor=&fontColor=&fontSize=&fontFamily="></iframe>

    The tracking code does not set any cookies at all (by purpose) – see line 3:

    <script type="text/javascript">
    var _paq = _paq || []
    _paq.push(['disableCookies']); // Ab sofort verteilt Matomo keine Kekse (Cookies) mehr
    _paq.push(['enableHeartBeatTimer', 5]); // Matomo bekommt Herzrasen: Der "Herzschlag" von Matomo wird auf alle 5 Sekunden erhöht
    _paq.push(['trackPageView']);
    _paq.push(['enableLinkTracking']);
    
    function embedTrackingCode() {
      var u = '//piwik.flugtraeumer.de/';
      _paq.push(['setTrackerUrl', u + 'matomo.php']);
      _paq.push(['setSiteId', '1']); // Bei "X" steht normalerweise die ID der Seite die getrackt werden soll
      var d = document,
        g = d.createElement('script'),
        s = d.getElementsByTagName('script')[0]
      g.type = 'text/javascript';
      g.async = true;
      g.defer = true;
      g.src = u + 'matomo.js';
      s.parentNode.insertBefore(g, s);
    }
    
    setTimeout(function () {
      embedTrackingCode(); // Die Matomo Tracking Funktion wird ausgeführt
    }, 5) // Die 5 steht für die Millisekunden anzahl in der die Funktion ausgeführt wird (kann man natürlich beliebig anpassen)
    </script>

    3: If i remove the iframe from your cookie modal the tracking works normal, so the reason for not tracking is somehow connected with your cookie modal

    MEANWHILE….
    1: I removed the iframe from the cookie modal:
    No change, no tracking

    2: I edited the settings of the tracking code
    No change, no tracking

    3: I made a copy from my website, published it on a testarea, changed the theme:
    Tracking works

    For me it looks like the theme blocks the tracking.

    MEANWHILE 2:
    – I deleted the tracking code of the mataomo-Standalone-Installation
    – I installed the Matomo-Plugin
    The tracking seems to work – at least i see 3 visitors in the last minutes

    But like i said before……the trackingcode works if i install another theme.
    So please investigate that cause i dont want to use the plugin since it probably will have effect on our page speed

    LAST
    I checked 5 different themes now and the tracking code works & Matomo tracks.
    If i activate Enfold it stops tracking.
    So there cant be any doubt that it the issue is theme related

    #1311635

    hint for: https://kriesi.at/support/topic/problem-with-cookie-modal/#post-1212640
    you can solve the samesite cookie message by adding this to your wp-config.php:

    define( 'WP_SAMESITE_COOKIE', 'Lax' );
    you can try strict or none – but for me lax is enough to get rid of that.
    and here is a good place for it:

    #1314359

    Hi,


    @Guenni007
    thanks for your help as always :)

    Best regards,
    Yigit

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘Problem with Cookie Modal’ is closed to new replies.