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 +8 -8
- data/app/controllers/caboose/application_controller.rb +2 -1
- data/app/helpers/caboose/application_helper.rb +0 -14
- data/app/views/caboose/blocks/_retargeting.html.erb +19 -0
- data/app/views/layouts/caboose/application.html.erb +2 -1
- data/lib/caboose/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Njk3ZjJmN2RiZjc0MjYwMmU1MWRhNWI3Y2I5YjdlNTI1MmI0Y2NhMQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZmVmYTdlYTM4NmE4ODRkM2FmOTc1ZDIzM2JhODI2MDc4MmZiZmM0OQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZTUwN2U0ZTgyMTg3NjE0OThlN2QwNDVkY2JhMWFlN2FlM2Y1NjQ4ZGM5OGRi
|
10
|
+
Zjg2OWRiNWJhNGYwZWM2NzcwNmZiMGQxYTBhZTc5ZjBiNjdlNzVmYTIwYjQz
|
11
|
+
OWQzZmUyMTcxZGI1MDhkNzJlNmMyNDJkZmY2NTBhMDFjYTUyNjQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
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&currency_code=USD&label=<%= raw label %>&guid=ON&script=0'/>
|
16
|
+
</div>
|
17
|
+
</noscript>
|
18
|
+
<% end %>
|
19
|
+
<% end %>
|
data/lib/caboose/version.rb
CHANGED
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.
|
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
|