The data container for lazy developers!! It's like wordpress of data.
Pensado para desarrolladores que no quieren lidiar con la infraestructura de almacenamiento.
- Gestionar información financiera
| type WindowWithDataLayer = Window & { | |
| dataLayer: Record<string, any>[]; | |
| }; | |
| declare const window: WindowWithDataLayer; | |
| export const pageview = (url: string) => { | |
| if (typeof window.dataLayer !== 'undefined') { | |
| window.dataLayer.push({ | |
| event: 'pageview', |
| import { firebaseApp } from "../../../config/firebase"; | |
| import { getFirestore, doc, addDoc, connectFirestoreEmulator, collection, updateDoc, Firestore, getDoc, deleteDoc } from "firebase/firestore"; | |
| // Initialize Cloud Firestore and get a reference to the service | |
| function getDiffProps(obj1: Record<string, any>, obj2: Record<string, any>) { | |
| const result: Record<string, any> = {}; | |
| Object.keys(obj2).forEach(key => { | |
| if (obj1[key] !== obj2[key]) { |
| // Ejemplo para testear la decoficación de un enlace | |
| const url = require('url'); | |
| // Cambiar Según sea conveniente | |
| const link = | |
| 'https://usm-pec-desa.powerappsportals.com/?%20%20%20%20id=MQ==%20%20%20%20&internalId=Mg==%20%20%20%20&bannerCode=YmFubmVyX2NvZGU=%20%20%20%20&version=MQ==%20%20%20%20&initDate=MDEtMDMtMjAyNA==%20%20%20%20&endDate=MDEtMDMtMjAyNA==%20%20%20%20&modules=MS1Nb2R1bG8gSTogTHVnYXIgZGUgVHJhYmFqbywyLU1vZHVsbyBJSTogRmFjdG9yZXMgQW1iaWVudGFsZXMsMy1Nb2R1bG8gSUlJOiBDb250cm9sIGRlIEluZ2VuaWVyw61h%20%20%20%20&name=RGlwbG9tYSBlbiBIaWdpZW5lIE9jdXBhY2lvbmFsIENvbmNlcGNpw7Nu%20%20%20%20&description=RWwgRGlwbG9tYSBlbiBIaWdpZW5lIE9jdXBhY2lvbmFsIGVzIHVuIHByb2dyYW1hIGRpc2XDsWFkbyBwYXJhIHByb3BvcmNpb25hciBsYXMgaGFiaWxpZGFkZXMgbmVjZXNhcmlhcyBhIGxvcyBwcm9mZXNpb25hbGVzIHF1ZSBkZXNlZW4gZXZhbHVhciBhbWJpZW50ZQ==%20%20%20%20&price=MjEwMDAwMA==%20%20%20%20&pricePaid=MjEwMDAwMA=='; | |
| const current_url = new URL(link); | |
| // get access to URLSearchParams object |
| ¡Hola Anto! | |
| ---- | |
| Después de revisar tu cuenta, he encontrado varios puntos que podemos mejorar para generar más clics y conversiones. | |
| ----- | |
| Efectivamente no se está midiendo ninguna acción debido a que los *eventos de conversión* no están configurados en tu página (y tampoco se han seleccionado apropiadamente para tu campaña). |
| { | |
| "seller_email": "marcela@barracolodge.com", | |
| "name": "Miguel Olave", | |
| "phone": "+56993443055", | |
| "sheet_url": "https://docs.google.com/spreadsheets/d/1yqh-w4q7hXCQ7HLj-6JBZDDeBDXn5ketNCJTcttIPgU/edit?usp=sharing", | |
| "email": "miguel@turbomarket.cl", | |
| "mailchimp_group": "IDIOMA->INGLES" | |
| } |
| /** | |
| * Utilizado para definir cual es el script que se utilizará para cada | |
| * de las distintas etapas. | |
| */ | |
| const TARGET = process.env.npm_lifecycle_event; | |
| if (TARGET === 'dev') { | |
| module.exports = require('./path-to/webpack.config.dev.js'); | |
| } | |
| if (TARGET === 'build') { | |
| module.exports = require('./path-to/webpack.config.prod.js'); |
| //Generar fecha | |
| var date = new Date(); | |
| var today = date.getDate() + '-' + (date.getMonth()+1) + '-' + date.getFullYear(); |
| SELECT av.action_type, av.value | |
| FROM | |
| `[RUTA_PROYECTO].[RUTA_CONJUNTO_DE_DATOS].ads_insights`, unnest(actions) a, unnest(action_values) av | |
| WHERE | |
| av.action_type Like '%purchase%' | |
| LIMIT 1000 |
| <!-- Facebook Pixel Code --> | |
| <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'); |