Sha256: 3c118b095d6f8201bbbba35fe70d49341499901769db13da8fd08bb99dc81054
Contents?: true
Size: 1.93 KB
Versions: 1
Compression:
Stored size: 1.93 KB
Contents
# This is where you define your pixels # The top level is a key, which contains any array # Each element in the array is a pixel with name, type, snippet, and partner TODO: change to scope # The snippet is run through _underscore.js templating # you can use <%= var %> in the snippet where var is defined in PIXEL_DATA.context['var'] # (see config/initalizers/pixelator.rb for how to do this server-side; can also be done in JS) #these are included on the head of your page by rendering partial 'shared/pixelator_head' #head: # - name: google_analytics # type: javascript # snippet: | # <script type="text/javascript"> # try { # var _gaq = _gaq || []; # _gaq.push(['_setAccount', '<%= google_analytics %>']); # _gaq.push(['_trackPageview']); # # (function() { # var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; # ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; # var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); # })(); # } catch(err) {} # </script> #all non-head pixels are included by calling: # render partial: 'shared/pixelator', pixel_tages['all'] # OR # new Pixelator(PIXEL_DATA, '').run('all'); #all: # - name: google_analytics # type: javascript # snippet: | # <script type="text/javascript"> # try { # var _gaq = _gaq || []; # _gaq.push(['_setAccount', '<%= google_analytics %>']); # _gaq.push(['_trackPageview']); # # (function() { # var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; # ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; # var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); # })(); # } catch(err) {}
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pixelator-0.0.1 | lib/generators/pixelator/templates/pixels.yml |