Okay
  Public Ticket #1786572
Google plugin
Open

Comments

  • Daniele Raiher started the conversation

    Hey there!

    I need some help and I’d appreciate if you could help me. My theme does not allow me to install a very simple plugin called Google Tag Manager.

    I need this plugin to be installed in my website to have the consumers tracking.

    Mautic is going to connect with this plugin to help with this task.

    When the plugin Tag Manager is active, my website does not open its pages correctly.

    I really appreciate your help. Have a nice weekend!

  •  229
    Nico replied

    Hi Daniele,

    Are you talking about this exact plugin?

    https://wordpress.org/plugins/simple-google-tag-manager/

    That's an old plugin and the last update was a year ago.

    So I can tell why is not working exactly.

    Have you tried another plugin? There are several that include Google Tag Manager:

    https://wordpress.org/plugins/search/google+tag+manager/

  •   Daniele Raiher replied privately
  •  229
    Nico replied

    That's strange you should use the code without problem.

    Can you send me a WordPress user and the code from Google Tag Manager in a private reply? I will take a look at the site to see what's happening.

    Thanks.

  •   Daniele Raiher replied privately
  •  229
    Nico replied

    I added the plugin "Google Tag Manager for WordPress" and now the code for Google Tag Manager is working on your site.

  • Daniele Raiher replied

    Hello, sorry to insist on the same problem. It continues to generate a problem on the site.
    I ask you to view the site after installing the plugin.

    Thank you.

  •   Daniele Raiher replied privately
  •  229
    Nico replied

    Hi Daniele,

    When the error is present I see a Javascript error:

    Maybe the configuration on your Google Analytics has the wrong URL.

    Because looks like is configured for the domain "'https://mautic.lilies.com.br" and it is a different subdomain.

    Can you check that configuration?

  •   Daniele Raiher replied privately
  •  229
    Nico replied

    The problem is that your script is making the request from another subdomain. And that's blocked.

    You have configured this domain:

    But you are sending requests from "mautic.lilies.com.br" and there is a thing called CORS which on some server doesn't allow to receive requests from different domains. This is for security.

    Unfortunately I can't help you much because this is not a theme related issue. You should try asking on the support for those two services.

  •   Daniele Raiher replied privately
  •  229
    Nico replied

    Hi Daniele,

    Te javascript error persists on all themes. The thing is the Shophistic truncates any JS error because it uses JS to work.

    I added a code to your site to ignore this JS error and you will see the site as usual but it might bring you issues with javascript in the future:

    https://www.lilies.com.br/

  •   Daniele Raiher replied privately
  •  229
    Nico replied

    No problem at all Daniele,

    Thanks to you, let me know if you need anything else.