Troubleshooting

Tips and tricks for resolving Grow JavaScript SDK issues.

The Grow JavaScript SDK if relatively simple to work with, but if you have trouble using it, here are some possible solutions:

General Tips

  • Make sure your Grow installation script is loaded and functioning before attempting to use the SDK. See the Grow Help Center for instructions.
  • Start all calls to Grow SDK methods with window.growMe. See the sample code provided with each method to see how it works.

Development Environments

If you plan on setting up a Grow development environment, make sure that your testing site includes the following:

  • 10 or more articles. Grow requires at least 10 articles in order for its features to work properly.
  • Images and SEO data. Make sure your content includes articles with featured images, embedded images, and openGraph data.
  • A properly configured robots.txt file. Make sure that your robots.txt file allows crawling. If your site is set to noindex, Grow won’t analyze the content.

Finding a Pop Up Form’s ID

When using .triggerSubscribePopup(), an ID is used to display a specific Pop Up form. Grow’s Publisher Portal does not currently show the IDs for Pop Up forms in the user interface, therefore you must grab the ID from the form’s URL.

  1. In the Grow Publisher Portal, go to Subscribe Settings and scroll down to Your Grow Forms List.

  2. Click on Manage Form for the desired Pop Up form.

    Grow Subscribe Settings
  3. In the URL, copy the string of characters between forms/ and ==/edit.

    Trellis Form ID
  4. Paste the string into your code. The Grow SDK will automatically decode it.