PHP unique visitor tracking script (img or iframe)

Job Description:

This should be an easy PHP script to build, but please read the instructions carefully to avoid misunderstandings.

In a nut-shell: I have a site A and I want to insert into its pages a tracker that will be hosted on site B. These are located on different servers. Site B (where the tracking script will be) runs on PHP 7+/nginX. I want to run this as a very simple affiliate system, where the users get rewarded for the visitors they send to site A's pages.

On site A, I want to have a small javascript code that will check if the visited URL has the tracking query (for example [login to view URL], where ID is a unique tracking ID). If this exists, the javascript should insert (innerHTML is fine) an img or iframe with the tracking page located on B site, parsing the query from the A URL to the B img src (example <img src=[login to view URL]

Theoretically, this should work.

So basically I don't want to load the tracking script from B site, unless there is the tracking query in the A visited URL. I guess the main idea is to make everything as light and fast as possible, especially site A which is the main site.

To stop spammers and wrong analytics, [login to view URL] should probably die if a query is not present, without registering any hits. I do not need to load [login to view URL], only [login to view URL] Ideally, [login to view URL] will also have some detector before loading and/or logging the hit, to make sure that it is inserted in a [login to view URL] page. I know an iframe detector is easy to make, I'm not sure this is possible if the [login to view URL] page will be inserted as an img src (ideas?).

Overall, the script should have no more than 4-5 pages:

- [login to view URL] - this will contain a login and a registration form

- to register users should need an email, an URL from site [login to view URL] and the script should autogenerate for them a tracking ID (all these 3 must be stored in the db.

- to login, users will need the email and the tracking ID

- both the above forms must have some spamming protection (equation captcha should be fine)

- [login to view URL] - this will load when a user logs in or registers, and will display only the users hits/earnings and their tracking URL ([login to view URL]).

- There no need for a logout option, just make it stay logged in per browser session or 1 day (ie short time)

- [login to view URL] - this is the script that will track the visitors based on their IP/cookies (I'm thinking this is the best way to ensure the visitors are unique, but other ideas are welcome)

- it will be inserted on site's A pages as SRC of an IMG (ideally) or an IFRAME

- either the IMG or IFRAME must be javascript generated, only if site's A URL contains the string 'ID=', which will then be passed to the inserted IMG/IFRAME SRC such as [login to view URL]

- it will probably need to log into db the visitors' IP, date of visit, hits (of course)

- it should load/do nothing if loaded in the URL, not having an ID string or not inserted in the [login to view URL] site

- [login to view URL] - this should contain db login details, also a constant numeric value that will allow conversion of hits into earnings. For example, in case I DO NOT want to display the real hits from the database, but the result of a division between these hits and these constant. Obviously, if I do want the hits as they are in the db, this constant will have to be 1. It should also have a numerical constant for days, used below:

- [login to view URL] - when opened, this script should clean [1] the hits older than the days constant above, the users that had 0 hits for the last (constant) days. This should ensure the db is cleaned periodically.

As an affiliate/user of site B, I want to be able to register, get a tracking ID and check my stats; that's all.

As an admin, I don't need any control panel.

I trust my explanation is clear, but feel free to ask if something is not

Beceriler: PHP, JavaScript, MySQL, HTML

Müşteri Hakkında:
( 0 değerlendirme ) Edinburgh, United Kingdom

Proje NO: #35449161

Bu iş için 8 freelancer ortalamada $59 teklif veriyor


Okay I understood your requirements but I have few doubts text me so I can clear my all doubts right away I can help you and I am ready to start work from now . Thank you

$20 USD in 7 gün içinde
(349 Değerlendirme)

Hello, I have gone through your outsourced requirements " PHP unique visitor tracking script (img or iframe) " and have analyzed that I have right skills ( PHP JavaScript MySQL HTML ) to execute your esteemed pro Daha Fazla

$20 USD in 7 gün içinde
(143 Değerlendirme)

Hi, Dear client. I am a web scraping/automation/bot/chrome extension expert with 6 years of experience in NodeJS, Puppeteer and Selenium. I have prior experience in scraping Netflix, Wholesale and Telegram. I am fami Daha Fazla

$300 USD in 4 gün içinde
(4 Değerlendirme)

Hi, I’m a Fullstack Developer with 7+ years of experience and a mission to meet my client's needs and wants by taking their ideas and executing them fully. I keep my commitment by following deadlines and will discuss Daha Fazla

$20 USD in 7 gün içinde
(4 Değerlendirme)

Hello, I am professional freelancer with a Master's degree in Data analytics making me a suitable person for your project. I have more than 8 years of professional experience in Data analysis. Besides, I have skills i Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(0 Değerlendirme)

ESTEEMED CUSTOMER! I can perfectly do the Php I make sure my clients are 100% satisfied with the writings. I am a professional writer with proven track record. You can also see my reviews as well Thank You

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(1 Yorum)