Commit 8f431e65
Changed files (2)
app
views
creations
layouts
app/views/creations/index.html.erb
@@ -1,4 +1,21 @@
<% provide(:description, "CakeSide is a free site to share your cake creations and ideas with other cake fanatics like yourself") -%>
+<% content_for(:experiment) do -%>
+<!-- Google Analytics Content Experiment code -->
+<script>function utmx_section(){}function utmx(){}(function(){var
+ k='47370096-0',d=document,l=d.location,c=d.cookie;
+ if(l.search.indexOf('utm_expid='+k)>0)return;
+ function f(n){if(c){var i=c.indexOf(n+'=');if(i>-1){var j=c.
+ indexOf(';',i);return escape(c.substring(i+n.length+1,j<0?c.
+ length:j))}}}var x=f('__utmx'),xx=f('__utmxx'),h=l.hash;d.write(
+ '<sc'+'ript src="'+'http'+(l.protocol=='https:'?'s://ssl':
+ '://www')+'.google-analytics.com/ga_exp.js?'+'utmxkey='+k+
+ '&utmx='+(x?x:'')+'&utmxx='+(xx?xx:'')+'&utmxtime='+new Date().
+ valueOf()+(h?'&utmxhash='+escape(h.substr(1)):'')+
+ <%#'" type="text/javascript" charset="utf-8"><%>
+ sc'+'ript>')})();
+</script><script>utmx('url','A/B');</script>
+<!-- End of Google Analytics Content Experiment code -->
+<% end -%>
<% unless user_signed_in? -%>
<div class="row">
<div class="span6">
app/views/layouts/application.html.erb
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
+ <%= yield(:experiment) %>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>