/*
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<!-- Global site tag (gtag.js) - Google Ads: 10828069277 -->
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-10828069277"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'AW-10828069277');
</script>
*/
// PEGAR EL CÓDIGO DE RASTREO HEAD QUE DA GOOGLE ADS
<script>
jQuery(document).ready(function(){
/*
Conversiones a crear
1 - Clic en botón > Constituir SAS o no -
https://simplesas.typeform.com/to/oychCX6X
https://simplesas.typeform.com/to/HChiTr5M
2 - Clic en botón > La sociedad por Acciones Simplificadas - https://simplesas.typeform.com/to/NhAiKcBS
3 - Clic en botón > Oficialmente somos parte de la Comunidad B - https://sasecuador.com/oficialmente-somos-parte-de-la-comunidad-b/
4- Clic en el blog - https://sasecuador.com/blog/
*/
/*
Section modelo
Copie y pegue esta sectión modelo y modifique los datos en mayusculas:
URL EXACTA DEL BOTON
NOMBRE DE LA CONVERSIÓN
*/
// sección {
/* //quite esta linea
jQuery("[href='URL EXACTA DEL BOTON']").each(function(){
jQuery(this).bind('click', function(){
console.log("Registro conversión NOMBRE DE LA CONVERSIÓN");
gtag('event', 'conversion', {
'send_to': 'CODIGO DE RASTREO DE GOOGLE',
'event_callback': function(){}
});
});
});
*/ //quite esta linea
// fin sección
//
// sección {
jQuery("[href='https://simplesas.typeform.com/to/oychCX6X']").each(function(){
jQuery(this).bind('click', function(){
console.log("Registro conversión Clic en botón > Constituir SAS o no");
gtag('event', 'conversion', {
'send_to': 'AW-10828069277/LH8oCLKlj4sDEJ3znKso',
'event_callback': function(){}
});
});
});
// fin sección
// sección {
jQuery("[href='https://simplesas.typeform.com/to/HChiTr5M']").each(function(){
jQuery(this).bind('click', function(){
console.log("Registro conversión Clic en botón > Constituir SAS o no");
gtag('event', 'conversion', {
'send_to': 'AW-10828069277/LH8oCLKlj4sDEJ3znKso',
'event_callback': function(){}
});
});
});
// fin sección
// sección {
jQuery("[href='https://simplesas.typeform.com/to/NhAiKcBS']").each(function(){
jQuery(this).bind('click', function(){
console.log("Registro conversión Clic en botón > La sociedad por Acciones Simplificadas - ");
gtag('event', 'conversion', {
'send_to': 'AW-10828069277/pRUpCNbYj4sDEJ3znKso',
'event_callback': function(){}
});
});
})
// fin sección
// Copee esta sección de codigo para agregar el rastreo a otro botón
// sección {
jQuery("[href='https://sasecuador.com/oficialmente-somos-parte-de-la-comunidad-b/']").each(function(){
jQuery(this).bind('click', function(){
console.log("Registro conversión Clic en botón > Oficialmente somos parte de la Comunidad B ");
gtag('event', 'conversion', {
'send_to': 'AW-10828069277/rdb9CJyivIsDEJ3znKso',
'event_callback': function(){}
});
});
});
// fin sección
// Copee esta sección de codigo para agregar el rastreo a otro botón
// sección {
jQuery("[href='https://sasecuador.com/blog/']").each(function(){
jQuery(this).bind('click', function(){
console.log("Registro conversión Clic en el boton del blog");
gtag('event', 'conversion', {
'send_to': 'AW-10828069277/Zjz7CICkvIsDEJ3znKso',
'event_callback': function(){}
});
});
});
// fin sección
// jQuery("[href='']").each(function(){
// jQuery(this).bind('click', function(){
// console.log("Registro conversión ");
// gtag('event', 'conversion', {
// 'send_to': '',
// 'event_callback': function(){}
// });
// });
// });
});
</script>
/*Recuerden este es el código para Facebook, que no se explica en el video */
// function register_event_fb(argsx) {
// fbq('track', 'Contact', argsx);
// return false;
// }
// function register_viewcontent_fb(){
// setTimeout(function(){
// fbq('track', 'ViewContent', {
// value: "Vio contenido 15 segundos",
// currency: '1',
// });
// console.log('track:ViewContent');
// }, 15000);
// setTimeout(function(){
// fbq('track', 'ViewContent', {
// value: "Vio contenido 30 segundos",
// currency: '2',
// });
// console.log('track:ViewContent15');
// }, 30000);
// setTimeout(function(){
// fbq('track', 'ViewContent', {
// value: "Vio contenido 60 segundos",
// currency: '3',
// });
// console.log('track:ViewContent60');
// }, 60000);
// setTimeout(function(){
// fbq('track', 'ViewContent', {
// value: "Vio contenido 120 segundos",
// currency: '4',
// });
// console.log('track:ViewContent120');
// }, 120000);
// }