don't use double quotes in javascript tag helper for mixpanel [ci skip]
This commit is contained in:
parent
f3e568d3c1
commit
de8d7770fe
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ module AnalyticsHelper
|
||||||
include_analytics "mixpanel" do |service_uid|
|
include_analytics "mixpanel" do |service_uid|
|
||||||
javascript_tag do
|
javascript_tag do
|
||||||
<<-JS
|
<<-JS
|
||||||
(function(d,c){var a,b,g,e;a=d.createElement("script");a.type="text/javascript";a.async=!0;a.src=("https:"===d.location.protocol?"https:":"http:")+'//api.mixpanel.com/site_media/js/api/mixpanel.2.js';b=d.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b);c._i=[];c.init=function(a,d,f){var b=c;"undefined"!==typeof f?b=c[f]=[]:f="mixpanel";g="disable track track_pageview track_links track_forms register register_once unregister identify name_tag set_config".split(" ");
|
(function(d,c){var a,b,g,e;a=d.createElement("script");a.type='text/javascript';a.async=!0;a.src=('https:'===d.location.protocol?'https:':'http:')+'//api.mixpanel.com/site_media/js/api/mixpanel.2.js';b=d.getElementsByTagName('script')[0];b.parentNode.insertBefore(a,b);c._i=[];c.init=function(a,d,f){var b=c;'undefined'!==typeof f?b=c[f]=[]:f='mixpanel';g='disable track track_pageview track_links track_forms register register_once unregister identify name_tag set_config'.split(' ');
|
||||||
for(e=0;e<g.length;e++)(function(a){b[a]=function(){b.push([a].concat(Array.prototype.slice.call(arguments,0)))}})(g[e]);c._i.push([a,d,f])};window.mixpanel=c})(document,[]);
|
for(e=0;e<g.length;e++)(function(a){b[a]=function(){b.push([a].concat(Array.prototype.slice.call(arguments,0)))}})(g[e]);c._i.push([a,d,f])};window.mixpanel=c})(document,[]);
|
||||||
mixpanel.init(#{service_uid});
|
mixpanel.init(#{service_uid});
|
||||||
JS
|
JS
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue