GSS-Cogs / dd-cms

A data-driven content management system prototype, based on Plone/Volto and data blocks
1 stars 0 forks source link

Issues with HotJar #889

Open edd-harvey opened 1 year ago

mikeAdamss commented 1 year ago

What is this

here's an issue where visit to the production websites are no longer being tracked by hotjar. This did work at some point previously.

We're uncertain on the exact date this change of behaviour occurred.

What to do

There are two potential aspects of this that need to be explored.

Infrastructure

@mikeAdamss

tracking codes are being provided to the apps running on the cluster and have not changed ....but ... there are some undocumented changes to tracking codes in this PR: https://github.com/GSS-Cogs/idpd-platform/pull/79/files

given we used to work in a less diciplined way it's very possible that these codes were applied to the old cluster prior to the PR and are (potentially) the reason the tracking broke (as even if correct they would have been overwritten on the next IAC apply).

Note - I have done the last point in passing but its quite technical and undocumented, so some crossed wires is possible, this is principally an exercise in permanently ruling this out. Once we figure out whatever it was that was done previously, writing it down would be a good idea.

Frontend/Volto

If/when deployed tracking codes are confirmed correct...

Then it's a frontend issue, as (its implied but not documented) that Volto should somehow be picking up theses codes to enabled hotjar tracking.

We'll need to figure out how this functionality was implemented and why it's no longer working and fix it.

Note - if you get some temporary tracking codes from John for say https://climate-change.staging.ukstats.dev and let platform (Mike) know we should be able to debug this in the staging environment.

Acceptance Criteria

mikeAdamss commented 1 year ago

mike to pick up initial work RE the undocumented tracking codes.

mikeAdamss commented 1 year ago

https://github.com/GSS-Cogs/dd-cms/blob/main/volto/src/addons/volto-climatechange-elements/src/customizations/volto/components/theme/Header/Analytics.jsx

mikeAdamss commented 1 year ago

codes are confirmed correct as deployed - over to front end for remaining parts of task.