Match Coder PSA Match Coder

Match Coder guide

How to code a match, line up imported tags and send the result to PSA Hub. Written for analysts, with short parts for staff and the admin at the end.

1What's new in this version

October 2026

2Get the App

Open coder.psanalytics.piqa.my. The Match Coder works there in a browser tab as it is, and you can install it as an app with its own window and icon.

Chrome or Edge (Windows, Mac)

Safari on a Mac (macOS Sonoma or newer)

  1. In Safari's menu bar choose File, then Add to Dock…
  2. Keep the name PSA Match Coder and press Add.
  3. Open PSA Match Coder from the Dock or Launchpad. It opens on your matches in a window of its own.

The card's Add to Dock button shows these steps.

Phones and tablets

On an iPhone or iPad, in Safari: tap Share, scroll down, tap Add to Home Screen, then Add. On Android, Chrome offers Install.

The App's match list. The top bar has Install app, the green 'Saved on this device, works offline' pill, the analyst's name, the Guide and Settings buttons and the avatar. Below are the cards 'Welcome to PSA Match Coder' with 'Move tags from the browser' and 'Get PSA Match Coder as an app' with Install, then the three steps: pick a match, pick the source, pick the coding style.
The App's match list on first open: the welcome card (moving tags from the browser) and the install card.

Moving tags from the Hub's coder into the App

The App keeps its own tags, apart from the Match Coder in a browser tab at psanalytics.piqa.my. Tags you coded there stay there until you move them across with a backup file. Nothing is deleted on either side.

  1. In the browser, open psanalytics.piqa.my, Match Coder, then Download backup above its list (or, in any match, Backup > Download backup).
  2. In the App, press Move tags from the browser on the welcome card and pick that file (it is called psahub-backup- and the date).
  3. Check what is in it, match by match, and press Move … tags in. Possible doubles are flagged, never dropped.

If the App is still empty it asks Is this backup from this laptop? Answer Yes to carry on as that laptop (its half markers and videos stay lined up), or No, it's a colleague's to merge it as another tagger's. Generated tags in the file stay behind: the App shows only tags someone coded. Later backups go in the same way with Merge a backup on the match list or in a match's Backup menu.

Updates

An installed App updates itself: it looks for a new version each time it opens and when you come back to it, and switches to it by itself. If you are coding a match at that moment it waits and says A new version of the Match Coder is ready: reload when you finish coding. A new icon or name can take up to a day to show; removing the App and installing it again shows it at once. Send or back up your tags before you remove it: removing an App can delete what it keeps (Chrome asks whether to clear its data, and an App in the Dock takes its data with it).

3Sign in

Clubs, licences and laptops have a guide of their own: the Accounts and licences guide.

Accounts are made by the admin; there is no sign-up and no reset by email. Your first password is a temporary one from the admin: at your first sign-in you choose your own (at least 10 characters). Forgot it? The admin resets it.

The App's sign-in card: Username, Password, the box 'Keep me signed in on this computer', the Sign in button, the line 'Forgot it? Your admin resets it in the Hub. Once signed in, coding works with no internet.' and the button 'Not now: code on this laptop and send later'.
The App's sign-in card.

What each role can do

AnalystStaffAdmin
Code matches on the laptopYesYesYes
Send to HubYesNoYes
Mark a match finalYesNoYes
Edit lineupsYesYesYes
Edit squadsNoYesYes
See final matches that are staff onlyYesYesYes
Make a match publicNoNoYes
Users: add, roles, passwordsNoNoYes

The server checks the same on every save.

4Coding a match

The match list

Live and today come first, then upcoming, then results (older days fold away), then the matches never played. All, Tagged and Not tagged filter it, and Search a team finds one. Each row says how far it is: Not tagged yet, the video and the number tagged, or its send state (Sent, Waiting to send, Final · sent). Pick a match to open it.

On a laptop the coder is one screen: a slim bar on top, the working row, and a dock under it with a tab per list. The back arrow returns to the list. The bar holds the source, the three coding screens, the screen's own control, the tagger's name (click it to change it), the saved count, Send to Hub (App), Layout, Backup and Versions.

The video source

The source chip in the bar (it says YouTube link to begin with) opens the menu:

The coder with the source menu open under the source chip: YouTube link, Blind coding, Camera / IP camera, Video file and Video with its tags, each with a line saying what it is.
The source menu.

The button with the home team's short name and an arrow (for example KBJBC →) says which way the home team attack in the 1st half; click it to turn it round. The 2nd half turns by itself.

The half markers

Under the video: KO, 1st half, Half-time, 2nd half, Full time. The next marker to press is the button (lime); the others show where the match is. Press KO at the kick-off, Half-time when the first half ends, 2nd half at the restart and Full time at the end. ↺ undoes the last marker. Every tag carries its half.

The three coding screens

The switch in the bar picks the screen: Live coding (Sportscode style, team level, during the match), Player coding (Wyscout style, every touch per player, after the match; it feeds the Team Report) and Quick tags (FC Python style).

Live coding

The code window Match day (MD) has the names, keys and colours of the Sportscode window. On the left the video, the half markers and the events (newest first: click goes there, double-click edits, × deletes the press); in the middle the press log and the pad; on the right the live stats.

Live coding with a video file: the video, its controls and the half markers on the left, the Match day (MD) pad in the middle with the last presses above it, the live stats on the right (possession, possession by third, every 5 minutes, the table of shots, goals and other figures), and the timeline at the bottom with rows ATT ZONE, ATTACK, DEFENCE, KO and MID ZONE and a red playhead.
Live coding: video and half markers, pad, live stats, and the timeline in the dock.

Player coding

Lineups first (Set lineups): numbers work from the squad without them, but minutes, positions and subs need them. Then, for each touch, type the shirt number and click the pitch where it happened. The order of the touches makes the passes.

Player coding: the video and the events list on the left (time, team, player, event), the pitch in the middle with four numbered touches joined by lines, the box 'Shot by #4: click where it went' with Goal G and Blocked B under it, and the keys on the right in groups Ball, Duel, With, Set piece and Stop.
Player coding: a number, then a click on the pitch. Here a shot waits for where it went.

Quick tags

Pick the player (from the lineup, Tab switches team), the event (1 to 8: Pass, Shot, Shot assist, Dribble, Cross, Tackle, Interception, Foul), then the pitch: a click is a point, a drag goes from start to end. Edit tags and + Add tag change the events. Pitch ▾ shows the last 3, the last 10, all, or the shots. X and Y are kept in FC Python's 0 to 100, so its CSV goes in and out unchanged.

Quick tags: the video with a scrubber and the events table (Time, Team, Player, Event, X, Y, X2, Y2) on the left, the team switch, the players from the lineup and the eight events in the middle, and the pitch on the right with the last three events, the newest labelled '#4 Shot 88,55'.
Quick tags: player, event, then the pitch.

The timeline

In the dock's Timeline tab: a row per code in the buttons' colours, bars with their labels, short codes as numbered boxes and a red playhead the view follows. The zoom menu goes from 30 s to the whole match; the wheel zooms where it points, a drag pans. Click a box to play it, double-click to edit it. The other tabs: Matrix, Clips and Report (Live coding); Tags, Report and Clips (Player coding). Clicking the open tab again folds the dock.

Clips, Versions and Backup

5A second screen

On a laptop or bigger, with a mouse, the pad and the timeline can each have a window of their own, for a second screen as in Sportscode: video in one window, pad in another, timeline in a third.

The coder with the pad and the timeline in windows of their own: the video is bigger, the pad's place says 'The pad is in its own window, presses there show here' with Bring back, and the dock's tab says 'The timeline is in its own window' with Bring back.
The coder with the pad and the timeline popped out: the video takes the room.
The pad window: the match, 'Live coding pad', the video time and half with Paused, 'Linked to the coder', the tagger and Bring back on top, the last presses and Undo last press under it, and the Match day (MD) buttons filling the window.
The pad in its own window.

The video's own window

In Safari

6Imports

Sportscode XML

In Live coding, the timeline tab's More ▾ > Import Sportscode XML. The dialog lists the file's rows and counts and offers two ways:

The dialog Import Sportscode XML: the file name with 1,069 instances from 0:01:15 to 0:51:15 in 28 rows, the rows as coloured chips with their counts, the choices 'As a timeline of its own' and 'Into the live codes', a note about Align to playhead, and Cancel and Import.
Importing a Sportscode XML.

FC Python CSV

Import CSV in Quick tags, or Import FC Python CSV in Player coding's Tags tab or on the match list (it asks which match). Match each player slot in the file (H1 to H15, A1 to A15) to a player; the choice is remembered for the match. If the match has tags already, choose Add to them or Replace them.

Video with its tags

For a match coded elsewhere: the source menu's Video with its tags opens Import a coded match. Choose the video file and the tag file (Sportscode XML or FC Python CSV), then:

Import video and tags makes the video the source and the tags a timeline of their own: an XML in Live coding, a CSV in Player coding (or Quick tags when that screen is open).

Align to playhead

A timeline that is not lined up says Not lined up with this video yet and doesn't count. Open the match's video, then press Align to playhead on the timeline's bar:

  1. Pick a tag in that timeline (in Player coding and Quick tags, in the events under the video).
  2. Play the video to where that moment happens.
  3. Press Align. The bar shows how far all the tags move before you press it.

In Live coding L starts lining up the timeline shown and, pressed again, aligns (unless the code window uses L itself). Once lined up the bar says Lined up: all … tags moved by …, with Undo (back as it was before lining up) and Align again.

Lining up in Live coding: over the timeline the steps 'Picked ATT ZONE at 0:05:57 in the file', 'Video at 00:05' and '3 Press Align', the note 'moves all 1069 tags by -05:51', and Cancel and Align. Over the timeline the switch shows Live codes 21 and the imported timeline with 'Not lined up'.
Lining up: a tag picked, the video at the moment it happens, then Align.

Tags before the start of the video; Leave out of stats

The ⋯ menu and the switch

A lined-up timeline: the bar says 'Lined up: all 1069 tags moved by -05:51, ATT ZONE now at 00:05' and '92 tags fall before the start of the video: not shown, not counted', with the box Leave out of stats, Undo, Align again and the open ⋯ menu with 'Move into the live codes' and 'Remove this timeline'.
Lined up, with Leave out of stats and the ⋯ menu.

Exports

Export Sportscode XML (Live coding, More ▾) and Export CSV leave out what doesn't count: imported tags not lined up or left out of the stats. The message after the export says how many.

7Send to Hub

In the App, signed in as an analyst (or the admin). Nothing leaves the laptop until you press Send to Hub in a match's bar. From then on that match sends by itself: a few seconds after each change, and again whenever the connection comes back.

The send states

The bar showsMeaning
Send to HubNot sent yet. Press it to start.
Waiting to send · 4 and SendChanges wait to go out; hover for why (no connection, sign in to send, PSA Hub closed for now).
Sending...On its way.
Sent · 21:04Everything is on the Hub, last sent at that time.
Not sent · tries again and Try againIt didn't go through; it tries again by itself.
Final · sentMarked final, and everything is sent.
… not acceptedThe Hub refused some rows; hover to see why. They aren't sent again until they change.

Click the state to open the send menu: Send now, Mark match final... (or Take final back) and Get the Hub's copy (the other taggers' tags of the match, as the Hub has them). When matches wait to send, the App's top bar says how many and offers Send all.

The send menu open under the black 'Final · sent' chip: 'Send to the Hub', 'Everything is sent, last at 21:04', the buttons Send now, Take final back and Get the Hub's copy, and the lines 'Final, staff only until it is made public. Fixes still go out: send again and the Hub updates.' and 'Tags are saved here first. With no connection they wait and go out by themselves when it is back.'
The send menu of a match marked final.

Offline

Tags are saved on the laptop first. With no connection the match shows Waiting to send and goes out by itself when the connection is back; you don't need to keep the match open, only the App.

Two analysts on one match

Mark final and Take final back

Mark match final... (it needs the match's tags sent first) asks Mark this match final? and lists what the Hub will use the tags for. Send and mark final sends, then marks. You can still fix tags after: send again and the Hub updates. Take final back is for the analyst who marked it, from the same laptop, while the match isn't public; the admin can take it back at any time. The Hub then uses its usual figures for the match again.

What the Hub shows, and to whom

A public match shows its tags to everyone, signed in or not: their notes, labels and code names, and the video file's name (only the tagger's name stays hidden). Keep anything you wouldn't publish out of the notes, or leave the match staff only.

8For staff

Sign in on the Hub with the avatar at the top right. The editing buttons then show on the normal pages (visitors never see them):

The server checks every save. A save made offline waits and is checked when the connection is back.

9For the admin

A club's admin also looks after the club's laptops and sees its licence: see the Accounts and licences guide.

Users

On the Hub, the avatar, then Users:

The Users dialog: a table of names with their usernames, a role menu, the last sign-in date and the buttons Reset password and Turn off (your own row says You), and under it the form Add a user with Username, Name, Role and Add.
Users, on the Hub.

Making a match public

On the match page of a final match, next to Coded by PSA · final, turn on Make public. Visitors then see the coded figures; turn it off and they see the usual figures again.

Before you make a match public: everyone can then see its tags, with their notes, labels and code names, and the video file's name (not the tagger's name). If a note shouldn't be published, ask the analyst to change it and send again, or leave the match staff only.

A Hub match page signed in as the admin: the score, Full time, and under it 'Coded by PSA · final', the chip 'Staff only' and the switch 'Make public: visitors see the usual figures'. Below, the lineups with Edit lineups, and the match stats.
A final match on the Hub, staff only, with the admin's Make public switch.

10Keyboard shortcuts

On a Mac, Cmd works where it says Ctrl. Keys don't act while you type in a box.

KeyWhat it does
Every screen
SpacePlay or pause
← →5 seconds back or on (with Shift: 1 second)
Ctrl ZUndo the last press or tag
Live coding (Match day (MD))
1 2ATTACK, DEFENCE
Q W EDEF, MID, ATT ZONE (with Shift: OPP DEF, MID, ATT)
3 4 5BUILD UP, PROGRESSION, PRESSING
R 6 G FLOST BALL, GOAL, ON, OFF
Y TSAVE, FOUL
Z X · C VCorners LEFT, RIGHT · Free kick NEAR, WIDE
A S DPenetrate LEFT, MIDDLE, RIGHT
B NYELLOW, RED card
DeleteDelete the picked code
LLine up the imported timeline shown; again to Align
Player coding
0 to 9Shirt number (then click the pitch); Backspace takes off a digit
Tab · Enter · EscOther team · same player again · clear
S C T M E K VShot, cross, through ball, smart pass, dribble, clearance, save
D A L X Z WDuel: ground, aerial, loose ball, lost, sliding, block
H · PHead · set piece (cycles)
Shift + C F D G T PCorner, free kick, direct free kick, goal kick, throw-in, penalty
F Y R O UFoul, yellow, red, offside, ball out
G BAfter a shot: goal, blocked
Quick tags
1 to 8Pass, Shot, Shot assist, Dribble, Cross, Tackle, Interception, Foul
TabOther team

A code window you edit can have other keys: each button shows its own.

11When something is odd

Tags live on this device until they are sent. The browser and the App, and each browser on the laptop, keep their own. Keep a backup: Backup > Keep a backup file (Chrome and Edge), or Download backup after each match.

Clearing the browser's site data (history and website data, cookies and site data) for psanalytics.piqa.my or coder.psanalytics.piqa.my deletes the tags not yet sent, and so does removing the site's data in the browser's settings. Send or back up first. A private window keeps nothing after it closes.

PSA Match Coder · Back to the top