Skip to content

Commit

Permalink
Added visit-tracking and dedicated domains
Browse files Browse the repository at this point in the history
  • Loading branch information
surfbryce committed Jun 2, 2023
1 parent ce34d1b commit 1b3216e
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/Songs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ const RegisterSong = (trackId: string, trackData: SpicetifyTrack) => {

if (lyricsData === undefined) {
return (
fetch(`https://beautiful-lyrics.socials-420.workers.dev/lyrics/${recordCode}`)
fetch(`https://beautiful-lyrics.socalifornian.live/lyrics/${recordCode}`)
.then(
(response) => {
if (response.ok === false) {
Expand Down
29 changes: 29 additions & 0 deletions src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,35 @@ async function main() {
// Check for any initial elements
CheckForLiveBackgrounds()
CheckForLyricContainers()

/*
For anybody coming across this - I will always be clear and incredibly transparent about what I do
with this information.
First off - in the release this comes out in I am flat out stating that I implemented this feature.
I'm not going to hide anything.
Additionally, I am using CloudFlare - which has an analytics services that doesn't do any
fingerprinting, cookie tracking, or anything nasty. It is purely based off the request made
to their analytics-api.
I am purely using this to determine how many people are actually using my extension. My reasoning
for this is because when I first published the 2.5.0 stepping-stone release with the lyrics backend
I thought I had about maybe 100 people using the extension (since I had 44 stars). However, I was
gravely mistaken. I was recieving almost 2-3 requests a second - which is fine, I can handle that -
but I had no idea I had that many users. So, it's important to know how many people are actively
using my extension (as in actively, I mean general figure).
I apologize to anyone who may think this is invasive - but I am not doing anything with this data
and never plan to. I can't even store it. If you have an issue please contact me through the
Spicetify discord - my username is @socalifornian.
*/
{
const tracker = document.createElement('iframe')
tracker.src = "https://track.beautiful-lyrics.socalifornian.live/"
tracker.style.display = 'none'
document.body.appendChild(tracker)
}
}

export default main;

0 comments on commit 1b3216e

Please sign in to comment.