I believe the link’s primary intention was to show you how to edit node paths in the editor for exported variables. You should replace that node with an actual Area2D node (and collision shape) in the scene tree and then place the checkpoint_area code into a script for that node.
Your earlier question about the checkpoint node - You want that node to be a child of the world to be easiest.