When connecting the SmartLogger to the Internet, do I have to connect the Ethernet cable to the LAN or to the WAN port.

Yes - to connect to the Internet, the Ethernet cable must be connected to the WAN port.