module Liquid module Locomotive module Tags class GoogleAnalytics < ::Liquid::Tag Syntax = /(#{::Liquid::Expression}+)?/ def initialize(tag_name, markup, tokens, context) if markup =~ Syntax @account_id = $1.gsub('\'', '') else raise ::Liquid::SyntaxError.new("Syntax Error in 'google_analytics' - Valid syntax: google_analytics ") end super end def render(context) %{ } end end ::Liquid::Template.register_tag('google_analytics', GoogleAnalytics) end end end