Skip to content

Commit

Permalink
Add AW tag on marketing website (#493)
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinejaussoin committed Mar 9, 2023
1 parent 8cabcd6 commit 7bb5958
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.webp binary
*.eot binary
*.ttf binary
Expand Down
5 changes: 4 additions & 1 deletion marketing/.env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copy to .env.local
NEXT_PUBLIC_APP_URL=http://localhost:3000
NEXT_PUBLIC_MEASUREMENT_ID=G-XXXXXXXXXX
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
3 changes: 3 additions & 0 deletions marketing/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion marketing/src/pages/404.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
5 changes: 5 additions & 0 deletions marketing/src/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(',')
});
`,
}}
/>
Expand Down

0 comments on commit 7bb5958

Please sign in to comment.