Adding the Universal Plugin to your website

To add any third-party tool or plugin to a client’s website usually requires you to add a snippet of code (in HTML or Javascript) which will run once the page has finished loading. The most common example is probably Google Analytics which you install to generate reports on the users who visit the site. 
The Universal Plugin removes the need to install multiple scripts or blocks of code for the different things you want to add from the platform. By adding one line of code, you can now:
- Include Review Snippets and Featured Reviews for any of your business locations
- Engage with leads and existing customers using the Website Messenger
- Add Structured Data to your website to tell search and voice engines information about your business, such as its location, opening times and social profiles. 
You can control which of the above features you want to appear from your Flyte account, eliminating the need to ever have to modify the plugin code to make changes. 

Installing the Plugin

To get started with the Universal Plugin, sign in and grab the code you need to add to the website. Head to Admin > Universal Plugin . If you have more than one location, you’ll need to choose the location first.
Choose whether or not you want to the plugin to automatically add Structured Data to the site, and if you have multiple locations, you can choose whether to include location information for all or just one of your addresses. 
You can also choose to show or hide the Website Messenger on any pages the plugin code has been installed. ( The messenger will only show if you’ve customized and saved your Website Messenger settings for the first time). 

Copy the HTML code and paste it before the closing body tag on all pages of the website.

Google Tag Manager

If you’re using Google Tag Manager (GTM), then plugin installation is even easier. Sign in to your GTM account, and from the main menu head to Tags and click the New button in the top right corner. 
In the Tag Name, enter ‘ Universal Plugin’, and click on the ' Tag Configuration' area. Choose Custom HTML from the list and enter the HTML code from the Universal Plugin page on our site. 
Click on the ' Triggering' area and choose ‘ All Pages’, and save and publish your new tag.

Testing the Plugin Installation

You can check if structured data is being rendered correctly on the website after the plugin is installed, by heading to the Google Rich Results tool at https://search.google.com/test/rich-results .

Remember, you can’t see the Structured Data inserted by the plugin by viewing the webpage’s source. 

The data is added dynamically after the page has loaded so you will need to use something like the Google Rich Results tool linked above, or the developer’s console in Chrome to see the effect.