I don't think you can "hide" something somewhere in the device, besides, if (and this is extreme of course) someone resets their phone, all data will be erased so can install your trial again. To do something like you want, you could connect to your website (if you have one) and check for a counter, you can see an example
HERE