Hey everyone, Just a progress update. I am working on an Object that handles the collection and parsing of raw data. I am still testing and expanding on this object as a I research the data that is collected.
The object creates a single instance of it’s self, so recalling the method as a singleton.
Here is what the object does so far:
Use a setting from a project configuration file.
My usage case is that I have a single application on a scale-ability server serving multiple Brands that in turn serve multiple dedicated language websites. I group in the application the languages by Brand Name as the Application name, In Insights I then filter by “header.requests.host” that as each domains format is appropriate to filter by (country_code.my-brand.com). What I have is 3 Applications listed, each collecting stats of up to 50 websites.
And to concatenate recorded transactions to maintain efficiency of NR by using mothod names or custom names; for example in APM /product/my-product-name is recorded as \shop\product.view
\NewRelic::track()->nameTransaction(__CLASS__ . ‘.’ . __FUNCTION__);
Every visitor is given a tracking ID that lasts for a lifetime, The idea is to track a returning user long after a session has closed. Transactions and Custom Events passively apply a Guest ID. Hopefully in the future NRQL will allow more complex JOINS so we can join data from one table to another on the guestID.
Passive Bot Detection & Manual Schedule Task Flagging
Has the ability to track if the visitor is a Robot or a Human and a daisy chain function (isTask()) alows you to flag an operation as a background_job.
Passive Marketing Analytics (Referrals)
For the marketing team I experimented with tracking referrals & the ability to monitor the effectiveness of campaigns.
Referral event captures have two additional options:
$internal (bool) default false
Toggle weather or not to log internal traffic on the sites, Turning this on allows you to monitor page throughput on transactions. We could use this data to visualize a journey of a human or a bot.
$bot (bool) default false
Simply ignore bots, No referral data is recorded for a bot when set to false.
Here is a result of referral capture:
I added unique guests from Transactions on the screen, The low number of Guests against the high number of referrals suggest that the same guest is revisiting the site from another search or the same search again but later in the day, The are a number of contributing reasons why a single user would be re-referred multiple times. Seeing this I could produce another copy of all the charts that use uniqueCount(guestID) to get a number of referred visitor count rather than a referred hit count.
I started an experiment to also track specific campaigns in a dedicated campaign dashboard.
How many referrals the campaign brought in and where the traffic was sent to.
There is still plenty for me to do and refine, I will come back with another update in a week.