Hello Everyone, I have a dynamic website with URL mentioned below. Can anyone please tell me how can I add Google Analytics code in it. I don't know programming.
What do you mean when you say it is "dynamic"? When you go to set up Analytics, they'll give you a little snippet of javascript code to include in your website. It starts with <script> and ends with </script>. You need to copy and paste that anywhere into every page on your site. Hopefully you have some sort of header or footer file defined somewhere. It should ideally go in the footer, right before </body>...but it can really go anywhere, as long as it's on every page.
It will depend what sort of Content Management System you are using. If it is custom coded then follow what GTAce has said above. For other CMS like drupal, wordpress etc you can either edit the code files - find the footer file and add the code before the </body> tag. Else you can add a text / script content block in your footer or your last sidebar using any available widget and paste the analytics code in the content block. else there are plugins available in most CMS where you provide the code in the plugin and it places it correctly in your code for you.
It should go in the header tag. If I quote Google's exact words "Paste your tracking code snippet (unaltered, in its entirety) before the closing </head> tag on every web page on your site you wish to track." Though as you said, it can go anywhere in the page, but it is ideal in header because if you want to fire page load events it won't work because the script is not loaded. You can refer the Google's guide here: https://support.google.com/analytics/answer/1008080
To find the tracking ID and code snippet: Sign in to your Analytics account. Select the Admin tab. Select an account from the drop-down menu in the ACCOUNT column. Select a property from the drop-down menu in the PROPERTY column. Under PROPERTY, click Tracking Info > Tracking Code.
This can be tricky depending on how your site was built especially if you are using templates. The thing to do really is google search using specifically what you have on your site. For example, "where to place GA analytics code for a wordpess site using optimizepress theme" Or something of that nature. If you say you are not technical or know programming that tells me you probably have a plug and play site. Chances are other people have asked the same thing and there is a youtube video on it.
It is totally depend on the method used for the site. If you are using a template, you have the find the way of editing the template or way of adding GA code through the template control panel. Template based site like Wordpress, Joomla offers easy ways of adding GA code. If you have used PHP or any other coding language, just past the code in the footer of the HTML page.