1. This website uses cookies to improve service and provide a tailored user experience. By using this site, you agree to this use. See our Cookie Policy.
    Dismiss Notice

How to get page view information for specific URLs? Custom PHP Website

Discussion in 'BlackHat Lounge' started by LGNDFRVR23, Feb 12, 2020.

  1. LGNDFRVR23

    LGNDFRVR23 Jr. VIP Jr. VIP

    Joined:
    Jan 23, 2018
    Messages:
    345
    Likes Received:
    135
    Gender:
    Male
    I am looking to implement a page view tracking system on one of my websites.

    The website is a directory where suppliers can advertise their services. Suppliers have a unique profile page on the site, e.g mysite.com/user/abc-profile.html, e.g mysite.com/user/my-listing.html

    The idea is that suppliers can log in to their account area on the site and view stats on how many people are visiting their listing. Ideally I want to display this as :

    Total views | Total today | This week | This month | This year

    I'd also like to track somehow how many times their contact button has been clicked tho.

    Any ideas how to go about this? Custom PHP code? Google Analytics API? If someone did this I'd appreciate if they share some insights or some code structure.