我已经提出要在我建立的React.js应用程序中添加Adobe Analytics的要求。
非常抱歉我对如何实现它没有任何基本的想法/理解,所以专家的帮助对我来说将非常有帮助。
要求是我需要在我建立的next js with typescript
项目中实现Adobe Analytics。
在官方文档中,我只能找到Google Analytics示例,但没有Adobe Analytics的样本。
Index.tsx:
import React from "react";
import Container from "@material-ui/core/Container";
import Typography from "@material-ui/core/Typography";
import Box from "@material-ui/core/Box";
import Link from "../src/Link";
export default function Index() {
return (
<Container maxWidth="sm">
<Box my={4}>
<Typography variant="h4" component="h1" gutterBottom>
Next.js with TypeScript example
</Typography>
<Link href="/about" color="secondary">
Go to the about page
</Link>
</Box>
</Container>
);
}
请从链接中给出的源代码开始,并帮助我确定应该从哪里开始,以及如何实现Adobe Analytics。
我在这里找到了SSR的链接:https://docs.adobe.com/content/help/en/experience-manager-65/developing/headless/spas/spa-ssr.html,但它不提供有关代码内部实现的必要详细信息。
我在这里提交了一个问题:https://github.com/zeit/next.js/discussions/10679,但是没有人能够提供适当的帮助。
正如问题标题所示,我需要实现 Adobe Analytics而严格不使用Google Analytics。
我恳求,请通过fork上面的CodeSandbox并提供工作条件来提供解决方案。
SSR
的nextjs应用程序中实现Adobe分析。 我还提供了示例代码,在那个示例中,我需要应用要求的Adobe分析。 - user12856847