Class: TheTracker::Trackers::GAdServices
- Defined in:
- lib/the_tracker/trackers/g_ad_services.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #body_bottom ⇒ Object
-
#initialize(options) ⇒ GAdServices
constructor
GAdService info id, language, format, color, label and value.
- #name ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(options) ⇒ GAdServices
GAdService info id, language, format, color, label and value
6 7 8 9 10 11 12 13 14 |
# File 'lib/the_tracker/trackers/g_ad_services.rb', line 6 def initialize() @id = [:id] @language = [:language] @format = [:format] @color = [:color] @label = [:label] @value = [:value] super() end |
Instance Method Details
#body_bottom ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/the_tracker/trackers/g_ad_services.rb', line 20 def body_bottom return if !active <<-EOF <!-- Google Code for Cliente Potencial Conversion Page BEGIN --> <script type="text/javascript"> /* <![CDATA[ */ var google_conversion_id = #{@id}; var google_conversion_language = \"#{@language}\"; var google_conversion_format = \"#{@format}\"; var google_conversion_color = \"#{@color}\"; var google_conversion_label = \"#{@label}\"; var google_conversion_value = #{@value}; /* ]]> */ </script> <script type=\"text/javascript\" src=\"//www.googleadservices.com/pagead/conversion.js\"> </script> <noscript> <div style=\"display:inline;\"> <img height=\"1\" width=\"1\" style=\"border-style:none;\" alt=\"\" src=\"//www.googleadservices.com/pagead/conversion/#{@id}/?value=#{@value}&label=#{@label}&guid=ON&script=0\"/> </div> </noscript> <!-- Google Code for Cliente Potencial Conversion Page END --> EOF end |
#name ⇒ Object
16 17 18 |
# File 'lib/the_tracker/trackers/g_ad_services.rb', line 16 def name :gadservices end |