Skip to main content
All CollectionsInstallation
How to install the Alli snippet to a GeneratePress site?
How to install the Alli snippet to a GeneratePress site?
Kyle Duck avatar
Written by Kyle Duck
Updated over a week ago

With Alli, your entire website is optimized in minutes for search engine traffic, automatically, with one line of code.

First, add your domain or website URL, provide information about the niche of your business followed by adding keywords and approval of initial recommendations - and finally with the installation of Alli's JavaScript on your site.

Now, in order for Alli to start optimizing your website, the generated JavaScript snippet needs to be added to your website. The JavaScript code should include in the <HEAD> tag of your site right before the closing </HEAD> tag.

Here are the steps on how to add your JavaScript snippet:

  1. Login to your GeneratePress site.

  2. Go to Appearance > Elements and click “Add New”.

  3. From the Element dropdown list, choose “Hook”.

  4. Copy and paste your JavaScript code into the content area.

    If you need to revisit the page to where you can copy your Alli AI JavaScript snippet, just add “/widget” to your site link and that will open the JavaScript Snippet page for your site.

    For example:

  5. Under the Settings tab, select wp_head in the Hook dropdown list.

  6. Under Display Rules tab, select Entire Site in the Location dropdown list.

  7. Click the Publish button to save.

Note: If you are using different site-building software and need help in this process, please let us know and our team will be happy to help find the answer.

Recommended articles you may interest to read: 😊

Did this answer your question?