Plugin Installation

For standard websites, the plugin installation process involves adding a script to your website's HTML code. This script initializes the Publisher Analytics plugin and sets up the A/B testing component.


Prerequisites

Ensure that you have the necessary permissions to install plugins on your website. You should also have a basic understanding of HTML and JavaScript.

Installation

To install the Publisher Analytics plugin, you need to add the following script to the head of your website's home page and each article page you want to monitor:

<html>
  <head>
    <title>Here is the title of the page</title>
    <!-- Publisher Analytics -->
    <script src="https://publisheranalytics.ai/publisher-sdk"></script>
    <script>
      const accountCode = "demoAccountCode"; // CHANGE HERE
      const flickerControl = false; // CHANGE HERE IF YOU WANT
      new PublisherAnalyticsSDK(accountCode, flickerControl);
    </script>
    <!-- /Publisher Analytics -->
  </head>
  <body>
    <!-- webpage content -->
  </body>
</html>

This script initializes the Publisher Analytics plugin with your account details.

Important Details!

  1. Optimal Placement: For rapid execution, place the plugin script as high as possible within the <head> tag, after the <title> tag.
  2. Credentials: Replace accountCode with your actual account code.
  3. Page Coverage: Add this script to the home page and all article pages you wish to monitor.
  4. Unique Titles: Ensure each page has a <title> tag with a unique title to fully utilize the feature's potential.