Skip to content

Commit

Permalink
fix: add pixel to test audit
Browse files Browse the repository at this point in the history
  • Loading branch information
dackmin committed Sep 18, 2024
1 parent d5102a2 commit 83bfbae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/articles/[articleId]/ArticleBody.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client';

import { useRef, useState } from 'react';
import { AccessContext, Paywall } from '@poool/react-access';
import { AccessContext, Paywall, Pixel } from '@poool/react-access';

import type { ArticleItem } from '~/types';
import { releaseArticle } from '~/actions';
Expand Down Expand Up @@ -32,6 +32,7 @@ const ArticleBody = ({ _article }: ArticleBodyProps) => {
<AccessContext
appId={process.env.NEXT_PUBLIC_POOOL_ID as string}
config={{ cookies_enabled: true, force_widget: 'gift' }}
withAudit={true}
>
<p>{ article.content || article.preview }</p>
<Paywall
Expand All @@ -42,6 +43,8 @@ const ArticleBody = ({ _article }: ArticleBodyProps) => {
release: onRelease,
}}
/>

<Pixel type="page-view" pageType="premium" />
</AccessContext>
);
};
Expand Down

0 comments on commit 83bfbae

Please sign in to comment.