How do I create an autologin script for SmarterStats?
The following article explains how to create an autologin script that will automatically log you into your SmarterStats account when you click on a link. This script can be added to a new or existing page in your website.
To create the autologin script, please follow these steps:
- Using a text editor, open the page where you will add the autologin script.
- Enter the following lines of code:
- Save your work and close the text editor.
<SCRIPT LANGUAGE= "JavaScript">
function GoToStats() {
document.statsform.submit();
}
</SCRIPT>
<body>
<form name= "statsform" action= "http://smarterstats#.safesecureweb.com/login.aspx" method= "post">
<input type= "hidden" name= "shortcutLink" value= "autologin" id= "shortcutLink">
<input type= "hidden" name= "txtSiteID" id= "txtSiteID" value= "siteID or domain name">
<input type= "hidden" name= "txtUser" id= "txtUser" value= "username">
<input type= "hidden" name= "txtPass" id= "txtPass" value= "password">
</form>
<p><a href= "JavaScript:GoToStats()"> See Your Stats</a></p>