Easy Steps to Create a Marketing Metrics Plugin for Woo
Commerce Sites.
Measuring product performance, having marketing insights and customer psychology in split
seconds is every sales departments dream. Our plugin gives real-time updates on marketing
insight metrics measured from customers views on various products and categories on a woo
commerce site.
There are a whole lot of indicators to measure performance out there.Our plugin will focus on
one.Top product viewed
Technical Requirements
For this tutorial we’ll be needing the following
You are familiar with sequel statements and query
You are familiar with nosql databases
You have Knowledge of PhP object oriented programming language
Understanding of HTML and CSS programming languages
Notepad++
You can access your database name,hostname,user and password information
from
your web hosting server or any server hosting your woo commerce site.
You have a up and running woo commerce site
Create Plugin
For this tutorial our plugin will be named ‘Metrix Analyzer Plugin’, feel free to rename this with
whatever name suites you.Our plugin consist of two scripts`matrix.php` and`matrix2.php`.The
plugin will create a page with description.On this page we will script php code which will analyse
our woo commerce database, spool data and present marketing insight information for products
and orders.
1.
Create Folder
Create `Matrix folder` in the wp-content folder on your server
2.
Upload `matrix.php` file in Metrix Analyzer folder with with notepad++
After the above steps your web hosting panel should look like this
3.
Script to create form with submit button to run database script on menu and describe our
plugin
```