Does anyone know the script I can use to pull the root domain of the url the user is on?
I need this for PPV. So for example, a user is on amazon.com, then when my lander pops up, I need it to say, "congrats amazon.com user." If the user is on an extended url, i.e. amazon.com/blah.blah, I'd still only like 'amazon.com' to show on my lander.
Anyone have that kind of script lying around?
http://stmforum.com/forum/showthread.php?9153-Target-Trimming-to-Root-Domain
http://stmforum.com/forum/showthread.php?7956-Remove-www-and-and-from-Targets