Skip to main content

Problem with installing the Grow script

Answered

Comments

8 comments

  • Official comment
    Ben Rodriguez
    • Grow Support Team

    Hey Tam!

    It looks like something is optimizing Grow's scripts or preventing them from being placed in the <head> section like they should be, especially since I see Grow loading on your site. 

    This could be a security setting, like Cloudflare's bot fight mode. It may be best to try allowlisting the Grow user agent with your firewall or site security, as outlined here.

  • Tam M

    Thank you! The Cloudflare's bot fight mode was already turned off.

    I now tried adding the code manually instead of using the plugin. It now seems the script is placed inside the <head> - can you see that as well? However, it still shows me “There is a problem with your connectivity….” after I click on the button. Any ideas?

    0
  • Ben Rodriguez
    • Grow Support Team

    I see your Grow scripts in the correct place now, so it might just need a little time to refresh things. 

    Have you tried clearing your site's cache and any caching plugins? That could help!

    1
  • Tam M

    Thanks for your answer. I think for a brief period it showed correctly, however, now it shows me the same error again. I cleared all caches and don't have any other caching plugin active. The script still seems to be at the right place. Could it be that it's a bug on Grow's side that doesn't detect it correctly? How can I know if it's now placed correctly and should work or not? The script is placed right after the Google Tag Manager script, which is also in the header.

     

    Thanks for your help - much appreciated!

    0
  • Ben Rodriguez
    • Grow Support Team

    Hey Tam!

    In your initial post, you said you'd installed Grow using the WordPress plugin, but your latest reply says you've installed the scripts in your <head> section. Is that correct? That could be the cause of the issue.

    The Grow for WordPress plugin installs Grow's scripts for you, so using both the plugin and a manual installation adds two sets of Grow's scripts to your site. This gives Grow two endpoints, preventing it from verifying the scripts are present and active.

    Removing the manual installation and then clearing your caches again could resolve things!

    0
  • Tam M

    Hi Ben! 

    Thanks for your reply. Unfortunately, that's not the case. I never had both the plugin and the manual script active, always only one of them. The plugin doesn't work for me - if I use it, the script will be placed at the very bottom of the body of the page. However, if I place it manually it will be placed correctly in the header of the page. You can check it in the source code. I just don't know why Grow doesn't notice it correctly… I cleared the cache multiple times and also checked that I don't have any caching/security plugins or Cloudflare settings that minify JS code or could otherwise impact the script (like Cloudflare's Bot Protection). I even whitelisted the User Agent on Cloudflare. So, I really have no idea why it doesn't seem to work correctly even though the script is placed correctly in the header.

     

    Any help to troubleshoot the issue further would be much appreciated. If it's relevant, I'm using the Wordpress GeneratePress theme for the site.

     

    Thanks!

    0
  • Ben Rodriguez
    • Grow Support Team

    Thank you for following up and letting me know what you've tried, Tam! 

    It looks like Grow is successfully detecting its scripts on your sites now. I see it appearing as intended on the front end and Grow Publisher Portal is showing scripts connected even when clicking the “Check Grow Connectivity” button.

    This was likely due to a small update in the scripts pushed out by the Grow Engineering Team leading to a false negative. Since the connectivity was not actually impacted, they quietly worked to resolve this on their end and then announced the fix when it was deployed!

    1
  • Tam M

    Now it works, thanks a lot for your help Ben!

    0

Please sign in to leave a comment.