We deal with strings to do just about anything. In this post, I am listing some of the common string operations that one would face every now and then.
September 11, 2013
The LoadAnalytics() function creates a script element, sets the source property and appends the script element to body section of the page. The CheckUrl() function also needs to be called from the onload event of the page. Here is the source code for the page.
To verify if it is working, you can check the source code but the analytics code will not show up in the page. To verify if it works, place an alert statement in the script file and you will see the alert works. You can also use the Network tab in Page Inspector in Google Chrome to check if the script has loaded.
To verify further, you will need to check if the tracking data comes in your analytics software.