Blogs
The latest news and updates
Read More
Doctors You Can Trust.
Close to Home.

Eye Center South continues to grow our team of skilled specialists to provide world class care to our patients. Each of our clinics provide convenient access to specialized eye care, using the latest technology from one of our skilled surgeons. Visit one of our many specialists at the location nearest you for a consultation today.

World-Class Care that Feels Like Home
Schedule Your Appointment Today

    This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

    (function(cookieName, domain){ var traffic_source_COOKIE_TOKEN_SEPARATOR = ">>"; //separating between concatenated lead source var traffic_source_date_SEPARATOR = "|>"; var NONE = "(website)"; domain = domain || window.location.hostname; function getCookie(cookieName){ var name = cookieName + "="; var cookieArray = document.cookie.split(';'); //break cookie into array for(var i = 0; i >{traffic source}|>DD-MM-YY HH:MM AM/PM>> * */ /* * Uncomment currTime() in order to activate. You should also uncomment the lines in the code that call this function (all marked with a comment). If you do so, uncomment the line above them which does not employ currTime() function currTime() { var date = new Date(); var currDate = date.getDate(); var hours = date.getHours(); var minutes = date.getMinutes(); var month = date.getMonth() + 1; var year = date.getFullYear(); var ampm = hours >= 12 ? 'pm' : 'am'; hours = hours % 12; hours = hours ? hours : 12; // the hour '0' makes '12' minutes = minutes < 10 ? '0' + minutes : minutes; var strTime = traffic_source_date_SEPARATOR + currDate + '-' + month + '-' + year + ' ' + hours + ':' + minutes + ' ' + ampm + ')'; return strTime; } */ /* Checks whether a certain parameter exist in the current browser URL. If it does, it returns its name. It will receive "src" later in the main function */ function getURLParameter(param){ var pageURL = window.location.search.substring(1); //get the query string parameters without the "?" var URLVariables = pageURL.split('&'); //break the parameters and values attached together to an array for (var i = 0; i >NOT__THIS__ONE>>AND__NOT__THIS__ONE */ function getFirstTokenFromCookie(cookie){ var result = ""; var firstSeparatorIndex = cookie.indexOf(traffic_source_COOKIE_TOKEN_SEPARATOR); result = firstSeparatorIndex !== -1 ? cookie.substring(0, firstSeparatorIndex) : cookie; //if there is a separator, provide the newest value no the cookie return result; } /* Set the cookie if it doesn't exist. */ function setCookie(cookie, value){ var expires = new Date(); expires.setTime(expires.getTime() + 62208000000); //1000*60*60*24*30*24 (2 years) document.cookie = cookie + "=" + value + "; expires=" + expires.toGMTString() + "; domain=" + domain + "; path=/"; } /* Boolean, whether or not it's not NULL or Empty */ function isNotNullOrEmpty(string){ return string !== null && string !== ""; } /* Remove the protocol for the referral token */ function removeProtocol(href) { /* return href.replace(/.*?:///g, "")); */ return href.replace(/(^\w+:|^)\/\//, ''); } /* Find lead source by checking cookie, url param "src" or referrer(that order) and set new cookie traffic_source. Do this only if cookie do not exist. This value will be used for contact form. If cookie exist add url "src" param on the beginning of the cookie if it exists and it is not already at the beginning of the cookie. This way "tokens" are made in traffic_source cookie. Token separator is ">>" (see above traffic_source_COOKIE_TOKEN_SEPARATOR) */ var urlParamSRC = getURLParameter("src"); //take the SRC value if(document.cookie.indexOf(cookieName) === -1) { // if there is no cookie traffic_source set yet, check if there is an existing UTMZ campaign name. var traffic_source = ""; //reset lead source value var utmzCookie = getCookie("__utmz"); //get GA cookie var cookieCampaignName = ""; //reset lead source value if(utmzCookie != null) { var UTMSRC = "utmccn="; var start = utmzCookie.indexOf(UTMSRC); var end = utmzCookie.indexOf("|", start); if(start > -1) { if(end === -1) { end = utmzCookie.length; } cookieCampaignName = "utmz:" + utmzCookie.substring((start + UTMSRC.length), end); //get the value of the UTMZ, without the parameter name } } if(cookieCampaignName != "" && isNotNullOrEmpty(urlParamSRC)){ //if there is a campaign name AND there is SRC value traffic_source = urlParamSRC + traffic_source_COOKIE_TOKEN_SEPARATOR + cookieCampaignName; //concateane the SRC with the existing campaign name // traffic_source = urlParamSRC + currTime() + traffic_source_COOKIE_TOKEN_SEPARATOR + cookieCampaignName; // Optional: add the session time } else if(cookieCampaignName != ""){ //if there is campaign name traffic_source = cookieCampaignName; //just use it for the new cookie } else if(urlParamSRC != null) { //if there is not campaign name but we have SRC traffic_source = decodeURI(urlParamSRC); // decode URI of the SRC parameter // traffic_source = decodeURI(urlParamSRC) + currTime(); // Optional: add the session time } else if(document.referrer != ""){ //if there is not campaign, and no src, check if there is a referrer, var referrerHostName = removeProtocol(document.referrer); var GOOGLE = /www.google/; var YAHOO = /search.yahoo/; var BING = /www.bing/; if(GOOGLE.test(referrerHostName)){ traffic_source = "Google Search"; //traffic_source = "Google Search" + currTime(); // + Optional: Add the current session time. Choose one of them. } else if(YAHOO.test(referrerHostName)){ traffic_source = "Yahoo Search"; //traffic_source = "Yahoo Search" + currTime(); } else if(BING.test(referrerHostName)){ traffic_source = "Bing Search"; //traffic_source = "Bing Search" + currTime(); } else { traffic_source = referrerHostName; //traffic_source = referrerHostName + currTime(); } } else { traffic_source = NONE; } setCookie(cookieName, traffic_source); //set the cookie } else if(isNotNullOrEmpty(urlParamSRC)){ //if there is a cookie, add the SRC to the cookie, unless the same src already exists as the first token. var firstToken = getFirstTokenFromCookie(getCookie(cookieName)); if(firstToken !== "" && urlParamSRC !== firstToken) { var newTrafficSourceCookie = urlParamSRC + traffic_source_COOKIE_TOKEN_SEPARATOR + getCookie(cookieName); //concetenate new SRC with old cookie values // var newTrafficSourceCookie = urlParamSRC + currTime() + traffic_source_COOKIE_TOKEN_SEPARATOR + getCookie(cookieName); // Optional: add the time of current session setCookie(cookieName, newTrafficSourceCookie); } } })("traffic_source", ".eyecentersouth.net"); function getCookie(name) { //Gets the value of traffic_source var value = "; " + document.cookie; var parts = value.split("; " + name + "="); if (parts.length == 2) return parts.pop().split(";").shift(); } function addTrafficSourceToForm(){ //injects the traffic_source value to the form jQuery("input[name='lead_source']").each(function() { this.value = getCookie("traffic_source"); console.log("Executing"); }); } addTrafficSourceToForm() //initates the process jQuery(document).ready(function() { document.addEventListener( 'wpcf7mailsent', function( event ) { if ( '804' == event.detail.contactFormId ) { location.replace('/schedule-an-appointment-thank-you/'); } if ( '396' == event.detail.contactFormId ) { location.replace('/schedule-your-appointment-today-thank-you/'); } if ( '397' == event.detail.contactFormId ) { location.replace('/contact-us-thank-you/'); } if ( '19083' == event.detail.contactFormId ) { location.replace('/refer-a-patient-thank-you/'); } if ( '20113' == event.detail.contactFormId ) { let output = document.getElementById("wpcf7-f20113-p20114-o1").getElementsByClassName('wpcf7-response-output')[0]; output.classList.add("success"); //location.replace('/request-for-resources-thank-you/'); } if ( '20128' == event.detail.contactFormId ) { location.replace('/request-a-cataract-patient-packet-thank-you/'); } if ( '20135' == event.detail.contactFormId ) { location.replace('/request-a-lasik-patient-packet-thank-you/'); } if ( '20122' == event.detail.contactFormId ) { location.replace('/request-for-physician-bio-cards-thank-you/'); } if ( '20749' == event.detail.contactFormId ) { location.replace('/sign-up-newsletter-thank-you/'); } }, false ); }); jQuery( function() { jQuery( "#tabs" ).tabs(); } ); (function(d){ var s = d.createElement("script"); /* uncomment the following line to override default position*/ s.setAttribute("data-position", 5); /* uncomment the following line to override default size (values: small, large)*/ /* s.setAttribute("data-size", "large");*/ /* uncomment the following line to override default language (e.g., fr, de, es, he, nl, etc.)*/ /* s.setAttribute("data-language", "null");*/ /* uncomment the following line to override color set via widget (e.g., #053f67)*/ /* s.setAttribute("data-color", "#2d68ff");*/ /* uncomment the following line to override type set via widget (1=person, 2=chair, 3=eye, 4=text)*/ /* s.setAttribute("data-type", "1");*/ /* s.setAttribute("data-statement_text:", "Our Accessibility Statement");*/ /* s.setAttribute("data-statement_url", "http://www.example.com/accessibility";*/ /* uncomment the following line to override support on mobile devices*/ /* s.setAttribute("data-mobile", true);*/ /* uncomment the following line to set custom trigger action for accessibility menu*/ /* s.setAttribute("data-trigger", "triggerId")*/ s.setAttribute("data-account", "fo23ymRqpE"); s.setAttribute("src", "https://cdn.userway.org/widget.js"); (d.body || d.head).appendChild(s);})(document) Please ensure Javascript is enabled for purposes of website accessibility function showReview() { var dots = document.getElementById("reviewDots"); var moreText = document.getElementById("reviewMore"); var btnText = document.getElementById("readmoreBtn"); if (dots.style.display === "none") { dots.style.display = "inline"; btnText.innerHTML = "Read more"; moreText.style.display = "none"; } else { dots.style.display = "none"; btnText.innerHTML = "Read less"; moreText.style.display = "inline"; } } function showsecondReview() { var dots = document.getElementById("reviewDots2"); var moreText = document.getElementById("reviewMore2"); var btnText = document.getElementById("readmoreBtn2"); if (dots.style.display === "none") { dots.style.display = "inline"; btnText.innerHTML = "Read more"; moreText.style.display = "none"; } else { dots.style.display = "none"; btnText.innerHTML = "Read less"; moreText.style.display = "inline"; } } // Get the current path part of the URL const currentPath = window.location.pathname; // Define the path to exclude const excludedPath = '/resources/patient-forms/'; // Check if the current path does NOT match the excluded path if (currentPath !== excludedPath && currentPath !== excludedPath.slice(0, -1)) { // Function to dynamically create and append a script tag const loadScript = (src) => { const script = document.createElement('script'); script.type = 'text/javascript'; script.src = src; document.body.appendChild(script); }; // Load the two tracking scripts loadScript('//tag.brandcdn.com/autoscript/eyecentersouth_vfhwbk1fmuvheja9/EyeCenterSouth.js'); loadScript('//tag.brandcdn.com/autoscript/eyecentersouth_vfdwvk1vnxfaekk9/ECS_Promo_.js'); }