This is a one off script that will comment any google analytics code within existing visualisations.
utilises the existing dp-zebedee-utils packages to create a collection and then update content within a collection. This way we can update the content and use the preview functionality before changing any published content.
defines a map of replacements to make in each HTML file it finds.
allows a reverse_changes flag to be passed in, which will reverse the changes, i.e. uncomment the GA code in visualisations.
migrate project to use go modules
move applications / scripts under the cmd directory to separate them
from the code packages
This is a one off script that will comment any google analytics code within existing visualisations.
utilises the existing dp-zebedee-utils packages to create a collection and then update content within a collection. This way we can update the content and use the preview functionality before changing any published content.
defines a map of replacements to make in each HTML file it finds.
allows a
reverse_changes
flag to be passed in, which will reverse the changes, i.e. uncomment the GA code in visualisations.migrate project to use go modules
move applications / scripts under the cmd directory to separate them from the code packages