I wrote a simple PHP analytics script (only 77 lines of code including commenting). It does the following:
a) Gathers the URL, timestamp, IP address, and browser of a visitor.
b) Extracts a unique customer identifier from the URL.
c) Inserts the data into a MySQL database.
The script works fine as a standalone script, but I want to be able to embed it into Wordpress pages on a few different websites (that can all access the same MySQL database).
I don't care how this problem is solved. I only care that it is fast, simple, and secure so it doesn't make the sites vulnerable to attack.
1) Make it work in PHP as a server side script, modifying it to work with Wordpress.
I'm not a professional coder. You tell me the best way to do this.
Perfectlancer is a freelancing and telecommuting platform for professional freelancers to get hired. Among all the projects that you can outsource or do we can name: Programming, application and software development, web design, Web content production and social networks, typing, translation, photography, design (logo, banner, poster, etc.), editing marketing, digital marketing, SEO (Search Engine Optimization), photo editing, making and editing clips and teasers, making infographics, modeling, editing audio files, song composing, engineering projects, experimental science projects, art projects, architecture, interior design, etc. With Perfectlancer, we are by your side.