Please click here to view my online Music Player.
What is web/Google Analytics?
Using web analytics on your website is a way to track a range of user interactions such as button clicks and page views. These findings are converted into useful data to be viewed as plain numerical information or, in a more visual form, charts and graphs. Gathering this type of data from a website can be extremely helpful to manage many different aspects such as fixing bugs, figure out gaps in the market and improving usability. The list is plentiful and these tools, if utilised correctly, can greatly benefit the welfare of a business. Google Analytics is a free online service, provided by Google, for users with a Google account to easily set up tracking on their website in just a few clicks. Users need access to their websites HTML and/or JS file to input the tracking script including their tracking ID. Out of all of the analytics services available online, Google Analytics is the most commonly used.
Music Player
The Code
The code in this project is mostly mirrored from the last, however, there are some main elements I have changed to give my new website more functionality. For example, with the use of extra jQuery commands, I was able to add smooth toggles and add dialogue boxes. To start with, I added buttons to the playlists to ‘Show’ and ‘Hide’ each one so when the site is loaded and all the playlists are hidden, the site looks more compact and tidy. Another reason for adding the buttons was because I wanted the artwork to be big enough to view comfortably when all 3 rows of 6 images were displayed, amounting to a total of 18, there were too many options being displayed at once. By being able to show and hide each genres playlist, I could keep the size without compromising the minimal feel I had created with the Bulma framework. Here is the relevant HTML:
<h1 class="title">Chill.</h1>
<button id="showchill" class="button is-danger is-inverted">Show</button>
<button id="hidechill" class="button is-danger is-inverted">Hide</button>
$("#hidechill").click(function () {
sendTrackingEvent ("Hide playlist", "Chill");
$("#chill").hide("slow", function () {
});
});
$("#showchill").click(function () {
sendTrackingEvent ("Show playlist", "Chill");
$("#chill").show("slow", function () {
});
});
<!-- Global site tag (gtag.js) - Google Analytics -->
<script>
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date(); a = s.createElement(o),
m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
ga('create', 'UA-110585075-2', 'auto');
ga('send', 'pageview');
</script>
functions endTrackingEvent(action, label) {
ga("send", "event", "Music Player", action, label);
}
The Results
Audience Overview
The audience overview feature in Google Analytics is used to track general interaction with the website. The results show that there were 47 users who visited the site in total and 42 of them are new. The five ‘users’ who have visited prior could be accounted for as classmates logging on again from a computer they previously used to view it or my prior testing on other devices. 68 sessions are the amount of times users interacted with my website for 30 minutes or less without closing the page. The time frame used to measure this can be altered but 30 minutes is the default for Google Analytics. A total of 139 page views is the number of times my website was logged on to. In this case, the bounce rate of my website is irrelevant because there is only one page to view.
Browser & OS/Channels/Devices
The most used browser to view my website on was the in-app mobile Safari browser and I think this is due to my advertisement on social media. If a user is using an iPhone and clicks the link to my website, it will automatically open the browser in Apple’s default browser, Safari. This can be cross-referenced with data in the Channels section, where 25 users opened my website from Facebook and three users from Instagram. This also relates back to the results about Devices, where the top three mobile devices used are all iPhones. Additionally, iPhone features 6/10 times on my device list so it is obviously a popular phone among my target demographic. All of this can be applied to Android Webview being the third most used browser because the rest of the devices in the top ten run Android operating systems.
Engagement
The engagement statistics show that most of my users either visited my site for 0-10 seconds, 31-60 seconds or 181-600 seconds. As my site is a music player, I will be analysing this data in the form of song length. The average song length is around 180 seconds (3 minutes). For people to visit for only 0-10 seconds, this means they easily got bored and left the page almost immediately. 31-60 second visits suggests that people pressed a few buttons, listened to part of one song or smaller parts of multiple songs and exited the page. Lastly, 181-600 seconds means that these users were on my page for the duration of anywhere between 3-10 songs. This is a great turn out because it means that my music player was easy to navigate and people were able to listen to whatever song they wanted in continuation.
Location
Due to my online outreach, my website was able to be viewed by my friends in other countries. Over the years, I have kept in contact with people I have networked with who either live in another country, have moved there or been travelling at the time of these results. of course, the top spot was taken by the UK as the majority of my contacts reside here but I am impressed at the other countries it has reached. If we look into a more precise location data set then we can break down where in the UK my website was viewed. The most views coming from Norwich is not a surprise because my classmates and I were all testing each other out. I was surprised by the second most popular UK location being in London because I didn’t think I knew a lot of people who live there, as opposed to Bury St Edmunds, my hometown, where all my friends live. Having said this, I did tell some of my contacts about this in the middle of the day so if they logged on from their mobile device and were at work, their location would register as elsewhere.
Conclusion
In conclusion, my website reached a large enough audience for the amount of advertising I allocated to it. I am pleased that I used Bulma to develop my site because of the mobile popularity it had. This was an insightful and enjoyable start to Google Analytics and I have only just scratched the surface. I look forward to integrating it into my fututre projects.




