Erik Levin
Premier Real Estate Agent in Nashville, TN
Search for your next home.
View current listings
document.addEventListener('DOMContentLoaded', function() {
var realScoutWidget = document.querySelector('.realscout-listings agent');
if (realScoutWidget) {
realScoutWidget.addEventListener('click', function(event) {
var clickedElement = event.target.closest('a');
if (clickedElement) {
modifyHrefForUTM(clickedElement);
}
});
}
});
function modifyHrefForUTM(element) {
var originalUrl = element.href;
var utmParameters = '?utm_source=eriklevin.com&utm_medium=referral&utm_campaign=RealScoutWidget';
if (originalUrl) {
// Check if the URL already has parameters
if (originalUrl.includes('?')) {
// Append UTM parameters without '?' if URL already has parameters
element.href = originalUrl + '&' + utmParameters.replace('?', '&');
} else {
element.href = originalUrl + utmParameters;
}
}
}
Testimonials

"Erik was extremely helpful during the selling process."
Christine Smith
{
"@context": "http://schema.org",
"@type": "Review",
"itemReviewed": {
"@type": "Service",
"name": "Real Estate Services",
"provider": {
"@type": "RealEstateAgent",
"name": "Erik Levin",
"url": "https://eriklevin.com"
}
},
"author": {
"@type": "Person",
"name": "Christine Smith",
},
"reviewBody": "Erik was extremely helpful during the selling process."
}

"Working with Erik was not only easy but extremely helpful. He helped us through every step of the buying process."
Robert Draper
{
"@context": "http://schema.org",
"@type": "Review",
"itemReviewed": {
"@type": "Service",
"name": "Real Estate Services",
"provider": {
"@type": "RealEstateAgent",
"name": "Erik Levin",
"url": "https://eriklevin.com"
}
},
"author": {
"@type": "Person",
"name": "Robert Draper",
},
"reviewBody": "Working with Erik was not only easy but extremely helpful. He helped us through every step of the buying process."
}

Contact Erik
Phone: 615-554-7677
document.addEventListener('DOMContentLoaded', function() {
// Use a more specific class for the RealScout listings if available
var listingsContainer = document.querySelector('.realscout-listings');
function setupClickListener() {
listingsContainer.addEventListener('click', function(event) {
// Use a specific selector for the clickable elements within the listings
var targetElement = event.target.closest('.specific-listing-class'); // Adjust this class to target the clickable elements
if (targetElement) {
trackClickEvent(targetElement);
}
});
}
// Check if listings are already loaded
if (listingsContainer.childNodes.length > 0) {
setupClickListener();
} else {
// Observe the container for changes and set up click listeners once listings are loaded
var observer = new MutationObserver(function(mutations) {
mutations.forEach(function(mutation) {
if (mutation.addedNodes.length > 0) {
setupClickListener();
observer.disconnect(); // Stop observing once we've set up the listener
}
});
});
observer.observe(listingsContainer, { childList: true });
}
});
function trackClickEvent(element) {
if (typeof gtag === 'function') {
gtag('event', 'click', {
'event_category': 'RealScout Listings',
'event_label': 'Listing Click', // Adjust as needed
'transport_type': 'beacon'
});
}
}