window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
// Base Google Ads config
gtag('config', 'AW-985829791');
// Phone Conversion Tracking
gtag('config', 'AW-985829791/jVbSCNze9bMBEJ-jitYD', {
'phone_conversion_number': '855-722-3166'
});
// Capture UTM and GCLID parameters
(function () {
function getParameterByName(name) {
name = name.replace(/[\[\]]/g, "\\$&");
var url = window.location.href;
var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
results = regex.exec(url);
if (!results) return null;
if (!results[2]) return '';
return decodeURIComponent(results[2].replace(/\+/g, " "));
}
var params = ['gclid', 'utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content'];
params.forEach(function(param) {
var value = getParameterByName(param);
if (value) {
// Save in cookie
document.cookie = param + "=" + value + "; path=/";
// Autofill hidden fields in forms (if exist)
var input = document.querySelector("input[name='" + param + "']");
if (input) {
input.value = value;
}
// Optional: log to gtag for analytics/debug
gtag('event', 'utm_capture', {
'event_category': 'utm_tracking',
'event_label': param,
'value': value
});
}
});
})();
(function () {
function getParameterByName(name) {
name = name.replace(/[\[\]]/g, "\\$&");
var url = window.location.href;
var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
results = regex.exec(url);
if (!results) return null;
if (!results[2]) return '';
return decodeURIComponent(results[2].replace(/\+/g, " "));
}
var params = ['gclid', 'utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content'];
params.forEach(function(param) {
var value = getParameterByName(param);
if (value) {
// Save to cookie
document.cookie = param + "=" + value + "; path=/";
// Fill Gravity Forms hidden input
var input = document.querySelectorAll('input[name="' + param + '"]');
input.forEach(function(field) {
field.value = value;
});
}
});
})();
Travel tourist woman on vacation in Greece. Person with blue sunhat in front of traditional Mediterranean house. Colored houses, cozy picturesque alley, tranquil village. Europe summer destination