Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(download): add events to the external links #2614

Merged
merged 2 commits into from
Aug 19, 2024

Conversation

wescopeland
Copy link
Member

At some point, I'd like to redesign this page. However, given that it gets a lot of traffic, we should ensure any redesign doesn't hurt the page's current activity.

Now that we have analytics (see here), we can start measuring how often the buttons on this page are clicked in order to run a redesign through an A/B test later. Ideally, a redesign will either perform the same or better than the current page.

How to test this PR:

  • Open your browser's network tab.
  • Filter by Fetch/XHR.
  • When clicking any of the links on the page, you should see events being emitted:

Screenshot 2024-08-15 at 8 59 25 AM

@wescopeland wescopeland requested a review from a team August 15, 2024 13:00
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes are so that we can see events being emitted while doing local development.

<x-link
href="{{ $emulator['download_url'] }}"
target="_blank"
class="plausible-event-name=Download+Link+Click plausible-event-emulator={{ $emulator['handle'] }}"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Events are attached via classnames, see here and here.

@@ -194,6 +194,7 @@
'handle' => 'Dolphin',
'active' => true,
'link' => 'https://wiki.dolphin-emu.org/index.php?title=Main_Page',
'description' => '<strong>NOTE:</strong> Requires a development version of 2407-68 or higher.',
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've already updated this on the server.

@wescopeland wescopeland merged commit e88b2d8 into RetroAchievements:master Aug 19, 2024
5 checks passed
@wescopeland wescopeland deleted the download-analytics branch August 19, 2024 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants