I am building my first Website with Hostgator. I don't know how to add a Tracking Code. Excuse my ignorance, but gotta start somewhere.

Ok, so generally, the provider that you are working with that will be collecting the information should provide you with some javascript code.

You simply take that block of code and place it just before the closing </head> tag on your pages. This ensures that the code will trigger once the page is accessed.

I would assume that your provider would have this information readily avaiable for you to read over so that you can integrate their code into your web application.

The code that they are providing you should look like this...

<script type="text/javascript src="their URL">
  <!-- Some JavaScript code -->
</script>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.