4

answers

1

vote

Vote

internet-networking in Internet & Networking Channel,
Written by: Raoul Benchimol on Oct 23 2009, 2:19pm

How to insert tracking code ?

Hi

Does anyone know how to insert tracking code such as Google Analytics or MyBlogLog.

In fact how do you access the HTML code for your page.
Any advise would be greatly appreciated

Raoul

4 Citizens Answers

Blaise RABAUD says:

There is no way to view the coding within webeasy itself.
You would have to export the file in html, browse to the folder storing the html files (by default its in My documents >> Webeasy >> HTML), right click on the page you want to view and select Open With >> Notepad.


You can insert custom code through webeasy however.

Custom HTML and JavaScript code can be added to your pages using the Custom Script Assistant in Web Easy Professional. This functionality is not available in Web Easy.

Solution

The Custom Script Assistant can be opened by selecting "Custom Script Assistant" from the "Tools" menu. It allows HTML and JavaScript code to be added in four different ways:

1) Attached to an item (image or text) at a specific loction within your page.
2) Directly after the <BODY> tag, but before any other items on your page.
3) As attributes of the <BODY> tag itself.
4) Between the <HEAD> and <BODY> tags, as JavaScript code.

To add custom HTML code at a specific location within your page:

1) Insert an image into your page in the position where you want the custom code to be.
2) Select the image.
3) From the "Tools" menu select "Custom Script Assistant"
4) In the window that appears, make sure the "Object Events" button is selected.
5) Type your custom HTML code in the text box labeled "Contents", or press CTRL-V to paste it.
6) Click "OK".

After doing this the image acts as a placeholder for your custom HTML code. When you preview the site, the image will be replaced by your code. You may need to resize the image, depending on the code you have entered. Note that if you use copy-and-paste to duplicate the placeholder, you will need to manually add the script to the new placeholder image - it will not be copied automatically.

This technique can also be used to add attributes to HTML tags, for example if you added the code BORDER=2 to an image, when you preview your site the image will have a 2-pixel wide border.

To add custom HTML code directly after the <BODY> tag, but before any other items on your page:

1) Make sure there are no items selected on your page.
2) From the "Tools" menu select "Custom Script Assistant"
3) In the window that appears, make sure the "Body Elements" button is selected.
4) Type your custom HTML code in the text box labelled "Contents", or press CTRL-V to paste it.
5) Click "OK".

 

5

Votes

Vote
Oct 23 2009, 1:22pm | Report

Arthur K. says:

Just to add on to the answer left by Blaise, although you cannot view all the code generated by webeasy, you can view/modify the CSS that it generates using the File Inspector under the STYLE TAB.

In version 7, before varial page lengths was added as a feature, I would use this to modify the page lengths of individual pages.

To open the File Inspector, click on View >> Inspector.

Click on the Style Tab.

Locate the Attribute (under the sub-category Item) Custom CSS & double click the value field to the right of it. This will then open the Cascading Style Sheet assistant.

From the Keywords drop down menu, you can then select the CSS it generates, and modify it manually, excellent for the more experienced user familiar with CSS.

 

4

Votes

Vote
Apr 6 2010, 12:41pm | Report

John Kendall says:

Doesn't adding Javascript in the body slow down loading? 

I was told to save it like external CSS and then link to it from where it is needed in the code.  This allows the site to load faster and then, when it reaches the place where the script is used it calls it from the server.

as stated, I can not see any benefit in using Javascript.

Please, if I am wrong, let me know.  I want to learn how to build Dynamic sites and load time is important.

0

Votes

Vote
Jun 27 2010, 5:38am | Report

Spencer Roane says:

Thank you Blaise.  To use Earthlink's counter, their tech support suggested inserting script into the HTML.  It was difficult to determine where in the HTML the script needed to go and, even worse, the script had to be re-inserted each time the website was rebuilt.  The 6 steps you outlined were a much better alternative in that I could easily position the counter and only had to insert the script once.

John - I didn't notice any difference in load time when I added the script.

Spencer

0

Votes

Vote
Dec 11 2010, 3:06pm | Report

Post your comment

default Avatar

You might be interested in these related contributions

About the Software

About the Author

Raoul Benchimol

Paris, Ile-de-France, FR

7 contributions

I 'm not very good with computers, but I try hard to understand how to use it

software social commerce