asciidoctor / asciidoctor-extensions-lab

A lab for testing and demonstrating Asciidoctor extensions. Please do not use this code in production. If you want to use one of these extensions in your application, create a new project, import the code, and distribute it as a RubyGem. You can then request to make it a top-level project under the Asciidoctor organization.
Other
104 stars 101 forks source link

Update google analytics tracking code #78

Closed bulletmark closed 6 years ago

bulletmark commented 7 years ago

This extension was inserting the older "Classic" tracking code but Google now strongly recommend to use their "Universal Analytics" tracking code.

mojavelinux commented 6 years ago

Sounds good to me! Thanks!

mojavelinux commented 6 years ago

Please note that I've refactor this as a DocinfoProcessor. It is now located at:

https://github.com/asciidoctor/asciidoctor-extensions-lab/blob/master/lib/google-analytics-docinfoprocessor.rb

Just in case people are relying on the postprocessor, I'll restore it, but add a note about using it.