Skip to content
Discussion options

You must be logged in to vote

It seems to be fixed, because now it works, I added a ; after gtag analytics function.

<script dangerouslySetInnerHTML={{
                            __html: `window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);};gtag('js', new Date());gtag('config', '${GA_TRACKING_ID}', {page_path: window.location.pathname});gtag('config', '${GA_ADS_ID}');`,
                        }}
                    />

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by chiqui3d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant