Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement google analytics in Nextjs. #104

Merged
merged 1 commit into from
Sep 12, 2022

Conversation

hamzafer
Copy link
Collaborator

No description provided.

@hamzafer hamzafer requested a review from MZO9400 September 12, 2022 19:03
@hamzafer hamzafer self-assigned this Sep 12, 2022
@hamzafer hamzafer merged commit 02a3565 into main Sep 12, 2022
@hamzafer hamzafer deleted the BLOCKS-18-google-analytics-nextjs branch September 12, 2022 19:05
@@ -0,0 +1 @@
export const NEXT_PUBLIC_MEASUREMENT_ID = "UA-235327300-1";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be an environment variable

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I wanted this to be an env variable but wasn't sure how the deployment works on the WP side and if we can add the variable over there. That's why kept it as a const.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants