caboose-cms 0.5.190 → 0.5.191

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- Zjk2ZjJkNGZlOWM0YmViYmY0ZTlmYmQzYmRjZmRiZjY4ZjU2MTI4NA==
4
+ Njk3ZjJmN2RiZjc0MjYwMmU1MWRhNWI3Y2I5YjdlNTI1MmI0Y2NhMQ==
5
5
  data.tar.gz: !binary |-
6
- ZTVjOWQxNGY4NDlmNmE4ZjY1ZDk3ZDk3ZTUyMWM0ZjkzYjkzY2M3OQ==
6
+ ZmVmYTdlYTM4NmE4ODRkM2FmOTc1ZDIzM2JhODI2MDc4MmZiZmM0OQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZmU3YjRhNDc4NzNhMWYyYTU5M2FmYWE3ZDVmMjg3NGM0ZDhlMTY4NWY2NTcz
10
- N2ExNmY1NTk1YWEwMzZhZWQ0OWM5MGI4MTYwYjlmNTQwYzU1NzNiY2E3ZWE2
11
- NjcwM2YxN2JkZmFjZDAzZjdiMTdmZDZjYzdkZjQzMjVjMDllYmI=
9
+ ZTUwN2U0ZTgyMTg3NjE0OThlN2QwNDVkY2JhMWFlN2FlM2Y1NjQ4ZGM5OGRi
10
+ Zjg2OWRiNWJhNGYwZWM2NzcwNmZiMGQxYTBhZTc5ZjBiNjdlNzVmYTIwYjQz
11
+ OWQzZmUyMTcxZGI1MDhkNzJlNmMyNDJkZmY2NTBhMDFjYTUyNjQ=
12
12
  data.tar.gz: !binary |-
13
- NDU2ZGYxZDcyZGZjNGQ4ZDdkYTkxNGI1YmRlNTI5YmJkODMwOWE0MDc3NGFm
14
- OTgwMzdmZjVlNTVjOTFjZTNhNzczZjEwYTE2OTRhMDQ4ZjFmOTIyOGMwNzg5
15
- Mjk5NWExYTViZDI3YmFkMzczYTBiZDg2MzFhZTAyOGExNmE5YjA=
13
+ NjIzOTU5NDMzMDU3ZjA1MDg0ZTA2ZTE3YmY3MzNlMjU1YmM5MmYwMmM2MWFi
14
+ MGIxMzM1NjIzMDBmZjgyNWM4ODdhNTRjODAwZmQ4YWY4NmY4MThiMzdhNzJi
15
+ ODI2M2UzMDcyOTMyODU5NjE3ODNhMjc3YzM0NGY5MTVkNjkzYTY=
@@ -29,7 +29,8 @@ module Caboose
29
29
  # Initialize AB Testing
30
30
  AbTesting.init(request.session_options[:id]) if Caboose.use_ab_testing
31
31
 
32
- # Try to find the page
32
+ # Try to find the page
33
+ @request = request
33
34
  @page = Page.new
34
35
  @crumbtrail = Crumbtrail.new
35
36
  @subnav = {}
@@ -27,19 +27,5 @@ tinyMCE.init({
27
27
  Caboose::Category.find(1).children.where(:status => 'Active')
28
28
  end
29
29
 
30
- def analytics_js
31
- return "" if @site.analytics_id.nil? || @site.analytics_id.strip.length == 0
32
- str = ''
33
- str << "<script>\n"
34
- str << " (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n"
35
- str << " (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),\n"
36
- str << " m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)\n"
37
- str << " })(window,document,'script','//www.google-analytics.com/analytics.js','ga');\n"
38
- str << " ga('create', '#{@site.analytics_id}', 'auto');\n"
39
- str << " ga('send', 'pageview');\n"
40
- str << "</script>\n"
41
- return str
42
- end
43
-
44
30
  end
45
31
  end
@@ -0,0 +1,19 @@
1
+ <% if site.use_retargeting %>
2
+ <% rc = site.retargeting_config %>
3
+ <% rc.labels(request, page).each do |label %>
4
+ <script type='text/javascript'>
5
+ /* <![CDATA[ */
6
+ var google_conversion_id = #{rc.conversion_id};
7
+ var google_conversion_label = "<%= raw label %>";
8
+ var google_custom_params = window.google_tag_params;
9
+ var google_remarketing_only = true;
10
+ /* ]]> */
11
+ </script>
12
+ <script type='text/javascript' src='//www.googleadservices.com/pagead/conversion.js'></script>
13
+ <noscript>
14
+ <div style='display:inline;'>
15
+ <img height='1' width='1' style='border-style:none;' alt='' src='//googleads.g.doubleclick.net/pagead/viewthroughconversion/<%= raw rc.conversion_id %>/?value=1.00&amp;currency_code=USD&amp;label=<%= raw label %>&amp;guid=ON&amp;script=0'/>
16
+ </div>
17
+ </noscript>
18
+ <% end %>
19
+ <% end %>
@@ -26,7 +26,8 @@
26
26
  b.create_children
27
27
  end
28
28
  #b.log_helper
29
- options = {
29
+ options = {
30
+ :request => @request,
30
31
  :page => @page,
31
32
  :view => self,
32
33
  :controller_view_content => yield,
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.5.190'
2
+ VERSION = '0.5.191'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.190
4
+ version: 0.5.191
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry
@@ -707,6 +707,7 @@ files:
707
707
  - app/views/caboose/blocks/_product_sales.html.erb
708
708
  - app/views/caboose/blocks/_products.html.erb
709
709
  - app/views/caboose/blocks/_render_function.html.erb
710
+ - app/views/caboose/blocks/_retargeting.html.erb
710
711
  - app/views/caboose/blocks/_richtext.html.erb
711
712
  - app/views/caboose/blocks/_ruby_block.rb
712
713
  - app/views/caboose/blocks/_select.html.erb