In this article you will learn how to embed JavaScript on every page. This can be useful for marketing and pixel tracking services. You can use this for Google Analytics as well as Facebook Pixel.
To get started login to your site's Admin.
Where in the admin is this?
Admin > Settings > Pages ( http://example.com/admin/preferences/pages/ -- where example.com is your domain)
To access through the dashboard, simply select the settings drop down at the top of the screen and select pages.
Often you'll want to add or embed JavaScript on every page.
There is a an area in the admin for adding JavaScript includes (script tags) to every page.
There are three areas for adding:
- "Before </head> Tags"
- "After <body> Tags"
- "Before </body> Tags"
Before </head> means in the head of the document, if your directions for adding the code say to place it in the head, this is the box for that.
After <body> means at the very top of the <body> element, if your directions for adding code say to place it at the top of the body, this is the box for that.
Before </body> means at the very end of the <body> element, if your directions say to place the code at the end of the body, this is the box for that.
If your directions don't say where to place the code, try "Before </body> Tags" first, if that doesn't work, move to "Before </head> Tags".