nextra icon indicating copy to clipboard operation
nextra copied to clipboard

Add doc for adding google analytics to doc theme

Open oluwatobiss opened this issue 2 years ago • 6 comments

It will be helpful to guide users on adding Google Analytics to their doc site.

I know issue #1359 already addressed it. But having the steps documented will make it quicker for users to implement. (It took me a lot of searching to find out how).

I'm happy to take on this task if you don't mind.

oluwatobiss avatar Aug 02 '23 22:08 oluwatobiss

Go ahead then. The Nextra team is quite busy and like all devs, can't attend to every problem at once. Your help is appreciated

C-EO avatar Aug 03 '23 20:08 C-EO

Is there any contributing note you want me to be aware of?

oluwatobiss avatar Aug 03 '23 21:08 oluwatobiss

We are using Google Tag Manager to push google analytics. I have some docs we prep if it helps to speed the documentation process. however, lately, we are getting cross-site errors when tart use import Script from "next/script"; see issue #2130

101sam avatar Aug 04 '23 11:08 101sam

Absolutely. Please do share your docs—every help is most welcome. Thanks.

oluwatobiss avatar Aug 05 '23 01:08 oluwatobiss

Go ahead then. The Nextra team is quite busy and like all devs, can't attend to every problem at once. Your help is appreciated

@shuding and @B2o5T aren't easy to reach. So you'll have to be patient

C-EO avatar Aug 06 '23 23:08 C-EO

Here's another example of adding to Nexta: https://github.com/Howdju/howdju/pull/714. I only load the tag conditionally based on a consent cookie.

carlgieringer avatar Aug 24 '24 00:08 carlgieringer

https://github.com/shuding/nextra/pull/2137#issuecomment-2439003676

dimaMachina avatar Oct 25 '24 23:10 dimaMachina