Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Add support for Content Groups on PV event #188
A standard feature for publishers (big and small) is having "custom groups". Typically this is allowing them to provide key-value pairs (that they define but intended to describe page-hierarchy and content types) that are sent along with the Page View event.
Services like Chartbeat, Parsely, and Google Analytics handle them and you can learn more about them:
Example in the wild:
GA documentation: Content Group
In the New York Times case they are using "Content Groups" to establish hierarchy of the article that the reader visited.
Using these they can gather insights via simple reports that show PVs, Uniques, etc against these items. It helps answer and inform on numerous question such as (just examples):
I reiterate that this is a basic and required feature for any publishers (I have worked for several and state this from experience) and would benefit non-publishers too.
I believe that is possible to do this without adding risk of adding invasive tracking - or even by adding all the options that GA allows. The purpose of this is to provide overview information and nothing specific to any one reader.
Potential ways to implement:
1. JSON-LD Tag
2. Custom META tag
This relies on JS to to look for META tag, and if found, pass on the information.
Thanks a lot, that looks great. Wonder how custom dimensions are different. But for now it seems like the content groups are not privacy invasive. As long as it can not be used for anything privacy invasive I'm happy to implement a (simple) version.