From 7bb595868b592262bb73074f99672f9ed53a42b7 Mon Sep 17 00:00:00 2001 From: Antoine Jaussoin Date: Thu, 9 Mar 2023 09:24:49 +0000 Subject: [PATCH] Add AW tag on marketing website (#493) --- .gitattributes | 1 + marketing/.env.example | 5 ++++- marketing/Dockerfile | 3 +++ .../404/{it-crowd-on-fire.gif => bg.gif} | Bin 1396380 -> 1396426 bytes marketing/src/pages/404.tsx | 2 +- marketing/src/pages/_document.tsx | 5 +++++ 6 files changed, 14 insertions(+), 2 deletions(-) rename marketing/src/containers/404/{it-crowd-on-fire.gif => bg.gif} (99%) diff --git a/.gitattributes b/.gitattributes index f62a60efc..2684e5fdd 100644 --- a/.gitattributes +++ b/.gitattributes @@ -3,6 +3,7 @@ *.png binary *.jpg binary *.jpeg binary +*.gif binary *.webp binary *.eot binary *.ttf binary diff --git a/marketing/.env.example b/marketing/.env.example index 491f8a132..e1f8f6ada 100644 --- a/marketing/.env.example +++ b/marketing/.env.example @@ -1,3 +1,6 @@ # Copy to .env.local NEXT_PUBLIC_APP_URL=http://localhost:3000 -NEXT_PUBLIC_MEASUREMENT_ID=G-XXXXXXXXXX \ No newline at end of file +NEXT_PUBLIC_MEASUREMENT_ID=G-XXXXXXXXXX +NEXT_PUBLIC_GOOGLE_AD_WORDS_ID=AW-XXXXXXXXXX +NEXT_PUBLIC_GOOGLE_AD_WORDS_CONVERSION_ID=AW-XXXXXXXXXX/XXXXXXXXXX +NEXT_PUBLIC_GOOGLE_AD_WORDS_DOMAINS=foo.com,bar.com \ No newline at end of file diff --git a/marketing/Dockerfile b/marketing/Dockerfile index 410bb5be6..c14a51588 100644 --- a/marketing/Dockerfile +++ b/marketing/Dockerfile @@ -23,6 +23,9 @@ COPY . . ARG NEXT_PUBLIC_MEASUREMENT_ID=APP_NEXT_PUBLIC_MEASUREMENT_ID ARG NEXT_PUBLIC_APP_URL=APP_NEXT_PUBLIC_APP_URL +ARG NEXT_PUBLIC_GOOGLE_AD_WORDS_ID=APP_NEXT_PUBLIC_GOOGLE_AD_WORDS_ID +ARG NEXT_PUBLIC_GOOGLE_AD_WORDS_CONVERSION_ID=APP_NEXT_PUBLIC_GOOGLE_AD_WORDS_CONVERSION_ID +ARG NEXT_PUBLIC_GOOGLE_AD_WORDS_DOMAINS=APP_NEXT_PUBLIC_GOOGLE_AD_WORDS_DOMAINS ARG NEXT_BACKEND_SUB_DOMAIN=APP_NEXT_BACKEND_SUB_DOMAIN RUN yarn build diff --git a/marketing/src/containers/404/it-crowd-on-fire.gif b/marketing/src/containers/404/bg.gif similarity index 99% rename from marketing/src/containers/404/it-crowd-on-fire.gif rename to marketing/src/containers/404/bg.gif index 8ce98e991f2f15ec53d2e011d9f97bd1b03861c0..189828e81caf1c6ce34347a135983c10a2005f24 100644 GIT binary patch delta 398 zcmbO;H}urp&<$V18F@E<4Zo}dq)xO{GcxivJGZqvw=r&aZe!AQVC3CiaEvKk3`k$U z!{lWQq!k62&&mPmcY4ep<$?5lKjvT&AZ?V)ypkVC-!5XFBLk$%`Hu-mazlr7yASg4S}@h2f&ydgsJB{m1jQb=Ae024 zlDEMo1$?!)KHLRud$+7t20Uc9>AMD{XSa_d2bfg1D0l}*WVdnL2X(i%=aUFFx3?Zk z363kbt#%0>orla53Wv-S3%AS@49?Mqo8=6*o8=AcC%1?V4l+)+yIT${DYxi^4j)ms z2-Xhtjko<{51(*{ozxGvozxJRm$x=-5nCI#l7|rjFt?Sr5q1Z+48IX!F}H5;5rsy# z^fnSy0=G#y66`CtHf0j*!M7tP6B)|4J@FIc9Je736o*N-saF(jEw>ki6g@w;Rm2o^ EiUFR5i~s-t diff --git a/marketing/src/pages/404.tsx b/marketing/src/pages/404.tsx index 902a153a0..990b7e44d 100644 --- a/marketing/src/pages/404.tsx +++ b/marketing/src/pages/404.tsx @@ -2,7 +2,7 @@ import { serverSideTranslations } from 'next-i18next/serverSideTranslations'; import { useTranslation } from 'next-i18next'; import styled from 'styled-components'; import Link from 'next/link'; -import bg from '../containers/404/it-crowd-on-fire.gif'; +import bg from '../containers/404/bg.gif'; import Image from 'next/image'; export default function Page404() { diff --git a/marketing/src/pages/_document.tsx b/marketing/src/pages/_document.tsx index c24815cfc..3bd75c1ae 100644 --- a/marketing/src/pages/_document.tsx +++ b/marketing/src/pages/_document.tsx @@ -53,6 +53,11 @@ export default class MyDocument extends Document { function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', '${process.env.NEXT_PUBLIC_MEASUREMENT_ID}'); + gtag('config', '${process.env.NEXT_PUBLIC_GOOGLE_AD_WORDS_ID}'); + gtag('set', 'linker', {'domains': + '${process.env.NEXT_PUBLIC_GOOGLE_AD_WORDS_DOMAINS || ''}' + .split(',') + }); `, }} />