In Canada, stalking is defined under a general heading of Criminal Harassment.
The Canadian Criminal Code [ Section 264. Criminal Harassment (2) ] prohibits the following conduct:
(a) repeatedly following from place to place the other person or anyone known to them;
(b) repeatedly communicating with, either directly or indirectly, the other person or anyone known to them;
(c) besetting or watching the dwelling-house, or place where the other person, or anyone known to them, resides, works, carries on business or happens to be; or
(d) engaging in threatening conduct directed at the other person or any member of their family.
and punishes it with imprisonment for a term not exceeding five years. There is no mention in Canadian Law of electronic harassment or stalking, although it is possible to apply the statutes above to cyberspace.
You can read about Canada's stalking laws and the statutes themselves online.