Spaces:
Running
Running
GA4 HF Envs
Browse files- autenticacion.py +0 -1
- ga4Analiticas.py +1 -9
autenticacion.py
CHANGED
|
@@ -4,7 +4,6 @@ import config_creator
|
|
| 4 |
|
| 5 |
def defineAmbiente(env):
|
| 6 |
|
| 7 |
-
print("Estoy en defineambiente...")
|
| 8 |
if local_check():
|
| 9 |
print("Entorno Local...")
|
| 10 |
import bridges
|
|
|
|
| 4 |
|
| 5 |
def defineAmbiente(env):
|
| 6 |
|
|
|
|
| 7 |
if local_check():
|
| 8 |
print("Entorno Local...")
|
| 9 |
import bridges
|
ga4Analiticas.py
CHANGED
|
@@ -68,12 +68,4 @@ def send_ga4_purchase_event(session):
|
|
| 68 |
return True
|
| 69 |
except requests.exceptions.RequestException as e:
|
| 70 |
print(f"Error al enviar el evento a GA4: {e}")
|
| 71 |
-
return False
|
| 72 |
-
|
| 73 |
-
# --- Lógica de tu webhook ---
|
| 74 |
-
# Esta es una parte de ejemplo de tu endpoint.
|
| 75 |
-
# Aquí recibes el evento de Stripe.
|
| 76 |
-
# Puedes verificar el evento con la firma para mayor seguridad.
|
| 77 |
-
|
| 78 |
-
# if stripe_event.type == 'checkout.session.completed':
|
| 79 |
-
# send_ga4_purchase_event(stripe_event)
|
|
|
|
| 68 |
return True
|
| 69 |
except requests.exceptions.RequestException as e:
|
| 70 |
print(f"Error al enviar el evento a GA4: {e}")
|
| 71 |
+
return False
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|