Coder Social home page Coder Social logo

Comments (10)

squidfunk avatar squidfunk commented on May 21, 2024

Hi @digitalcraftsman,

could you be more specific? What do you mean by tracking code? If I search for tracking code in conjunction with Google Analytics I get this, and that's what's basically implemented:
https://support.google.com/analytics/answer/1008080?hl=en

Best regards,
Martin

from mkdocs-material.

digitalcraftsman avatar digitalcraftsman commented on May 21, 2024

Thanks for your quick response. To set up Google Analytics I usually copy this snippet into my website.

It requires an ID like UA-XXXXX-Y that you need to generate and insert into the snippet.

from mkdocs-material.

squidfunk avatar squidfunk commented on May 21, 2024

This is already implemented. Just add your ID to your mkdocs.yml:

google_analytics:
  - UA-XXXXXXXX-Y
  - auto

Is this what you meant? If so, maybe we should mention it in the documentation.

from mkdocs-material.

digitalcraftsman avatar digitalcraftsman commented on May 21, 2024

Thank you for the clarification. It just confused me that Google Analytics was implemented but the documentation didn't mentioned a word about the ID or any other steps for the setup.

It would be great if you could mention this in the documentation. It felt a bit weird that GA works out of the box.

from mkdocs-material.

squidfunk avatar squidfunk commented on May 21, 2024

It's mentioned in the official MkDocs documentation and Material basically implemented all of the MkDocs features, but yes, you're right - I will add it to the docs!

from mkdocs-material.

digitalcraftsman avatar digitalcraftsman commented on May 21, 2024

Currently, I only experimented a bit with MkDocs since I'm porting your theme to Hugo. In a nutshell, Hugo is a static site generator like Jekyll but much faster.

Of couse I'll acknowledge you as the original creator since otherwise the port wouldn't be possible.

from mkdocs-material.

squidfunk avatar squidfunk commented on May 21, 2024

Ah, funny thing, already heard of it, but I sticked with MkDocs for documentation, as it's really good for that. Please keep me updated on the progress!

from mkdocs-material.

digitalcraftsman avatar digitalcraftsman commented on May 21, 2024

The port is done so far. Take a look at the demo. Full support for a search and localization are still missing. But Hugo should support them in one of the next releases. Read the roadmap in the demo for more information.

from mkdocs-material.

squidfunk avatar squidfunk commented on May 21, 2024

Ah cool, well done! I like it :-) Thanks for acknowledging me.

from mkdocs-material.

digitalcraftsman avatar digitalcraftsman commented on May 21, 2024

Thanks for acknowledging me.

That's the least I can do 😄

from mkdocs-material.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.