[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 153
  • Last Modified:

Javascript not loading?

I am using two javascript tracking codes to monitor visitor activity on a page which redirects the visitor's browser, and one of the two trackers (Extreme tracking) is not functioning.  Can you tell me how to correct that?  I am happy with the way the page performs redirection, and the Google Analytics javascript is working. TripAdvisor.htm
0
ddantes
Asked:
ddantes
  • 6
  • 6
1 Solution
 
ZvonkoSystems architectCommented:
I see this img src URI:
http://nht-2.extreme-dm.com/n2.g?login=tradewds&url=file%3A//C%3A%5CUsers%5CZvonko%5CDownloads%5CTripAdvisor.htm&jv=true&d=1366x768&c=24&l=

Open in new window

So there should be everything right...
0
 
ddantesAuthor Commented:
Thank you for your comment.  Please excuse my ignorance, but I need to explain what you are telling me.
0
 
ZvonkoSystems architectCommented:
I say that your Extreme tracking js produces an <img> tag with zero pixel size and an URL to tell the server http://nht-2.extreme-dm.com my browser attributes. And that works correct.
An image is an image and there cannot be an error.
Check the URI parameters for the tracking server whether they are accepted correctly.
When I check I see that the server sends me back an image with 1x1 pixel size. That is normal.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
ddantesAuthor Commented:
Thank you for explaining.  Perhaps we could try a "live test"?  If you could visit www.mauitradewinds.com/TripAdvisor.htm   and be directed to TripAdvisor.com, I will check my tracker log and see if your visit was recorded.  Every other page on my website which has the same javascript code is recording visits properly.
0
 
ZvonkoSystems architectCommented:
I just did open that link.
0
 
ddantesAuthor Commented:
Thank you for doing that.  However, the tracking report does not show the visit.
0
 
ddantesAuthor Commented:
Oops -- my mistake!  The visit does appear.  Are you in Germany?
0
 
ZvonkoSystems architectCommented:
Yeap!
0
 
ddantesAuthor Commented:
Very good!  So, for some reason I couldn't see tracking activity before, but it is working now.  Thanks for your help, and get some sleep!
0
 
ZvonkoSystems architectCommented:
Good Night!

But when you are awake agin here a tip from me: you need no document.write() to initiate that <img> src assignment. You can do it IN STORAGE by JavaScript like this:
<script type="text/javascript"><!--
EXd=document;EXp="http"+((location.protocol=="https:")?"s":"");
EXs=EXp+"://nht-2.extreme-dm.com/n2.g?login=tradewds";
EXs+="&url="+escape(EXd.URL)+"&jv="+navigator.javaEnabled()+"&";
EXs+="d="+screen.width+"x"+screen.height+"&c="+screen.colorDepth+"";
EXs+="&l="+escape(EXd.referrer);
EXi=new Image();EXi.src=EXs;//-->
</script>

Open in new window

In my opinion is avoiding document.write() the better approach. It is more AJAX like <|;-)
0
 
ddantesAuthor Commented:
Thank you!
0
 
ZvonkoSystems architectCommented:
<|:-)
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 6
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now