Skip to content

Add Google Analytics + CookieYes to play.threadbare.game #2841

Description

@wjt

@Roddsl has asked us to add Google Analytics to play.threadbare.game:

What I want tagged is just index.html: pageviews, new vs returning, and country/location. Plus one click event on the "Play Threadbare" element (it's a generic div, so whoever wires this up will need to add an onclick handler or a data attribute to hook into, so we can track the event).

Given we already run GA and CookieYes everywhere else for all our websites, can we just drop the same GA4 tag and CookieYes config we use on access.endlessstudios.com onto this one file? That reuses the existing consent banner, privacy policy.

It is not so simple as "just index.html" because there is in fact more than one index.html on play.threadbare.game:

Also, we have to consider forks of endlessm/threadbare, e.g. https://gamelab6-utp-grupo5-equipo4.github.io/threadbare/. I hope that we can all agree that we do not want to add Google Analytics to learners' forks.

So my proposal is that we add the necessary tags to the pages in the bulleted list above. How to do that is another question that I will discuss in the comments.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions