Page 1 of 1

Adding Code between <head></head> Tags

Posted: Mon Aug 28, 2017 5:49 am
by kwikstand
How can code be added before the </head> tag? Currently, I am trying to ad the facebook pixel, but there are other times when this needs to be done

Re: Adding Code between <head></head> Tags

Posted: Mon Aug 28, 2017 10:51 pm
by jmestep
If you want this to be site wide on all but checkout pages, you need to add it to Layouts/Base.master. For checkout/membership pages, add it to Layouts/Fixed/Base.master.

If it is javascript, you might want to add it to the store footer to see if it still works. Search engines and site performance tools are more and more recommending to not add javascript to the header because it blocks the page load until the javascript is run.