To configure Draytek to detect a failover using ping use the following:
Change the WAN Connection Detection of WAN2 to Ping DetectGo to WAN>> Internet Access>>WAN2 and set this to Ping detect.
Set the primary ping to 8.8.8.8, and 2nd to 8.8.4.4
Ping interval=1
Ping retries=5