#include "insert_ga_filter.h"
Public Member Functions | |
InsertGAFilter (RewriteDriver *rewrite_driver) | |
virtual void | StartDocumentImpl () |
virtual void | StartElementImpl (HtmlElement *element) |
virtual void | EndElementImpl (HtmlElement *element) |
virtual void | Characters (HtmlCharactersNode *characters) |
HTML Events we expect to be in <script> elements. | |
virtual const char * | Name () const |
The name of this filter -- used for logging and debugging. | |
Static Public Member Functions | |
static void | Initialize (Statistics *stats) |
Set up statistics for this filter. |
This class is the implementation of insert_ga_snippet filter, which adds a Google Analytics snippet into the head of html pages.
virtual void net_instaweb::InsertGAFilter::StartDocumentImpl | ( | ) | [virtual] |
Overload these implementer methods: Intentionally left abstract so that implementers don't forget to change the name from Blah to BlahImpl.
Implements net_instaweb::CommonFilter.