PUCE.TECH.tecnologiaProcesamientoLacteos

 avatar
unknown
javascript
3 years ago
4.3 kB
3
Indexable



<!-- PUCE.TECH.tecnologiaProcesamientoLacteos -->


<!-- Global site tag (gtag.js) - PUCE Google Ads: 10793009421 -->
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-10793009421"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'AW-10793009421');
</script>





<!-- Facebook  PUCE.TECH.tecnologiaProcesamientoLacteos  -->
<script>
  !function(f,b,e,v,n,t,s)
  {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
  n.callMethod.apply(n,arguments):n.queue.push(arguments)};
  if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
  n.queue=[];t=b.createElement(e);t.async=!0;
  t.src=v;s=b.getElementsByTagName(e)[0];
  s.parentNode.insertBefore(t,s)}(window, document,'script',
  'https://connect.facebook.net/en_US/fbevents.js');
  fbq('init', '1585263921808334');
  fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none"
  src="https://www.facebook.com/tr?id=1585263921808334&ev=PageView&noscript=1"
/></noscript>
<!-- End Facebook Pixel Code -->







<script>


// https://clientify.net/web-marketing/landingpages/create/steps/4/

(function() {

var $;var n = 0;function init_track_web(n) {			if (typeof jQuery !== 'undefined') {								$ = jQuery;				bindToAjax();						} else if (n < 20) {			n++;			setTimeout(init_track_web, 500);		}}

function bindToAjax() {
				$(document).bind('ajaxComplete', function(evt, jqXhr, opts) {
					var identifier_track = "_27_nov";
					var current_identifier_track = localStorage.getItem(identifier_track);
					if( current_identifier_track == "true"){console.log('ready exists a event track form');return false;}
					if( current_identifier_track == null){console.log('set track event localStorage');localStorage.setItem(identifier_track, 'true');}
					var fullUrl = document.createElement('a');fullUrl.href = opts.url;var pathname = fullUrl.pathname[0] === '/' ? fullUrl.pathname : '/' + fullUrl.pathname;var queryString = fullUrl.search[0] === '?' ? fullUrl.search.slice(1) : fullUrl.search;var queryParameters = objMap(queryString, '&', '=', true);var headers = objMap(jqXhr.getAllResponseHeaders(), '\n', ':');
					var dataAjax = {'event': 'ajaxComplete','attributes': {'type': opts.type || '','url': fullUrl.href || '','queryParameters': queryParameters,'pathname': pathname || '','hostname': fullUrl.hostname || '','protocol': fullUrl.protocol || '','fragment': fullUrl.hash || '','statusCode': jqXhr.status || '','statusText': jqXhr.statusText || '','headers': headers,'timestamp': evt.timeStamp || '','contentType': opts.contentType || '','response': (jqXhr.responseJSON || jqXhr.responseXML || jqXhr.responseText || '')}};
					if( dataAjax.attributes.response.success == true ){console.log('attributes.response.success true');console.info('google init');
						

						
							if(typeof gtag != 'undefined'){
								 gtag('event', 'conversion', {'send_to': 'AW-10793009421/5UaRCMe63osDEI2CwZoo'});
						       console.info("track Google ads PUCE.TECH.tecnologiaProcesamientoLacteos");
							}

						

												if(typeof fbq != 'undefined'){
							console.info("track fb");
							fbq('track', 'Lead', {'formulario':'clientify'});
						// fbq('track', 'Contact', {'formulario':'clientify'});
						}else{
							console.info("track fb not defined");
						}
						


					}else{console.log('attributes.response.success false');}console.log(dataAjax);

				});

$(document).ready(function(){	$("[name='phone']").each(function(){		console.info(this);		this.value="+593"	});});
}

setTimeout(init_track_web, 5000);
		function objMap(data, delim, spl, decode) {
				var obj = {};if (!data || !delim || !spl) {return {};}var arr = data.split(delim);var i;
				if (arr) {for (i = 0; i<arr.length; i++) {var item = decode ? decodeURIComponent(arr[i]) : arr[i];var pair = item.split(spl);var key = trim_(pair[0]);var value = trim_(pair[1]);if (key && value) {obj[key] = value;}}}return obj;}
		function trim_(str) {
			if (str) {
				return str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '');
			}
		}
})();

















</script>



Editor is loading...