STA Project: Google Analytics for GRAV sites
Started on: May 3, 2023
Completed on: May 4, 2023
Description: This project is a continuation of previous work on Google Analytics area. I was tasked to linked Google Analytics Tag into the Grav sites in order to analyze and track data. This is something new that I get to experiment and try out.
First thing first, I looked up different plug-ins. There are two available plugins that help with this task. The names are pretty similar to each other. Upon examining the version number to see which one is recently updated, I went with one of the plugin created by John Linhart. However, this plugin doesn’t transfer the data to the GA account although the tracking code is added to the website. Therefore, I went with the other one. It worked out well, and the all of the tracking data successfully displayed onto the GA-4 account. At a lot of points in this experimenting process, I was frustrated especially at first the data was not displayed even though everything has been set up correctly (the tracking code is added onto the main page of the website).
In the worst case scenario, I would have went with the basic approach that is built upon the fundamental understanding of linking GA account to a website. The approach consists of attaching the JS code for GA into each page of the site. With this way of doing, I need to find a place where I put all of the code onto the website.
STA Project: Google Analytics for Multi-Site
Started on: May 4, 2023
Completed on: May 4, 2023
Description: This project is another project where I need to install GA-4 onto a website particularly all of sites in the multi-site. In undertaking this project, I need to examine the structure of the multi-site and all of the small sites within it. Then, I need to see how the Site Kit plugin can install onto the multi-site and link to the GA-4 account. It turns out that the Site Kit cannot be set up with each individual site but only to the main site. Moreover, I noticed that there is already GA account linked to this website, but there is no SiteKit plugin. It means that someone has already hooked the GA account to the website by other plugins. After reporting this to Stacy, Stacy scrolled through the list of plugins and found that there was one which is called LAITS Analytics. The funny part is that it was created by none other than the man himself Stacy. After looking at the plugin, the task becomes much more clear in which I just need to add GA-4 JS code upon the UA code.