Base URL: http://localhost:3000/api (development)
Método de Autenticación: Session-based (cookies)
Framework: Nitro (Nuxt Server)
Validación: Zod (tipos TypeScript)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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]) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ¡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). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "seller_email": "[email protected]", | |
| "name": "Miguel Olave", | |
| "phone": "+56993443055", | |
| "sheet_url": "https://docs.google.com/spreadsheets/d/1yqh-w4q7hXCQ7HLj-6JBZDDeBDXn5ketNCJTcttIPgU/edit?usp=sharing", | |
| "email": "[email protected]", | |
| "mailchimp_group": "IDIOMA->INGLES" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * 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'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Generar fecha | |
| var date = new Date(); | |
| var today = date.getDate() + '-' + (date.getMonth()+1) + '-' + date.getFullYear(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
NewerOlder