Adding the NytroSEO Optimization snippet to your website

Adding the NytroSEO Optimization snippet to your website

The NytroSEO JS (Script) Optimization Snippet allows for the automatic SEO optimization of your webpage code. You will need to copy and paste the JS into the <HEAD> of your website.

JS Snippet Setup Guide

Add your website

Firstly, you will need to add a website to your account on system.nytroseo.com . After the Website is added successfully, the JS code is generated automatically and the indication Icon turns green. You can access it via the Website/Manage menu.


View your JS snippet code.

Pressing the green JS code icon, will display the JS Optimization Snippet code. It can be copied easily.


Copy your JS (Script) Snippet code and paste it into your website HEAD <head>

Verify the Installation

Press the button to check if the JS is installed correctly on your website.


Green notice: indicates that the Snippet is installed correctly and is operational.


Read notice: Indicates that the JS Snippet was not identified on your website.



In cases where you have added the JS Snippet to the website HEAD, and it is still not being identified,  it is recommended to clear the Cache of the CMS and try the Verification again.

 


Resolving Third Party Speed Enhancement Plugins (WP Rocket)

Other possible reasons for failure in operations / verification can be processing by third party speed optimization plugins such as WP Rocket Configuration.
Press link for details

How to add your JS code to your website header

There are several options to add the JS Snippet to your website code.

Adding the JS snippet to the website Theme Header (header.php)

Adding the JS code manually to the Theme Header (header.php) section in your websites CMS can be done in several ways… however it is recommended to add it just before the end of the <head> section, using the child theme to prevent lose of any data in case of a theme upgrade.

 

Adding the JS snippet to the Theme Options – Custom code.

Most modern CMS Themes offer the ability to add custom CSS, Analytics and code to the Head of your website using the Them Options. The advantage of using the Theme options is that its relatively simple and it will not be effected/lost in case of Them upgrade.

 

Adding the JS snippet using a dedicated CMS Plugin

Most modern CMS’s offers multiple plugin options that allow you to add custom code to your Headers. Simply install one of these plugins and add the Nytro JS Snippet code in the designated Header space. The main benefits of using a plugin over the manual method is that the plugin makes it easy to add the snippet code to the header and remains unaffected in case of Theme change or upgrade. Simply search for similar Plugins in your CMS.

 

Adding the JS snippet using a Google Tag Manager

The Google Tag Manager (GTM) delivers simple, reliable, easily integrated tag management solutions without editing the website code. The NytroSEO JS snippet can be added to the website using the GTM. This can be done after the GTM code is added to the <head> of the website code.



For further details, please review GTM official website: https://tagmanager.google.com/

 


 

 

 

 

 

 

 

 

 

 



    Submit a Ticket

      • Related Articles

      • Adding a Website to your account

        Add Website - NytroSEO Video Tutorial You may add multiple websites to your NytroSEO Account. In this video tutorial, we will show you how to add a new website to your account. Just follow the displayed instructions. Step By Step How to Add your ...
      • Adding Keyword search terms to a Website

        Adding Keywords to a Website This guide provides a detailed walkthrough of adding keyword search terms to the Nytro system for website optimization, rank monitoring, and pre-evaluation of meta-tags effectiveness. You can add Keyword search terms to ...
      • How to Disable Webpage Optimization, Revert to Original Meta Tags, or Unpromote Your Entire Website

        Managing a website's optimization and promotion settings is essential for controlling how your content is presented to search engines and users. Whether you want to disable optimization on specific pages, revert to original meta tags, or unpromote ...
      • Q: What is Webpage SEO Meta-Tags Optimization?

        Webpage Meta-tags SEO Optimization involves improving individual webpages by integrating Keyword rich optimized meta-tags. Meta-tags include title tags, meta descriptions, image alt attributes, and link anchor text other HTML tags. These elements ...
      • Understanding Webpage Optimization Limits in NytroSEO

        NytroSEO helps you optimize your website pages by enhancing meta-tags according to the limits defined by your chosen plan or tier. Understanding these limits is essential for selecting the right plan and maximizing your SEO strategy. This tutorial ...