var _gaq = _gaq || []; _gaq.push(['_setDomainName', 'citizenship.com.sg']); _gaq.push(['_setAccount', 'G-RFTL5KTQ0Y']); _gaq.push(['_trackPageview']); _gaq.push(['_trackPageLoadTime']); document.addEventListener("DOMContentLoaded", (event) => { try { var parAll = document.querySelectorAll('[aria-label="Contact form"]'); for (let i = 0; i < parAll.length; i++){ var par = parAll[i]; var gavars = parseAnalyticsCookie(); if (gavars.hasOwnProperty('utmgclid')) { par.append(createInputElm('campaign-source', 'google')); par.append(createInputElm('campaign_medium', 'cpc')); } else { par.append(createInputElm('campaign-source', gavars.utmcsr)); par.append(createInputElm('campaign-medium', gavars.utmcmd)); } par.append(createInputElm('campaign-name', gavars.utmccn)); if (gavars.hasOwnProperty('utmcct')){ par.append(createInputElm('campaign-content', gavars.utmcct)); } else{ par.append(createInputElm('campaign-content', '')); } if (gavars.hasOwnProperty('utmctr')){ par.append(createInputElm('campaign-term', gavars.utmctr)); } else{ par.append(createInputElm('campaign-term', '')); } par.append(createInputElm('serial-number', wpcf7.serial_number)); par.append(createInputElm('referrer', gavars.referrernew)); par.append(createInputElm('full-referrer', decodeURIComponent(gavars.referrernewfull))); par.append(createInputElm('pagesvisted', decodeURIComponent(gavars.pagesvisted))); } } catch(ex){ document.body.innerHTML = ex; } console.log(par) } ); function createInputElm(name,val){ var mi = document.createElement("input"); mi.setAttribute('name', name); mi.setAttribute('hidden', 'true'); mi.setAttribute('value', val); return mi; } -->

Contact Us

    By submitting, you agree to our privacy policy