Closed twinlensreflex closed 5 years ago
After discussion with @jimjohnsonrollings, we have come to the conclusion that because we have no way of getting the ATI Producer or Chapter as of yet, the section
property will be formatted as follows for the time being:
News, News - ART
(for an article on the News service)
Persian, Persian - ART
(for an article on the Persian service)
_sf_async_config.title
can be pulled from https://github.com/bbc/simorgh/blob/30d4a44651d93e1881d368c5bbdb45af88e49564/src/app/lib/analyticsUtils/article.js#L28-L29
Is your feature request related to a problem? Please describe. Chartbeat - is an analytics tool which allows access to real time information about articles (how many people reading, engagements with)
We need to pass specific parameters to Chartbeat
Describe the solution you'd like A good place for a helper file to generate these values would be src/app/lib/analyticsUtils and a good file name could be
chartbeat.js
. We want to export a value for each entry in the table above. Integrating with Chartbeat will be in another ticket. We want the utilities to be self contained and not rely on context so anything that might be required from those should be expected as parameters. This means they will be easier to test.Note that the referrer url implementation may be similar to that for ATI here: https://github.com/bbc/simorgh/issues/1972
Before picking up this ticket - make sure you have chartbeat login details - contact @jimjohnsonrollings for access & a quick intro to how to use Chartbeat.
Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.
Testing notes Since it won't be integrated into the article yet, unit tests should be sufficient.
Dev insight: Unit tests will be sufficient as these are just helper functions.
Additional context Add any other context or screenshots about the feature request here.