From c15ab5489544c72fe629906f6491a82cb0afba5a Mon Sep 17 00:00:00 2001 From: Marius Andra Date: Sun, 22 Dec 2024 22:36:22 +0100 Subject: [PATCH 01/15] feat(cdp): snapchat pixel (#26890) Co-authored-by: MarconLP <13001502+MarconLP@users.noreply.github.com> --- .run/PostHog.run.xml | 2 +- frontend/public/services/snapchat.png | Bin 0 -> 7164 bytes .../src/lib/integrations/integrationsLogic.ts | 2 + frontend/src/types.ts | 1 + posthog/cdp/templates/__init__.py | 4 + .../templates/snapchat_ads/template_pixel.py | 269 +++++++++++++ .../snapchat_ads/template_snapchat_ads.py | 368 ++++++++++++++++++ .../test_template_snapchat_ads.py | 73 ++++ .../migrations/0489_alter_integration_kind.py | 1 + posthog/models/integration.py | 20 +- posthog/settings/integrations.py | 3 + 11 files changed, 741 insertions(+), 2 deletions(-) create mode 100644 frontend/public/services/snapchat.png create mode 100644 posthog/cdp/templates/snapchat_ads/template_pixel.py create mode 100644 posthog/cdp/templates/snapchat_ads/template_snapchat_ads.py create mode 100644 posthog/cdp/templates/snapchat_ads/test_template_snapchat_ads.py diff --git a/.run/PostHog.run.xml b/.run/PostHog.run.xml index 32624c2ec1c8f..4d02e04919841 100644 --- a/.run/PostHog.run.xml +++ b/.run/PostHog.run.xml @@ -1,7 +1,7 @@ -