How do i insert Google Analytics code into headeR?
r/rubyu/cubexxx:
Hi guys,
I would greatly appreciate your help on this. I am a php web developer, but never worked with Ruby and one client asked me if i could upload the google analytics code in her website’s header.
I said i will take a look, and i did, for the life of me i can’t seem to manage to do this without any Ruby experience.
My question is this: is there any .html template file, that i could open and paste in my code? I tried this for the files located in “app/views/templates/dependencies” and still no luck!
Thanks very much for any tip!
Just a general tip for these kind of problems: use a code editor/IDE that supports multifile search and replace. You can use the command line too.
Search for the typical head tags (head, link, script) and the file will show up (amongst others, surely) but you can discern which one outputs the head.